Skip to content

Commit

Permalink
add hydrate to Area
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonsbrian committed Mar 2, 2023
1 parent 33436b0 commit 956963c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Area.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ export class Area extends GameEntity {
}

hydrate(state: IGameState) {
super.hydrate(state);
this.setupBehaviors(state.AreaBehaviorManager);
const rooms = state.AreaFactory.getDefinition(this.name)?.rooms || [];
for (const roomRef of rooms) {
Expand Down

0 comments on commit 956963c

Please sign in to comment.