diff --git a/src/type/shooting.ts b/src/type/shooting.ts new file mode 100644 index 0000000..bba0cd9 --- /dev/null +++ b/src/type/shooting.ts @@ -0,0 +1,28 @@ +export enum EventType { + Pointer = "pointer", + Action = "action", +} + +export interface Target { + x: number; + y: number; +} + +export interface Vector { + x: number; + y: number; + z: number; +} + +export interface PointerSchema { + id: string; + event_type: EventType.Pointer; + target: Target; +} + +export interface ActionSchema { + id: string; + event_type: EventType.Action; + target: Target; + vector: Vector; +}