Refactor player and room to support adding effects.
This commit is contained in:
13
State.ts
Normal file
13
State.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { GameData, SceneProperties } from "./types.ts";
|
||||
import Player from "./Player.ts";
|
||||
import Scene from "./Scene.ts";
|
||||
|
||||
export class State {
|
||||
#player: Player;
|
||||
#scene: Scene;
|
||||
|
||||
constructor(gameData: GameData<SceneProperties>) {
|
||||
this.#player = new Player();
|
||||
this.#scene = new Scene(gameData);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user