CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
ProdigyPNP

CoCalc is a real-time collaborative commercial alternative to JupyterHub and Overleaf that provides Jupyter Notebooks, LaTeX documents, and SageMath.

GitHub Repository: ProdigyPNP/ProdigyMathGameHacking
Path: blob/master/typings/game.d.ts
Views: 713
1
import { Prodigy } from "./prodigy";
2
import { TODO } from "./util";
3
import { gameData } from "./gameData";
4
5
export declare interface Game {
6
id: number; // Not sure what this does. Seems to be 0.
7
state: GameState;
8
input: TODO;
9
spriteBatch: TODO;
10
}
11
export declare interface GameState {
12
states: GameStates;
13
current: GameStates[keyof GameStates]["key"];
14
callbackContext: { runAwayCallback(): void };
15
getCurrentState(): GameStates[keyof GameStates];
16
}
17
export declare interface GameStates {
18
Boot: BootState;
19
Loading: GameStatesState;
20
PVPLoading: GameStatesState;
21
TileScreen: TileScreenState;
22
Login: LoginState;
23
Battle: BattleState;
24
PVP: PVPState;
25
Faint: GameStatesState;
26
CharSelect: GameStatesState;
27
CharCreate: GameStatesState;
28
Museum: GameStatesState & any;
29
DinoDig: GameStatesState;
30
DanceDance: GameStatesState;
31
CoOp: GameStatesState;
32
TestScreen: GameStatesState;
33
PrefabScene: GameStatesState;
34
Battle: BattleState;
35
Login: LoginState;
36
}
37
export declare interface GameStatesState {
38
key: string;
39
game: Game;
40
add?: unknown;
41
}
42
export declare interface BootState extends GameStatesState {
43
key: "Boot";
44
_gameData: gameData;
45
_metricsManager: TODO;
46
}
47
export declare interface PVPState extends GameStatesState {
48
key: "PVP";
49
endPVP(): void;
50
}
51
export declare interface BattleState extends GameStatesState {
52
key: "Battle";
53
startVictory(): void;
54
teams: TODO[];
55
}
56
export declare interface LoginState extends GameStatesState {
57
key: "Login";
58
_gameObj: Prodigy;
59
}
60
export declare interface TileScreenState extends GameStatesState {
61
key: "TileScreen";
62
process(): void;
63
}
64