diff options
| author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-08-24 19:11:26 -0700 |
|---|---|---|
| committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-08-24 19:16:22 -0700 |
| commit | a0a2068b66204d7d06eb3c3b4aa61b28469121f6 (patch) | |
| tree | e9706970af1ce8b4d12df9c0a3f64fa17ca74b97 /static/src/entity.ts | |
| parent | b144ad5df76e458297bd6dc030cad4af0f344901 (diff) | |
| download | kennel.hatecomputers.club-a0a2068b66204d7d06eb3c3b4aa61b28469121f6.tar.gz kennel.hatecomputers.club-a0a2068b66204d7d06eb3c3b4aa61b28469121f6.zip | |
improve event parsing and begin sending events from the client
Diffstat (limited to 'static/src/entity.ts')
| -rw-r--r-- | static/src/entity.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/static/src/entity.ts b/static/src/entity.ts new file mode 100644 index 0000000..811d05a --- /dev/null +++ b/static/src/entity.ts @@ -0,0 +1,11 @@ +import type { Component } from "./component"; + +export enum EntityType { + LASER = "LASER", +} + +export interface Entity { + entity_type: EntityType; + id: string; + components: Record<string, Component>; +} |
