@immortal-bee-realm/gmcp 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @immortalbeerealm/gmcp
2
+
3
+ Typescript types for gmcp modules associate with immortalbeerealm
package/index.ts ADDED
@@ -0,0 +1,277 @@
1
+ // Code generated by tygo. DO NOT EDIT.
2
+
3
+ //////////
4
+ // source: gmcp.Char.go
5
+
6
+ export interface GMCPCharModule {
7
+ }
8
+ export interface GMCPCharUpdate {
9
+ UserId: number /* int */;
10
+ Identifier: string;
11
+ }
12
+ export interface GMCPCharModule_Payload {
13
+ Info?: GMCPCharModule_Payload_Info;
14
+ Affects?: { [key: string]: GMCPCharModule_Payload_Affect};
15
+ Enemies?: GMCPCharModule_Enemy[];
16
+ Inventory?: GMCPCharModule_Payload_Inventory;
17
+ Stats?: GMCPCharModule_Payload_Stats;
18
+ Vitals?: GMCPCharModule_Payload_Vitals;
19
+ Worth?: GMCPCharModule_Payload_Worth;
20
+ Quests?: GMCPCharModule_Payload_Quest[];
21
+ Pets?: GMCPCharModule_Payload_Pet[];
22
+ Skills?: GMCPCharModule_Payload_Skill[];
23
+ Jobs?: GMCPCharModule_Payload_Job[];
24
+ Kills?: GMCPCharModule_Payload_Kills;
25
+ }
26
+ export interface GMCPCharModule_Payload_Info {
27
+ account?: string;
28
+ name?: string;
29
+ class?: string;
30
+ race?: string;
31
+ alignment?: string;
32
+ level?: number /* int */;
33
+ role: string;
34
+ skillpoints: number /* int */;
35
+ trainingpoints: number /* int */;
36
+ }
37
+ export interface GMCPCharModule_Enemy {
38
+ id: string;
39
+ name: string;
40
+ level: number /* int */;
41
+ hp: number /* int */;
42
+ hp_max: number /* int */;
43
+ engaged: boolean;
44
+ }
45
+ export interface GMCPCharModule_Payload_Inventory {
46
+ Backpack?: GMCPCharModule_Payload_Inventory_Backpack;
47
+ Worn?: GMCPCharModule_Payload_Inventory_Worn;
48
+ }
49
+ export interface GMCPCharModule_Payload_Inventory_Backpack {
50
+ items?: GMCPCharModule_Payload_Inventory_Item[];
51
+ Summary?: GMCPCharModule_Payload_Inventory_Backpack_Summary;
52
+ }
53
+ export interface GMCPCharModule_Payload_Inventory_Backpack_Summary {
54
+ count?: number /* int */;
55
+ max?: number /* int */;
56
+ }
57
+ export interface GMCPCharModule_Payload_Inventory_Worn {
58
+ weapon?: GMCPCharModule_Payload_Inventory_Item;
59
+ offhand?: GMCPCharModule_Payload_Inventory_Item;
60
+ head?: GMCPCharModule_Payload_Inventory_Item;
61
+ neck?: GMCPCharModule_Payload_Inventory_Item;
62
+ body?: GMCPCharModule_Payload_Inventory_Item;
63
+ belt?: GMCPCharModule_Payload_Inventory_Item;
64
+ gloves?: GMCPCharModule_Payload_Inventory_Item;
65
+ ring?: GMCPCharModule_Payload_Inventory_Item;
66
+ legs?: GMCPCharModule_Payload_Inventory_Item;
67
+ feet?: GMCPCharModule_Payload_Inventory_Item;
68
+ }
69
+ export interface GMCPCharModule_Payload_Inventory_Item {
70
+ id: string;
71
+ name: string;
72
+ type: string;
73
+ subtype: string;
74
+ uses: number /* int */;
75
+ details: string[];
76
+ }
77
+ export interface GMCPCharModule_Payload_Stats {
78
+ strength?: number /* int */;
79
+ strengthmod?: number /* int */;
80
+ speed?: number /* int */;
81
+ speedmod?: number /* int */;
82
+ smarts?: number /* int */;
83
+ smartsmod?: number /* int */;
84
+ vitality?: number /* int */;
85
+ vitalitymod?: number /* int */;
86
+ mysticism?: number /* int */;
87
+ mysticismmod?: number /* int */;
88
+ perception?: number /* int */;
89
+ perceptionmod?: number /* int */;
90
+ }
91
+ export interface GMCPCharModule_Payload_Vitals {
92
+ hp?: number /* int */;
93
+ hp_max?: number /* int */;
94
+ sp?: number /* int */;
95
+ sp_max?: number /* int */;
96
+ }
97
+ export interface GMCPCharModule_Payload_Worth {
98
+ gold_carry?: number /* int */;
99
+ gold_bank?: number /* int */;
100
+ tnl?: number /* int */;
101
+ xp?: number /* int */;
102
+ }
103
+ export interface GMCPCharModule_Payload_Affect {
104
+ name: string;
105
+ description: string;
106
+ duration_max: number /* int */;
107
+ duration_left: number /* int */;
108
+ type: string;
109
+ affects: { [key: string]: number /* int */};
110
+ }
111
+ export interface GMCPCharModule_Payload_Quest {
112
+ name: string;
113
+ description: string;
114
+ completion: number /* int */;
115
+ }
116
+ export interface GMCPCharModule_Payload_Pet {
117
+ name: string;
118
+ type: string;
119
+ level: number /* int */;
120
+ hunger: string;
121
+ ability?: GMCPCharModule_Payload_Pet_Ability;
122
+ buffs: string[];
123
+ items: GMCPCharModule_Payload_Inventory_Item[];
124
+ capacity: number /* int */;
125
+ }
126
+ export interface GMCPCharModule_Payload_Pet_Ability {
127
+ level_granted: number /* int */;
128
+ combat_chance: number /* int */;
129
+ dice_roll: string;
130
+ stat_mods?: { [key: string]: number /* int */};
131
+ }
132
+ export interface GMCPCharModule_Payload_Skill {
133
+ name: string;
134
+ level: number /* int */;
135
+ maximum?: boolean;
136
+ }
137
+ export interface GMCPCharModule_Payload_Job {
138
+ name: string;
139
+ completion: number /* int */;
140
+ proficiency: string;
141
+ }
142
+ export interface GMCPCharModule_Payload_Kills {
143
+ mob: GMCPCharModule_Payload_Kills_Section;
144
+ pvp: GMCPCharModule_Payload_Kills_PvpSection;
145
+ }
146
+ export interface GMCPCharModule_Payload_Kills_Section {
147
+ total: number /* int */;
148
+ deaths: number /* int */;
149
+ kd_ratio: number /* float64 */;
150
+ by_name: { [key: string]: number /* int */};
151
+ by_race: { [key: string]: number /* int */};
152
+ by_area: { [key: string]: number /* int */};
153
+ }
154
+ export interface GMCPCharModule_Payload_Kills_PvpSection {
155
+ total: number /* int */;
156
+ deaths: number /* int */;
157
+ kd_ratio: number /* float64 */;
158
+ players: { [key: string]: GMCPCharModule_Payload_Kills_PvpEntry};
159
+ }
160
+ export interface GMCPCharModule_Payload_Kills_PvpEntry {
161
+ count: number /* int */;
162
+ }
163
+
164
+ //////////
165
+ // source: gmcp.Comm.go
166
+
167
+ export interface GMCPCommModule {
168
+ }
169
+ export interface GMCPCommModule_Payload {
170
+ channel: string;
171
+ sender: string;
172
+ source: string;
173
+ text: string;
174
+ }
175
+
176
+ //////////
177
+ // source: gmcp.Gametime.go
178
+
179
+ export interface GMCPGametimeModule {
180
+ }
181
+ export interface GMCPGametimeModule_Payload {
182
+ calendar: string;
183
+ hour: number /* int */;
184
+ hour24: number /* int */;
185
+ minute: number /* int */;
186
+ ampm: string;
187
+ day: number /* int */;
188
+ month: number /* int */;
189
+ month_name: string;
190
+ year: number /* int */;
191
+ zodiac: string;
192
+ night: boolean;
193
+ day_start: number /* int */;
194
+ night_start: number /* int */;
195
+ sun_count: number /* int */;
196
+ moon_count: number /* int */;
197
+ }
198
+
199
+ //////////
200
+ // source: gmcp.Party.go
201
+
202
+ export interface GMCPPartyModule {
203
+ }
204
+ export interface PartyUpdateVitals {
205
+ LeaderId: number /* int */;
206
+ }
207
+ export interface GMCPPartyModule_Payload {
208
+ Leader: string;
209
+ Members: GMCPPartyModule_Payload_User[];
210
+ Invited: GMCPPartyModule_Payload_User[];
211
+ Vitals: { [key: string]: GMCPPartyModule_Payload_Vitals};
212
+ }
213
+ export interface GMCPPartyModule_Payload_User {
214
+ name: string;
215
+ status: string;
216
+ position: string;
217
+ }
218
+ export interface GMCPPartyModule_Payload_Vitals {
219
+ level: number /* int */;
220
+ health: number /* int */;
221
+ location: string;
222
+ }
223
+
224
+ //////////
225
+ // source: gmcp.Room.go
226
+
227
+ export interface GMCPRoomModule {
228
+ }
229
+ export interface GMCPRoomUpdate {
230
+ UserId: number /* int */;
231
+ Identifier: string;
232
+ }
233
+ export interface GMCPRoomModule_Payload {
234
+ num: number /* int */;
235
+ name: string;
236
+ area: string;
237
+ environment: string;
238
+ coords: string;
239
+ mapsymbol: string;
240
+ maplegend: string;
241
+ exits: { [key: string]: number /* int */};
242
+ exitsv2: { [key: string]: GMCPRoomModule_Payload_Contents_ExitInfo};
243
+ details: string[];
244
+ Contents: GMCPRoomModule_Payload_Contents;
245
+ }
246
+ export interface GMCPRoomModule_Payload_Contents_ExitInfo {
247
+ num: number /* int */;
248
+ dx: number /* int */;
249
+ dy: number /* int */;
250
+ dz: number /* int */;
251
+ details: string[];
252
+ }
253
+ export interface GMCPRoomModule_Payload_Contents {
254
+ Players: GMCPRoomModule_Payload_Contents_Character[];
255
+ Npcs: GMCPRoomModule_Payload_Contents_Character[];
256
+ Items: GMCPRoomModule_Payload_Contents_Item[];
257
+ Containers: GMCPRoomModule_Payload_Contents_Container[];
258
+ }
259
+ export interface GMCPRoomModule_Payload_Contents_Character {
260
+ id: string;
261
+ name: string;
262
+ adjectives: string[];
263
+ aggro: boolean;
264
+ quest_flag: boolean;
265
+ }
266
+ export interface GMCPRoomModule_Payload_Contents_Item {
267
+ id: string;
268
+ name: string;
269
+ quest_flag: boolean;
270
+ }
271
+ export interface GMCPRoomModule_Payload_Contents_Container {
272
+ name: string;
273
+ locked: boolean;
274
+ haskey: boolean;
275
+ haspickcombo: boolean;
276
+ usable: boolean;
277
+ }
package/nx.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "$schema": "./node_modules/nx/schemas/nx-schema.json",
3
+ "neverConnectToCloud": true,
4
+ "analytics": true
5
+ }
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "@immortal-bee-realm/gmcp",
3
+ "publishConfig": {
4
+ "access": "public"
5
+ },
6
+ "version": "0.0.1",
7
+ "main": "index.ts",
8
+ "bun": "src/index.ts",
9
+ "devDependencies": {
10
+ "@types/bun": "latest",
11
+ "nx": "23.1.0"
12
+ },
13
+ "peerDependencies": {
14
+ "typescript": "^7.0.2"
15
+ }
16
+ }
package/project.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "node_modules/nx/schemas/project-schema.json",
3
+ "name": "@immortalbeerealm/gmcp",
4
+ "projectType": "library",
5
+ "sourceRoot": "packages/gmcp/src",
6
+ "targets": {
7
+ "build": {
8
+ "executor": "nx:run-commands",
9
+ "options": {
10
+ "command": "bun run build"
11
+ },
12
+ "cache": true,
13
+ "outputs": ["{workspaceRoot}/dist/packages/gmcp"]
14
+ }
15
+ }
16
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "compilerOptions": {
3
+ // Environment setup & latest features
4
+ "lib": ["ESNext"],
5
+ "target": "ESNext",
6
+ "module": "Preserve",
7
+ "moduleDetection": "force",
8
+ "jsx": "react-jsx",
9
+ "allowJs": true,
10
+ "types": ["bun"],
11
+
12
+ // Bundler mode
13
+ "moduleResolution": "bundler",
14
+ "allowImportingTsExtensions": true,
15
+ "verbatimModuleSyntax": true,
16
+ "noEmit": true,
17
+
18
+ // Best practices
19
+ "strict": true,
20
+ "skipLibCheck": true,
21
+ "noFallthroughCasesInSwitch": true,
22
+ "noUncheckedIndexedAccess": true,
23
+ "noImplicitOverride": true,
24
+
25
+ // Some stricter flags (disabled by default)
26
+ "noUnusedLocals": false,
27
+ "noUnusedParameters": false,
28
+ "noPropertyAccessFromIndexSignature": false
29
+ }
30
+ }