-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc7cf3b
commit af67331
Showing
4 changed files
with
64 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,31 @@ | ||
// This file has been generated by Specta. DO NOT EDIT. | ||
|
||
export type CreateTeam = { name: string; color: string; kind: TeamKind } | ||
|
||
/** | ||
* Information about a tram station. | ||
*/ | ||
export type Stop = { name: string; id: string; lat: number; lon: number } | ||
|
||
export type ClientResponse = { GameState: GameState } | { MrXGadget: MrXGadget } | { DetectiveGadget: DetectiveGadget } | ||
|
||
export type MrXGadget = { AlternativeFacts: { stop_id: string } } | { Midjourney: { image: number[] } } | "NotFound" | "Teleport" | "Shifter" | ||
|
||
export type GameState = { teams: TeamState[]; trains: Train[]; position_cooldown?: number | null; detective_gadget_cooldown?: number | null; mr_x_gadget_cooldown?: number | null } | ||
|
||
export type DetectiveGadget = { Stop: { stop_id: string } } | "OutOfOrder" | "Shackles" | ||
|
||
export type CreateTeamError = "InvalidName" | "NameAlreadyExists" | ||
export type TeamState = { team: Team; long: number; lat: number; on_train: string | null } | ||
|
||
export type ClientResponse = { GameState: GameState } | { MrXGadget: MrXGadget } | { DetectiveGadget: DetectiveGadget } | { MrXPosition: MrXPosition } | ||
|
||
export type GameState = { teams: TeamState[]; trains: Train[]; position_cooldown?: number | null; detective_gadget_cooldown?: number | null; mr_x_gadget_cooldown?: number | null } | ||
|
||
export type Train = { id: number; long: number; lat: number; line_id: string; line_name: string; direction: string } | ||
|
||
export type ClientMessage = { Position: { long: number; lat: number } } | { SetTeamPosition: { long: number; lat: number } } | { JoinTeam: { team_id: number } } | { EmbarkTrain: { train_id: string } } | "DisembarkTrain" | { MrXGadget: MrXGadget } | { DetectiveGadget: DetectiveGadget } | { Message: string } | ||
|
||
export type MrXPosition = { Stop: string } | { Image: number[] } | "NotFound" | ||
|
||
export type Team = { id: number; name: string; color: string; kind: TeamKind } | ||
|
||
export type ClientMessage = { Position: { long: number; lat: number } } | { SetTeamPosition: { long: number; lat: number } } | { JoinTeam: { team_id: number } } | { EmbarkTrain: { train_id: string } } | "DisembarkTrain" | { MrXGadget: MrXGadget } | { DetectiveGadget: DetectiveGadget } | { Message: string } | ||
export type CreateTeam = { name: string; color: string; kind: TeamKind } | ||
|
||
export type TeamState = { team: Team; long: number; lat: number; on_train: string | null } | ||
export type CreateTeamError = "InvalidName" | "NameAlreadyExists" | ||
|
||
export type TeamKind = "MrX" | "Detective" | "Observer" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters