aboutsummaryrefslogtreecommitdiff
path: root/static/src/engine/system.ts
diff options
context:
space:
mode:
Diffstat (limited to 'static/src/engine/system.ts')
-rw-r--r--static/src/engine/system.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/static/src/engine/system.ts b/static/src/engine/system.ts
new file mode 100644
index 0000000..e19cf5a
--- /dev/null
+++ b/static/src/engine/system.ts
@@ -0,0 +1,14 @@
+import { Game } from "./game";
+
+export enum SystemType {
+ INPUT = "INPUT",
+ NETWORK = "NETWORK",
+ RENDER = "RENDER",
+ TRAILING_POSITION = "TRAILING_POSITION",
+}
+
+export abstract class System {
+ constructor(public readonly system_type: SystemType) {}
+
+ abstract update(dt: number, game: Game): void;
+}