diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-26 17:55:27 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-26 17:55:27 -0600 |
commit | 6ce6946a4401d2ee6fa5cb747fab7d4c658a63c8 (patch) | |
tree | e60767dc5295edf379cf421e20171dc418e548b7 /engine/network/index.ts | |
parent | 594921352c8d82fe5f1a6201a4d5f9fbd9b719fc (diff) | |
download | jumpstorm-6ce6946a4401d2ee6fa5cb747fab7d4c658a63c8.tar.gz jumpstorm-6ce6946a4401d2ee6fa5cb747fab7d4c658a63c8.zip |
add entity updates over network!
Diffstat (limited to 'engine/network/index.ts')
-rw-r--r-- | engine/network/index.ts | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/engine/network/index.ts b/engine/network/index.ts index 1bf95fb..5dc7ece 100644 --- a/engine/network/index.ts +++ b/engine/network/index.ts @@ -1,12 +1,20 @@ export enum MessageType { NEW_ENTITIES = 'NEW_ENTITIES', REMOVE_ENTITIES = 'REMOVE_ENTITIES', - UPDATE_ENTITY = 'UPDATE_ENTITY' + UPDATE_ENTITIES = 'UPDATE_ENTITIES', + NEW_INPUT = 'NEW_INPUT', + REMOVE_INPUT = 'REMOVE_INPUT' } export type EntityAddBody = { entityName: string; - args: any; + id: string; + args: Record<string, any>; +}; + +export type EntityUpdateBody = { + id: string; + args: Record<string, any>; }; export type Message = { |