summaryrefslogtreecommitdiff
path: root/client/lib/systems/System.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/lib/systems/System.ts')
-rw-r--r--client/lib/systems/System.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/client/lib/systems/System.ts b/client/lib/systems/System.ts
new file mode 100644
index 0000000..2accc97
--- /dev/null
+++ b/client/lib/systems/System.ts
@@ -0,0 +1,15 @@
+import { Entity } from "../entities";
+
+export abstract class System {
+ public readonly name: string;
+
+ constructor(name: string) {
+ this.name = name;
+ }
+
+ abstract update(
+ dt: number,
+ entityMap: Map<number, Entity>,
+ componentEntities: Map<string, Set<number>>
+ ): void;
+}