feat: size
This commit is contained in:
parent
050664a826
commit
607fbe9d9e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user