summaryrefslogtreecommitdiff
path: root/engine/Game.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-08-29 12:05:02 -0600
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-08-29 12:05:02 -0600
commitfd1bb1cca9521348ae2849ef30be09264503681e (patch)
tree6859c24c53fdd2a83ed0a92ee10272aa70b6c55d /engine/Game.ts
parent8a4ab8d79b5ce1dabb431168398b5d5111fe326c (diff)
downloadjumpstorm-fd1bb1cca9521348ae2849ef30be09264503681e.tar.gz
jumpstorm-fd1bb1cca9521348ae2849ef30be09264503681e.zip
don't update controllable entities on the client
Diffstat (limited to 'engine/Game.ts')
-rw-r--r--engine/Game.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/Game.ts b/engine/Game.ts
index cdd3507..19de398 100644
--- a/engine/Game.ts
+++ b/engine/Game.ts
@@ -56,8 +56,8 @@ export class Game {
this.systems.set(system.name, system);
}
- public getSystem(name: string): System | undefined {
- return this.systems.get(name);
+ public getSystem<T>(name: string): T {
+ return this.systems.get(name) as unknown as T;
}
public doGameLoop(timeStamp: number) {