feat: size

This commit is contained in:
cha0s 2024-11-10 05:11:45 -06:00
parent 050664a826
commit 607fbe9d9e

View File

@ -103,6 +103,10 @@ class LayerProxy {
? this.Component.ecs.readJson(this.layer.source)
: {};
}
get size() {
const {area, tileSize} = this;
return {x: area.x * tileSize.x, y: area.y * tileSize.y};
}
get source() {
return this.layer.source;
}