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/gameContainer.d.ts
Views: 713
1
import { Game } from "./game";
2
import { TODO } from "./util";
3
4
type Bindings =
5
| "Game"
6
| "LocalizationService"
7
| "FeatureFlagProvider"
8
| "EnvironmentProvider"
9
| "URLProvider"
10
| "Assets"
11
| "Loader"
12
| "IFSMController"
13
| "FSMFactories"
14
| "FSMService"
15
| "FSMDataProvider"
16
| "CacheExpirationStrategy"
17
| "CacheStorageStrategy"
18
| "StoreDataProvider"
19
| "ChatManager"
20
| "StoreService"
21
| "TimeManager"
22
| "TechnicalMetricsManager"
23
| "VoucherDataProvider"
24
| "VoucherService"
25
| "JWTAuthProvider"
26
| "SessionTokenAuthProvider"
27
| "DungeonService"
28
| "DungeonDataProvider"
29
| "PVPNetworkHandler"
30
| "NetworkManager"
31
| "NicknameFactory"
32
| "NicknameController"
33
| "NicknameProvider"
34
| "DeviceInfoProvider"
35
| "SocketService"
36
| "MultiplayerSocket"
37
| "GameServerSocket"
38
| "GameServerService"
39
| "UUIDProvider"
40
| "LoggedInPlayer"
41
| "EventBuilder"
42
| "SurveyController"
43
| "OptimizelyWrapper"
44
| "GameEventReceivers"
45
| "GameEventBroadcaster"
46
| "GameAvatarDataFactory"
47
| "GameBattleDataFactory"
48
| "GameCompleteDataFactory"
49
| "GameDiscoveryDataFactory"
50
| "GameQuestionDataFactory"
51
| "GameSocialDataFactory"
52
| "ArchivesDungeonGenerator"
53
| "TowersDungeonGenerator"
54
| "GameStartDataFactory"
55
| "GameSinkDataFactory"
56
| "GameSourceDataFactory"
57
| "ExternalMethods"
58
| "MailExtensionController"
59
| "MailExtension"
60
| "PlayerService"
61
| "InputBlocker"
62
| "FXController"
63
| "RemoteLogger"
64
| "PrefabService"
65
| "PrefabDataProvider"
66
| "PrefabLoader"
67
| "SurveyDataProvider"
68
| "SurveyService"
69
| "FeatureRequirements"
70
| "BreadcrumbManager"
71
| "Items"
72
| "HttpClient"
73
| "DuelInviteService"
74
| "PvPBattleSocketRoom"
75
| "BattleApiSocket"
76
| "GeolocationService"
77
| "MatchmakingService"
78
| "BattleRoomService"
79
| "MathTower"
80
| "FeatureFlags"
81
| "Storage"
82
| "StorageSerializer"
83
| "StoreManager"
84
| "TowerTownBreadcrumbManager"
85
| "DefaultItems"
86
| "Education"
87
| "DialogueFactory"
88
| "Events"
89
| "Cache"
90
| "AssetLoader"
91
| "AppearanceFactory"
92
| "AnalyticsService";
93
export declare interface InversifyContainer {
94
applyCustomMetadataReader(arg0: unknown): unknown;
95
applyMiddleware(): unknown;
96
createChild(): unknown;
97
get<T extends Bindings>(binding: T): T extends keyof Mapping ? Mapping[T] : TODO;
98
}
99
export declare interface GameContainer {
100
inversifyContainer: InversifyContainer;
101
hasBinding<T>(binding: T): T extends Bindings ? true : false;
102
get: InversifyContainer["get"];
103
}
104
export declare interface DialogueFactory {
105
_game: Game;
106
_hands: Map<unknown, unknown>;
107
addGuideHand(arg0: unknown, x: number, y: number): unknown;
108
createBuilder(): InstanceType<DialogueBuilder>;
109
removeGuideHand(hand: unknown): unknown;
110
showAllDone(arg0: unknown): void;
111
showCastSpells(arg0: unknown): void;
112
showChooseLookOfEachFloor(arg0: unknown): void;
113
showForceCorrectAnswer(arg0: unknown): void;
114
showSpeedUpBlockPlacement(arg0: unknown): void;
115
showSwoopyIntroduction(arg0: unknown, arg1: unknown, arg2: unknown): void;
116
showTutorialCompleted(arg0: unknown): void;
117
}
118
export declare interface Dialogue {
119
condition: null | (() => boolean);
120
dialogueConfig: {
121
blockInput: boolean;
122
dialogueData: {
123
audio: {
124
d: number;
125
s: number;
126
tag: string;
127
};
128
avatar: {
129
animationMod: string;
130
atlas: string; // The character.
131
frameName: string; // The expression.
132
spineAttachment: string;
133
};
134
textKey: string;
135
callback: () => unknown;
136
137
};
138
};
139
}
140
export declare class DialogueBuilder {
141
_controller: TODO;
142
_events: Dialogue[];
143
_showGuideHand: {
144
_hands: Map<unknown, unknown>;
145
_game: Game;
146
};
147
148
}
149
f.createBuilder().addDialogue(20).start(true);
150
export declare interface Mappings {
151
DialogueFactory: DialogueFactory;
152
}
153
154