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