Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
add: shooting schema
Browse files Browse the repository at this point in the history
  • Loading branch information
claustra01 committed Aug 11, 2024
1 parent 728e23a commit 8276eb6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/type/shooting.ts
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 8276eb6

Please sign in to comment.