1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
|
// ================== DOUBLE INCLUDE ========================= //
#if defined _GlobalAPI_Responses_included_
#endinput
#endif
#define _GlobalAPI_Responses_included_
// =========================================================== //
#include <json>
#include <GlobalAPI/iterable>
// =========================================================== //
methodmap APIAuth < JSON_Object
{
public APIAuth(JSON_Object hAuth)
{
return view_as<APIAuth>(hAuth);
}
public bool GetType(char[] buffer, int maxlength)
{
return this.GetString("Type", buffer, maxlength);
}
property bool IsValid
{
public get() { return this.GetBool("IsValid"); }
}
property int Identity
{
public get() { return this.GetInt("Identity"); }
}
}
// =========================================================== //
methodmap APIBan < JSON_Object
{
public APIBan(JSON_Object hBan)
{
return view_as<APIBan>(hBan);
}
property int Id
{
public get() { return this.GetInt("id"); }
}
property int UpdatedById
{
public get() { return this.GetInt("updated_by_id"); }
}
public void GetStats(char[] buffer, int maxlength)
{
this.GetString("stats", buffer, maxlength);
}
public void GetBanType(char[] buffer, int maxlength)
{
this.GetString("ban_type", buffer, maxlength);
}
public void GetExpiresOn(char[] buffer, int maxlength)
{
this.GetString("expires_on", buffer, maxlength);
}
public void GetSteamId64(char[] buffer, int maxlength)
{
this.GetString("steamid64", buffer, maxlength);
}
public void GetPlayerName(char[] buffer, int maxlength)
{
this.GetString("player_name", buffer, maxlength);
}
public void GetNotes(char[] buffer, int maxlength)
{
this.GetString("notes", buffer, maxlength);
}
public void GetSteamId(char[] buffer, int maxlength)
{
this.GetString("steam_id", buffer, maxlength);
}
public void GetUpdatedOn(char[] buffer, int maxlength)
{
this.GetString("updated_on", buffer, maxlength);
}
property int ServerId
{
public get() { return this.GetInt("server_id"); }
}
public void GetCreatedOn(char[] buffer, int maxlength)
{
this.GetString("created_on", buffer, maxlength);
}
}
// =========================================================== //
methodmap APIJumpstat < JSON_Object
{
public APIJumpstat(JSON_Object hJump)
{
return view_as<APIJumpstat>(hJump);
}
property int Id
{
public get() { return this.GetInt("id"); }
}
property int ServerId
{
public get() { return this.GetInt("server_id"); }
}
public void GetSteamId64(char[] buffer, int maxlength)
{
this.GetString("steamid64", buffer, maxlength);
}
public void GetName(char[] buffer, int maxlength)
{
this.GetString("player_name", buffer, maxlength);
}
public void GetSteamId(char[] buffer, int maxlength)
{
this.GetString("steam_id", buffer, maxlength);
}
property int JumpType
{
public get() { return this.GetInt("jump_type"); }
}
property float Distance
{
public get() { return this.GetFloat("distance"); }
}
property int TickRate
{
public get() { return this.GetInt("tickrate"); }
}
property int MslCount
{
public get() { return this.GetInt("msl_count"); }
}
property int StrafeCount
{
public get() { return this.GetInt("strafe_count"); }
}
property bool IsCrouchBind
{
public get() { return this.GetBool("is_crouch_bind"); }
}
property bool IsForwardBind
{
public get() { return this.GetBool("is_forward_bind"); }
}
property bool IsCrouchBoost
{
public get() { return this.GetBool("is_crouch_boost"); }
}
property int UpdatedById
{
public get() { return this.GetInt("updated_by_id"); }
}
public void GetCreatedOn(char[] buffer, int maxlength)
{
this.GetString("created_on", buffer, maxlength);
}
public void GetUpdatedOn(char[] buffer, int maxlength)
{
this.GetString("updated_on", buffer, maxlength);
}
}
// =========================================================== //
methodmap APIMap < JSON_Object
{
public APIMap(JSON_Object hMap)
{
return view_as<APIMap>(hMap);
}
property int Id
{
public get() { return this.GetInt("id"); }
}
public void GetName(char[] buffer, int maxlength)
{
this.GetString("name", buffer, maxlength);
}
property int Filesize
{
public get() { return this.GetInt("filesize"); }
}
property bool IsValidated
{
public get() { return this.GetBool("validated"); }
}
property int Difficulty
{
public get() { return this.GetInt("difficulty"); }
}
public void GetCreatedOn(char[] buffer, int maxlength)
{
this.GetString("created_on", buffer, maxlength);
}
public void GetUpdatedOn(char[] buffer, int maxlength)
{
this.GetString("updated_on", buffer, maxlength);
}
public void GetApprovedBySteamId64(char[] buffer, int maxlength)
{
this.GetString("approved_by_steamid64", buffer, maxlength);
}
}
// =========================================================== //
methodmap APIMode < JSON_Object
{
public APIMode(JSON_Object hMode)
{
return view_as<APIMode>(hMode);
}
property int Id
{
public get() { return this.GetInt("id"); }
}
public void GetName(char[] buffer, int maxlength)
{
this.GetString("name", buffer, maxlength);
}
public void GetDescription(char[] buffer, int maxlength)
{
this.GetString("description", buffer, maxlength);
}
property int LatestVersion
{
public get() { return this.GetInt("latest_version"); }
}
public void GetLatestVersionDesc(char[] buffer, int maxlength)
{
this.GetString("latest_version_description", buffer, maxlength);
}
public void GetWebsite(char[] buffer, int maxlength)
{
this.GetString("website", buffer, maxlength);
}
public void GetRepository(char[] buffer, int maxlength)
{
this.GetString("repo", buffer, maxlength);
}
public void GetContactSteamId64(char[] buffer, int maxlength)
{
this.GetString("contact_steamid64", buffer, maxlength);
}
// TODO: Add supported_tickrates
public void GetCreatedOn(char[] buffer, int maxlength)
{
this.GetString("created_on", buffer, maxlength);
}
public void GetUpdatedOn(char[] buffer, int maxlength)
{
this.GetString("updated_on", buffer, maxlength);
}
public void GetUpdatedById(char[] buffer, int maxlength)
{
this.GetString("updated_by_id", buffer, maxlength);
}
}
// =========================================================== //
methodmap APIPlayerRank < JSON_Object
{
public APIPlayerRank(JSON_Object hPlayerRank)
{
return view_as<APIPlayerRank>(hPlayerRank);
}
property int Points
{
public get() { return this.GetInt("points"); }
}
property int PointsOverall
{
public get() { return this.GetInt("points_overall"); }
}
property float Average
{
public get() { return this.GetFloat("average"); }
}
property float Rating
{
public get() { return this.GetFloat("rating"); }
}
property int Finishes
{
public get() { return this.GetInt("finishes"); }
}
public void GetSteamId64(char[] buffer, int maxlength)
{
this.GetString("steamid64", buffer, maxlength);
}
public void GetSteamId(char[] buffer, int maxlength)
{
this.GetString("steamid", buffer, maxlength);
}
public void GetPlayerName(char[] buffer, int maxlength)
{
this.GetString("player_name", buffer, maxlength);
}
}
// =========================================================== //
methodmap APIPlayer < JSON_Object
{
public APIPlayer(JSON_Object hPlayer)
{
return view_as<APIPlayer>(hPlayer);
}
public void GetSteamId64(char[] buffer, int maxlength)
{
this.GetString("steamid64", buffer, maxlength);
}
public void GetSteamId(char[] buffer, int maxlength)
{
this.GetString("steam_id", buffer, maxlength);
}
property bool IsBanned
{
public get() { return this.GetBool("is_banned"); }
}
property int TotalRecords
{
public get() { return this.GetInt("total_records"); }
}
public void GetName(char[] buffer, int maxlength)
{
this.GetString("name", buffer, maxlength);
}
}
// =========================================================== //
methodmap APIRecord < JSON_Object
{
public APIRecord(JSON_Object hRecord)
{
return view_as<APIRecord>(hRecord);
}
property int Id
{
public get() { return this.GetInt("id"); }
}
public void GetSteamId64(char[] buffer, int maxlength)
{
this.GetString("steamid64", buffer, maxlength);
}
public void GetPlayerName(char[] buffer, int maxlength)
{
this.GetString("player_name", buffer, maxlength);
}
public void GetSteamId(char[] buffer, int maxlength)
{
this.GetString("steam_id", buffer, maxlength);
}
property int ServerId
{
public get() { return this.GetInt("server_id"); }
}
property int MapId
{
public get() { return this.GetInt("map_id"); }
}
property int Stage
{
public get() { return this.GetInt("stage"); }
}
public void GetMode(char[] buffer, int maxlength)
{
this.GetString("mode", buffer, maxlength);
}
property int TickRate
{
public get() { return this.GetInt("tickrate"); }
}
property float Time
{
public get() { return this.GetFloat("time"); }
}
property int Teleports
{
public get() { return this.GetInt("teleports"); }
}
public void GetCreatedOn(char[] buffer, int maxlength)
{
this.GetString("created_on", buffer, maxlength);
}
public void GetUpdatedOn(char[] buffer, int maxlength)
{
this.GetString("updated_on", buffer, maxlength);
}
property int UpdatedBy
{
public get() { return this.GetInt("updated_by"); }
}
public void GetServerName(char[] buffer, int maxlength)
{
this.GetString("server_name", buffer, maxlength);
}
public void GetMapName(char[] buffer, int maxlength)
{
this.GetString("map_name", buffer, maxlength);
}
}
// =========================================================== //
methodmap APIServer < JSON_Object
{
public APIServer(JSON_Object hServer)
{
return view_as<APIServer>(hServer);
}
property int Port
{
public get() { return this.GetInt("port"); }
}
public void GetIPAddress(char[] buffer, int maxlength)
{
this.GetString("ip", buffer, maxlength);
}
public void GetName(char[] buffer, int maxlength)
{
this.GetString("name", buffer, maxlength);
}
public void GetOwnerSteamId64(char[] buffer, int maxlength)
{
this.GetString("owner_steamid64", buffer, maxlength);
}
}
// =========================================================== //
methodmap APIRecordFilter < JSON_Object
{
public APIRecordFilter(JSON_Object hRecordFilter)
{
return view_as<APIRecordFilter>(hRecordFilter);
}
property int Id
{
public get() { return this.GetInt("id"); }
}
property int MapId
{
public get() { return this.GetInt("map_id"); }
}
property int Stage
{
public get() { return this.GetInt("stage"); }
}
property int ModeId
{
public get() { return this.GetInt("mode_id"); }
}
property int TickRate
{
public get() { return this.GetInt("tickrate"); }
}
property bool HasTeleports
{
public get() { return this.GetBool("has_teleports"); }
}
public void GetCreatedOn(char[] buffer, int maxlength)
{
this.GetString("created_on", buffer, maxlength);
}
public void GetUpdatedOn(char[] buffer, int maxlength)
{
this.GetString("updated_on", buffer, maxlength);
}
public void GetUpdatedById(char[] buffer, int maxlength)
{
this.GetString("updated_by_id", buffer, maxlength);
}
}
// =========================================================== //
|