Add get_terrain() and get_actor() to StoredCell
This commit is contained in:
parent
90a8f73b93
commit
6a92641d57
@ -5,6 +5,14 @@ export class StoredCell extends Array {
|
|||||||
constructor() {
|
constructor() {
|
||||||
super(LAYERS.MAX);
|
super(LAYERS.MAX);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_terrain() {
|
||||||
|
return this[LAYERS.terrain] ?? null;
|
||||||
|
}
|
||||||
|
|
||||||
|
get_actor() {
|
||||||
|
return this[LAYERS.actor] ?? null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Replay {
|
export class Replay {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user