Add get_terrain() and get_actor() to StoredCell

This commit is contained in:
Eevee (Evelyn Woods) 2024-04-22 10:21:31 -06:00
parent 90a8f73b93
commit 6a92641d57

View File

@ -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 {