summaryrefslogtreecommitdiff
path: root/client/lib/systems/System.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-07-19 20:38:24 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-07-19 20:38:24 -0700
commit0fd9fb097552686f2257c1aa689d797e80057bd1 (patch)
treeb8d0367bf7b62c049af60ace301ce1cffc08d821 /client/lib/systems/System.ts
downloadjumpstorm-0fd9fb097552686f2257c1aa689d797e80057bd1.tar.gz
jumpstorm-0fd9fb097552686f2257c1aa689d797e80057bd1.zip
initial commit
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;
+}