xray16 1.3.4 → 1.4.0

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.
Files changed (84) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +112 -106
  3. package/package.json +45 -42
  4. package/plugins/built_at_info.d.ts +1 -1
  5. package/plugins/from_cast_utils.d.ts +1 -1
  6. package/plugins/global_declarations_transform.d.ts +1 -1
  7. package/plugins/inject_file_meta.d.ts +1 -1
  8. package/plugins/inject_tracy_zones.d.ts +1 -1
  9. package/plugins/inject_tracy_zones.js +2 -2
  10. package/plugins/strip_lua_logger.d.ts +1 -1
  11. package/plugins/strip_lua_logger.js +1 -1
  12. package/plugins/transform_luabind_class/plugin.d.ts +1 -1
  13. package/plugins/transform_luabind_class/transformation/class_declaration.d.ts +3 -3
  14. package/plugins/transform_luabind_class/transformation/decorators.d.ts +5 -2
  15. package/plugins/transform_luabind_class/transformation/decorators.js +3 -0
  16. package/plugins/transform_luabind_class/transformation/members/accessors.d.ts +1 -1
  17. package/plugins/transform_luabind_class/transformation/members/constructor.d.ts +2 -2
  18. package/plugins/transform_luabind_class/transformation/members/constructor.js +2 -2
  19. package/plugins/transform_luabind_class/transformation/members/fields.d.ts +5 -2
  20. package/plugins/transform_luabind_class/transformation/members/fields.js +5 -2
  21. package/plugins/transform_luabind_class/transformation/members/method.d.ts +6 -3
  22. package/plugins/transform_luabind_class/transformation/members/method.js +4 -1
  23. package/plugins/transform_luabind_class/transformation/new.d.ts +7 -3
  24. package/plugins/transform_luabind_class/transformation/new.js +5 -1
  25. package/plugins/transform_luabind_class/transformation/setup.d.ts +9 -3
  26. package/plugins/transform_luabind_class/transformation/setup.js +22 -6
  27. package/plugins/transform_luabind_class/transformation/super.d.ts +19 -3
  28. package/plugins/transform_luabind_class/transformation/super.js +17 -1
  29. package/plugins/transform_luabind_class/transformation/utils.d.ts +27 -4
  30. package/plugins/transform_luabind_class/transformation/utils.js +25 -2
  31. package/plugins/utils/ast.d.ts +1 -1
  32. package/plugins/utils/diagnostics.d.ts +9 -5
  33. package/plugins/utils/diagnostics.js +5 -1
  34. package/plugins/utils/tracy.d.ts +1 -1
  35. package/types/index.d.ts +55 -55
  36. package/types/xr_ai/xr_action.d.ts +510 -510
  37. package/types/xr_ai/xr_alife.d.ts +566 -566
  38. package/types/xr_ai/xr_enemy_evaluation.d.ts +41 -41
  39. package/types/xr_ai/xr_goap.d.ts +669 -668
  40. package/types/xr_ai/xr_graph.d.ts +47 -47
  41. package/types/xr_ai/xr_memory.d.ts +148 -148
  42. package/types/xr_lib/xr_animation.d.ts +81 -81
  43. package/types/xr_lib/xr_bitwise.d.ts +32 -21
  44. package/types/xr_lib/xr_color.d.ts +45 -40
  45. package/types/xr_lib/xr_debug.d.ts +83 -77
  46. package/types/xr_lib/xr_dialog.d.ts +40 -40
  47. package/types/xr_lib/xr_flags.d.ts +529 -148
  48. package/types/xr_lib/xr_fs.d.ts +149 -148
  49. package/types/xr_lib/xr_game.d.ts +261 -158
  50. package/types/xr_lib/xr_hit.d.ts +41 -41
  51. package/types/xr_lib/xr_ini.d.ts +415 -188
  52. package/types/xr_lib/xr_level.d.ts +652 -225
  53. package/types/xr_lib/xr_luabind.d.ts +64 -59
  54. package/types/xr_lib/xr_map.d.ts +61 -61
  55. package/types/xr_lib/xr_math.d.ts +815 -233
  56. package/types/xr_lib/xr_multiplayer.d.ts +351 -351
  57. package/types/xr_lib/xr_profile.d.ts +192 -160
  58. package/types/xr_lib/xr_properties.d.ts +455 -166
  59. package/types/xr_lib/xr_relation.d.ts +84 -84
  60. package/types/xr_lib/xr_render.d.ts +71 -69
  61. package/types/xr_lib/xr_save.d.ts +727 -223
  62. package/types/xr_lib/xr_sound.d.ts +151 -151
  63. package/types/xr_lib/xr_stats.ts +20 -20
  64. package/types/xr_lib/xr_task.d.ts +111 -111
  65. package/types/xr_lib/xr_time.d.ts +166 -61
  66. package/types/xr_lib/xr_type.d.ts +75 -75
  67. package/types/xr_object/client/xr_anomaly.d.ts +50 -50
  68. package/types/xr_object/client/xr_artefact.d.ts +98 -98
  69. package/types/xr_object/client/xr_client_object.d.ts +76 -76
  70. package/types/xr_object/client/xr_creature.d.ts +164 -164
  71. package/types/xr_object/client/xr_item.d.ts +264 -264
  72. package/types/xr_object/client/xr_level.d.ts +285 -285
  73. package/types/xr_object/client/xr_physic.d.ts +214 -214
  74. package/types/xr_object/client/xr_zone.d.ts +47 -47
  75. package/types/xr_object/script/xr_script_interface.d.ts +584 -584
  76. package/types/xr_object/script/xr_script_object.d.ts +2408 -1390
  77. package/types/xr_object/script/xr_script_trade.d.ts +41 -26
  78. package/types/xr_object/server/xr_server_object.d.ts +794 -792
  79. package/types/xr_ui/xr_ui_asset.d.ts +129 -123
  80. package/types/xr_ui/xr_ui_core.d.ts +106 -97
  81. package/types/xr_ui/xr_ui_event.d.ts +383 -381
  82. package/types/xr_ui/xr_ui_interface.d.ts +901 -903
  83. package/types/xr_ui/xr_ui_menu.d.ts +142 -142
  84. package/types/xrf_plugin.d.ts +59 -51
@@ -1,351 +1,351 @@
1
- declare module "xray16" {
2
- /**
3
- * @source C++ class demo_info
4
- * @customConstructor demo_info
5
- * @group xr_multiplayer
6
- */
7
- export class demo_info {
8
- protected constructor();
9
-
10
- public get_author_name(): string;
11
- public get_game_score(): string;
12
- public get_game_type(): string;
13
- public get_map_name(): string;
14
- public get_map_version(): string;
15
- public get_player(value: u32): demo_player_info;
16
- public get_players_count(): u32;
17
- }
18
-
19
- /**
20
- * @source C++ class demo_player_info
21
- * @customConstructor demo_player_info
22
- * @group xr_multiplayer
23
- */
24
- export class demo_player_info {
25
- public get_artefacts(): u16;
26
- public get_deaths(): i16;
27
- public get_frags(): i16;
28
- public get_name(): string;
29
- public get_rank(): u8;
30
- public get_spots(): i16;
31
- public get_team(): u8;
32
- }
33
-
34
- /**
35
- * @source C++ class SServerFilters
36
- * @customConstructor SServerFilters
37
- * @group xr_multiplayer
38
- */
39
- export class SServerFilters {
40
- public empty: boolean;
41
- public full: boolean;
42
- public listen_servers: boolean;
43
- public with_pass: boolean;
44
- public without_ff: boolean;
45
- public without_pass: boolean;
46
-
47
- public constructor();
48
- }
49
-
50
- /**
51
- * @source C++ class profile
52
- * @customConstructor XR_profile
53
- * @group xr_multiplayer
54
- */
55
- export class profile {
56
- public unique_nick(): string;
57
- public online(): boolean;
58
- }
59
-
60
- /**
61
- * @source C++ class account_manager
62
- * @customConstructor account_manager
63
- * @group xr_multiplayer
64
- */
65
- export class account_manager {
66
- private constructor();
67
-
68
- public create_profile(acc: string, nick: string, mail: string, password: string, cb: account_profiles_cb): void;
69
- public delete_profile(operation: account_operation_cb): void;
70
- public get_account_profiles(email: string, password: string, cb: account_profiles_cb): unknown;
71
- public get_found_profiles(): LuaIterable<string>;
72
- public get_suggested_unicks(): LuaIterable<string>;
73
- public get_verify_error_descr(): string;
74
- public search_for_email(email: string, cb: found_email_cb): void;
75
- public stop_fetching_account_profiles(): void;
76
- public stop_searching_email(): void;
77
- public stop_suggest_unique_nicks(): void;
78
- public suggest_unique_nicks(nick: string, b: suggest_nicks_cb): void;
79
- public verify_email(email: string): boolean;
80
- public verify_password(password: string): boolean;
81
- public verify_unique_nick(nick: string): boolean;
82
- public is_get_account_profiles_active(): boolean;
83
- public is_email_searching_active(): boolean;
84
- }
85
-
86
- /**
87
- * @source C++ class login_manager
88
- * @customConstructor login_manager
89
- * @group xr_multiplayer
90
- */
91
- export class login_manager {
92
- private constructor();
93
-
94
- public forgot_password(url: string): void;
95
- public get_current_profile(): profile | null;
96
- public get_email_from_registry(): string;
97
- public get_nick_from_registry(): string;
98
- public get_password_from_registry(): string;
99
- public get_remember_me_from_registry(): boolean;
100
- public login(mail: string, profile: string, password: string, cb: login_operation_cb): void;
101
- public login_offline(nick: string, cb: login_operation_cb): void;
102
- public logout(): void;
103
- public save_email_to_registry(email: string): void;
104
- public save_nick_to_registry(nick: string): void;
105
- public save_password_to_registry(password: string): void;
106
- public save_remember_me_to_registry(remember_me: boolean): void;
107
- public set_unique_nick(nick: string, cb: login_operation_cb): void;
108
- public stop_login(): void;
109
- public stop_setting_unique_nick(): void;
110
- }
111
-
112
- /**
113
- * @source C++ class award_pair_t
114
- * @customConstructor award_pair_t
115
- * @group xr_multiplayer
116
- */
117
- export class award_pair_t {
118
- public readonly first: award_data;
119
- public readonly second: award_data;
120
- }
121
-
122
- /**
123
- * @source C++ class best_scores_pair_t
124
- * @customConstructor best_scores_pair_t
125
- * @group xr_multiplayer
126
- */
127
- export class best_scores_pair_t {
128
- public first: award_data;
129
- public second: award_data;
130
- }
131
-
132
- /**
133
- * @source C++ class account_profiles_cb
134
- * @customConstructor account_profiles_cb
135
- * @group xr_multiplayer
136
- */
137
- export class account_profiles_cb {
138
- public constructor(object: object, cb: (this: object, code: number, description: string) => void);
139
-
140
- public bind(object: object, cb: (this: object, code: number, description: string) => void): void;
141
- public clear(): void;
142
- }
143
-
144
- /**
145
- * @source C++ class login_operation_cb
146
- * @customConstructor login_operation_cb
147
- * @group xr_multiplayer
148
- */
149
- export class login_operation_cb {
150
- public constructor(object: object, cb: (this: object, profile: profile | null, description: string) => void);
151
-
152
- public bind(object: object, cb: (this: object, profile: profile | null, description: string) => void): void;
153
- public clear(): void;
154
- }
155
-
156
- /**
157
- * @source C++ class connect_error_cb
158
- * @customConstructor connect_error_cb
159
- * @group xr_multiplayer
160
- */
161
- export class connect_error_cb {
162
- public constructor(object: object, cb: (this: object, code: number, description: string) => void);
163
-
164
- public bind(object: object, cb: (this: object, code: number, description: string) => void): void;
165
- public clear(): void;
166
- }
167
-
168
- /**
169
- * @source C++ class account_operation_cb
170
- * @customConstructor account_operation_cb
171
- * @group xr_multiplayer
172
- */
173
- export class account_operation_cb {
174
- public constructor(object: object, cb: (this: object, code: number, description: string) => void);
175
-
176
- public bind(object: object, cb: (this: object, code: number, description: string) => void): void;
177
- public clear(): void;
178
- }
179
-
180
- /**
181
- * @source C++ class found_email_cb
182
- * @customConstructor found_email_cb
183
- * @group xr_multiplayer
184
- */
185
- export class found_email_cb {
186
- public constructor(object: object, cb: (this: object, found: boolean, description: string) => void);
187
-
188
- public bind(object: object, cb: (this: object, found: boolean, description: string) => void): void;
189
- public clear(): void;
190
- }
191
-
192
- /**
193
- * @source C++ class store_operation_cb
194
- * @customConstructor store_operation_cb
195
- * @group xr_multiplayer
196
- */
197
- export class store_operation_cb {
198
- public constructor(object: object, cb: (this: object, code: number | boolean, description: string) => void);
199
-
200
- public bind(object: object, cb: (this: object, code: number, description: string) => void): void;
201
- public clear(): void;
202
- }
203
-
204
- /**
205
- * @source C++ class suggest_nicks_cb
206
- * @customConstructor suggest_nicks_cb
207
- * @group xr_multiplayer
208
- */
209
- export class suggest_nicks_cb {
210
- public constructor(object: object, cb: (this: object, result: number, description: string) => void);
211
-
212
- public bind(object: object, cb: (this: object, result: number, description: string) => void): void;
213
- public clear(): void;
214
- }
215
-
216
- /**
217
- * @source C++ class Patch_Dawnload_Progress
218
- * @customConstructor Patch_Dawnload_Progress
219
- * @group xr_multiplayer
220
- */
221
- export class Patch_Dawnload_Progress {
222
- public GetProgress(): f32;
223
- public GetInProgress(): boolean;
224
- public GetStatus(): string;
225
- public GetFlieName(): string;
226
- }
227
-
228
- /**
229
- * @source C++ class profile_store
230
- * @customConstructor profile_store
231
- * @group xr_multiplayer
232
- */
233
- export class profile_store {
234
- public static readonly at_award_massacre: 0;
235
- public static readonly at_awards_count: 30;
236
- public static readonly bst_backstabs_in_row: 2;
237
- public static readonly bst_bleed_kills_in_row: 2;
238
- public static readonly bst_explosive_kills_in_row: 3;
239
- public static readonly bst_eye_kills_in_row: 4;
240
- public static readonly bst_head_shots_in_row: 3;
241
- public static readonly bst_kills_in_row: 0;
242
- public static readonly bst_kinife_kills_in_row: 1;
243
- public static readonly bst_score_types_count: 7;
244
-
245
- protected constructor();
246
-
247
- public get_awards(): LuaIterable<award_pair_t>;
248
- public get_best_scores(): LuaIterable<best_scores_pair_t>;
249
- public load_current_profile(onProgress: store_operation_cb, onComlete: store_operation_cb): void;
250
- public stop_loading(): void;
251
- }
252
-
253
- /**
254
- * @source C++ class award_data
255
- * @customConstructor award_data
256
- * @group xr_multiplayer
257
- */
258
- export class award_data {
259
- public m_count: u16;
260
- public m_last_reward_date: u32;
261
- }
262
-
263
- /**
264
- * @source C++ class game_messages
265
- * @customConstructor game_messages
266
- * @group xr_multiplayer
267
- */
268
- export class game_messages {
269
- public static GAME_EVENT_ARTEFACT_DESTROYED: 17;
270
- public static GAME_EVENT_ARTEFACT_DROPPED: 19;
271
- public static GAME_EVENT_ARTEFACT_ONBASE: 20;
272
- public static GAME_EVENT_ARTEFACT_SPAWNED: 16;
273
- public static GAME_EVENT_ARTEFACT_TAKEN: 18;
274
- public static GAME_EVENT_BUY_MENU_CLOSED: 23;
275
- public static GAME_EVENT_PLAYER_BUY_FINISHED: 2;
276
- public static GAME_EVENT_PLAYER_CHANGE_SKIN: 6;
277
- public static GAME_EVENT_PLAYER_CHANGE_TEAM: 6;
278
- public static GAME_EVENT_PLAYER_CONNECTED: 8;
279
- public static GAME_EVENT_PLAYER_DISCONNECTED: 9;
280
- public static GAME_EVENT_PLAYER_ENTER_TEAM_BASE: 21;
281
- public static GAME_EVENT_PLAYER_JOIN_TEAM: 13;
282
- public static GAME_EVENT_PLAYER_KILL: 1;
283
- public static GAME_EVENT_PLAYER_KILLED: 11;
284
- public static GAME_EVENT_PLAYER_LEAVE_TEAM_BASE: 22;
285
- public static GAME_EVENT_PLAYER_READY: 0;
286
- public static GAME_EVENT_ROUND_END: 15;
287
- public static GAME_EVENT_ROUND_STARTED: 14;
288
- public static GAME_EVENT_SCRIPT_BEGINS_FROM: 46;
289
- public static GAME_EVENT_SKIN_MENU_CLOSED: 25;
290
- public static GAME_EVENT_TEAM_MENU_CLOSED: 24;
291
-
292
- protected constructor();
293
- }
294
-
295
- /**
296
- * @group xr_multiplayer
297
- */
298
- export type TXR_game_message = EnumeratedStaticsValues<game_messages>;
299
-
300
- /**
301
- * @source C++ class game_GameState : DLL_Pure
302
- * @customConstructor game_GameState
303
- * @group xr_multiplayer
304
- */
305
- export class game_GameState extends DLL_Pure {
306
- public round: i32;
307
- public start_time: u32;
308
- public type: number; /* EGameIDs */
309
-
310
- public constructor();
311
-
312
- public StartTime(): u32;
313
-
314
- public Round(): i32;
315
-
316
- public Phase(): u16;
317
-
318
- public Type(): number; /* EGameIDs */
319
- }
320
-
321
- /**
322
- * todo:
323
- *
324
- * class_<game_PlayerState, no_bases, default_holder, WrapType>("game_PlayerState")
325
- * .def(constructor<>())
326
- * .def_readwrite("team", &BaseType::team)
327
- * .def_readwrite("kills", &BaseType::m_iRivalKills)
328
- * .def_readwrite("deaths", &BaseType::m_iDeaths)
329
- * .def_readwrite("money_for_round", &BaseType::money_for_round)
330
- * .def_readwrite("flags", &BaseType::flags__)
331
- * .def_readwrite("ping", &BaseType::ping)
332
- * .def_readwrite("GameID", &BaseType::GameID)
333
- * //.def_readwrite("Skip", &BaseType::Skip)
334
- * .def_readwrite("lasthitter", &BaseType::lasthitter)
335
- * .def_readwrite("lasthitweapon", &BaseType::lasthitweapon)
336
- * .def_readwrite("skin", &BaseType::skin)
337
- * .def_readwrite("RespawnTime", &BaseType::RespawnTime)
338
- * .def_readwrite("money_delta", &BaseType::money_delta)
339
- *
340
- * .def_readwrite("pItemList", &BaseType::pItemList)
341
- * .def_readwrite("LastBuyAcount", &BaseType::LastBuyAcount)
342
- * .def("testFlag", &BaseType::testFlag)
343
- * .def("setFlag", &BaseType::setFlag)
344
- * .def("resetFlag", &BaseType::resetFlag)
345
- * .def("getName", &BaseType::getName)
346
- * .def("setName", &BaseType::setName)
347
- * .def("clear", &BaseType::clear, &WrapType::clear_static)
348
- * .def("net_Export", &BaseType::net_Export, &WrapType::net_Export_static)
349
- * .def("net_Import", &BaseType::net_Import, &WrapType::net_Import_static)
350
- */
351
- }
1
+ declare module "xray16" {
2
+ /**
3
+ * @source C++ class demo_info
4
+ * @customConstructor demo_info
5
+ * @group xr_multiplayer
6
+ */
7
+ export class demo_info {
8
+ protected constructor();
9
+
10
+ public get_author_name(): string;
11
+ public get_game_score(): string;
12
+ public get_game_type(): string;
13
+ public get_map_name(): string;
14
+ public get_map_version(): string;
15
+ public get_player(value: u32): demo_player_info;
16
+ public get_players_count(): u32;
17
+ }
18
+
19
+ /**
20
+ * @source C++ class demo_player_info
21
+ * @customConstructor demo_player_info
22
+ * @group xr_multiplayer
23
+ */
24
+ export class demo_player_info {
25
+ public get_artefacts(): u16;
26
+ public get_deaths(): i16;
27
+ public get_frags(): i16;
28
+ public get_name(): string;
29
+ public get_rank(): u8;
30
+ public get_spots(): i16;
31
+ public get_team(): u8;
32
+ }
33
+
34
+ /**
35
+ * @source C++ class SServerFilters
36
+ * @customConstructor SServerFilters
37
+ * @group xr_multiplayer
38
+ */
39
+ export class SServerFilters {
40
+ public empty: boolean;
41
+ public full: boolean;
42
+ public listen_servers: boolean;
43
+ public with_pass: boolean;
44
+ public without_ff: boolean;
45
+ public without_pass: boolean;
46
+
47
+ public constructor();
48
+ }
49
+
50
+ /**
51
+ * @source C++ class profile
52
+ * @customConstructor XR_profile
53
+ * @group xr_multiplayer
54
+ */
55
+ export class profile {
56
+ public unique_nick(): string;
57
+ public online(): boolean;
58
+ }
59
+
60
+ /**
61
+ * @source C++ class account_manager
62
+ * @customConstructor account_manager
63
+ * @group xr_multiplayer
64
+ */
65
+ export class account_manager {
66
+ private constructor();
67
+
68
+ public create_profile(acc: string, nick: string, mail: string, password: string, cb: account_profiles_cb): void;
69
+ public delete_profile(operation: account_operation_cb): void;
70
+ public get_account_profiles(email: string, password: string, cb: account_profiles_cb): unknown;
71
+ public get_found_profiles(): LuaIterable<string>;
72
+ public get_suggested_unicks(): LuaIterable<string>;
73
+ public get_verify_error_descr(): string;
74
+ public search_for_email(email: string, cb: found_email_cb): void;
75
+ public stop_fetching_account_profiles(): void;
76
+ public stop_searching_email(): void;
77
+ public stop_suggest_unique_nicks(): void;
78
+ public suggest_unique_nicks(nick: string, b: suggest_nicks_cb): void;
79
+ public verify_email(email: string): boolean;
80
+ public verify_password(password: string): boolean;
81
+ public verify_unique_nick(nick: string): boolean;
82
+ public is_get_account_profiles_active(): boolean;
83
+ public is_email_searching_active(): boolean;
84
+ }
85
+
86
+ /**
87
+ * @source C++ class login_manager
88
+ * @customConstructor login_manager
89
+ * @group xr_multiplayer
90
+ */
91
+ export class login_manager {
92
+ private constructor();
93
+
94
+ public forgot_password(url: string): void;
95
+ public get_current_profile(): profile | null;
96
+ public get_email_from_registry(): string;
97
+ public get_nick_from_registry(): string;
98
+ public get_password_from_registry(): string;
99
+ public get_remember_me_from_registry(): boolean;
100
+ public login(mail: string, profile: string, password: string, cb: login_operation_cb): void;
101
+ public login_offline(nick: string, cb: login_operation_cb): void;
102
+ public logout(): void;
103
+ public save_email_to_registry(email: string): void;
104
+ public save_nick_to_registry(nick: string): void;
105
+ public save_password_to_registry(password: string): void;
106
+ public save_remember_me_to_registry(remember_me: boolean): void;
107
+ public set_unique_nick(nick: string, cb: login_operation_cb): void;
108
+ public stop_login(): void;
109
+ public stop_setting_unique_nick(): void;
110
+ }
111
+
112
+ /**
113
+ * @source C++ class award_pair_t
114
+ * @customConstructor award_pair_t
115
+ * @group xr_multiplayer
116
+ */
117
+ export class award_pair_t {
118
+ public readonly first: award_data;
119
+ public readonly second: award_data;
120
+ }
121
+
122
+ /**
123
+ * @source C++ class best_scores_pair_t
124
+ * @customConstructor best_scores_pair_t
125
+ * @group xr_multiplayer
126
+ */
127
+ export class best_scores_pair_t {
128
+ public first: award_data;
129
+ public second: award_data;
130
+ }
131
+
132
+ /**
133
+ * @source C++ class account_profiles_cb
134
+ * @customConstructor account_profiles_cb
135
+ * @group xr_multiplayer
136
+ */
137
+ export class account_profiles_cb {
138
+ public constructor(object: object, cb: (this: object, code: number, description: string) => void);
139
+
140
+ public bind(object: object, cb: (this: object, code: number, description: string) => void): void;
141
+ public clear(): void;
142
+ }
143
+
144
+ /**
145
+ * @source C++ class login_operation_cb
146
+ * @customConstructor login_operation_cb
147
+ * @group xr_multiplayer
148
+ */
149
+ export class login_operation_cb {
150
+ public constructor(object: object, cb: (this: object, profile: profile | null, description: string) => void);
151
+
152
+ public bind(object: object, cb: (this: object, profile: profile | null, description: string) => void): void;
153
+ public clear(): void;
154
+ }
155
+
156
+ /**
157
+ * @source C++ class connect_error_cb
158
+ * @customConstructor connect_error_cb
159
+ * @group xr_multiplayer
160
+ */
161
+ export class connect_error_cb {
162
+ public constructor(object: object, cb: (this: object, code: number, description: string) => void);
163
+
164
+ public bind(object: object, cb: (this: object, code: number, description: string) => void): void;
165
+ public clear(): void;
166
+ }
167
+
168
+ /**
169
+ * @source C++ class account_operation_cb
170
+ * @customConstructor account_operation_cb
171
+ * @group xr_multiplayer
172
+ */
173
+ export class account_operation_cb {
174
+ public constructor(object: object, cb: (this: object, code: number, description: string) => void);
175
+
176
+ public bind(object: object, cb: (this: object, code: number, description: string) => void): void;
177
+ public clear(): void;
178
+ }
179
+
180
+ /**
181
+ * @source C++ class found_email_cb
182
+ * @customConstructor found_email_cb
183
+ * @group xr_multiplayer
184
+ */
185
+ export class found_email_cb {
186
+ public constructor(object: object, cb: (this: object, found: boolean, description: string) => void);
187
+
188
+ public bind(object: object, cb: (this: object, found: boolean, description: string) => void): void;
189
+ public clear(): void;
190
+ }
191
+
192
+ /**
193
+ * @source C++ class store_operation_cb
194
+ * @customConstructor store_operation_cb
195
+ * @group xr_multiplayer
196
+ */
197
+ export class store_operation_cb {
198
+ public constructor(object: object, cb: (this: object, code: number | boolean, description: string) => void);
199
+
200
+ public bind(object: object, cb: (this: object, code: number, description: string) => void): void;
201
+ public clear(): void;
202
+ }
203
+
204
+ /**
205
+ * @source C++ class suggest_nicks_cb
206
+ * @customConstructor suggest_nicks_cb
207
+ * @group xr_multiplayer
208
+ */
209
+ export class suggest_nicks_cb {
210
+ public constructor(object: object, cb: (this: object, result: number, description: string) => void);
211
+
212
+ public bind(object: object, cb: (this: object, result: number, description: string) => void): void;
213
+ public clear(): void;
214
+ }
215
+
216
+ /**
217
+ * @source C++ class Patch_Dawnload_Progress
218
+ * @customConstructor Patch_Dawnload_Progress
219
+ * @group xr_multiplayer
220
+ */
221
+ export class Patch_Dawnload_Progress {
222
+ public GetProgress(): f32;
223
+ public GetInProgress(): boolean;
224
+ public GetStatus(): string;
225
+ public GetFlieName(): string;
226
+ }
227
+
228
+ /**
229
+ * @source C++ class profile_store
230
+ * @customConstructor profile_store
231
+ * @group xr_multiplayer
232
+ */
233
+ export class profile_store {
234
+ public static readonly at_award_massacre: 0;
235
+ public static readonly at_awards_count: 30;
236
+ public static readonly bst_backstabs_in_row: 2;
237
+ public static readonly bst_bleed_kills_in_row: 2;
238
+ public static readonly bst_explosive_kills_in_row: 3;
239
+ public static readonly bst_eye_kills_in_row: 4;
240
+ public static readonly bst_head_shots_in_row: 3;
241
+ public static readonly bst_kills_in_row: 0;
242
+ public static readonly bst_kinife_kills_in_row: 1;
243
+ public static readonly bst_score_types_count: 7;
244
+
245
+ protected constructor();
246
+
247
+ public get_awards(): LuaIterable<award_pair_t>;
248
+ public get_best_scores(): LuaIterable<best_scores_pair_t>;
249
+ public load_current_profile(onProgress: store_operation_cb, onComlete: store_operation_cb): void;
250
+ public stop_loading(): void;
251
+ }
252
+
253
+ /**
254
+ * @source C++ class award_data
255
+ * @customConstructor award_data
256
+ * @group xr_multiplayer
257
+ */
258
+ export class award_data {
259
+ public m_count: u16;
260
+ public m_last_reward_date: u32;
261
+ }
262
+
263
+ /**
264
+ * @source C++ class game_messages
265
+ * @customConstructor game_messages
266
+ * @group xr_multiplayer
267
+ */
268
+ export class game_messages {
269
+ public static GAME_EVENT_ARTEFACT_DESTROYED: 17;
270
+ public static GAME_EVENT_ARTEFACT_DROPPED: 19;
271
+ public static GAME_EVENT_ARTEFACT_ONBASE: 20;
272
+ public static GAME_EVENT_ARTEFACT_SPAWNED: 16;
273
+ public static GAME_EVENT_ARTEFACT_TAKEN: 18;
274
+ public static GAME_EVENT_BUY_MENU_CLOSED: 23;
275
+ public static GAME_EVENT_PLAYER_BUY_FINISHED: 2;
276
+ public static GAME_EVENT_PLAYER_CHANGE_SKIN: 6;
277
+ public static GAME_EVENT_PLAYER_CHANGE_TEAM: 6;
278
+ public static GAME_EVENT_PLAYER_CONNECTED: 8;
279
+ public static GAME_EVENT_PLAYER_DISCONNECTED: 9;
280
+ public static GAME_EVENT_PLAYER_ENTER_TEAM_BASE: 21;
281
+ public static GAME_EVENT_PLAYER_JOIN_TEAM: 13;
282
+ public static GAME_EVENT_PLAYER_KILL: 1;
283
+ public static GAME_EVENT_PLAYER_KILLED: 11;
284
+ public static GAME_EVENT_PLAYER_LEAVE_TEAM_BASE: 22;
285
+ public static GAME_EVENT_PLAYER_READY: 0;
286
+ public static GAME_EVENT_ROUND_END: 15;
287
+ public static GAME_EVENT_ROUND_STARTED: 14;
288
+ public static GAME_EVENT_SCRIPT_BEGINS_FROM: 46;
289
+ public static GAME_EVENT_SKIN_MENU_CLOSED: 25;
290
+ public static GAME_EVENT_TEAM_MENU_CLOSED: 24;
291
+
292
+ protected constructor();
293
+ }
294
+
295
+ /**
296
+ * @group xr_multiplayer
297
+ */
298
+ export type TXR_game_message = EnumeratedStaticsValues<game_messages>;
299
+
300
+ /**
301
+ * @source C++ class game_GameState : DLL_Pure
302
+ * @customConstructor game_GameState
303
+ * @group xr_multiplayer
304
+ */
305
+ export class game_GameState extends DLL_Pure {
306
+ public round: i32;
307
+ public start_time: u32;
308
+ public type: number; /* EGameIDs */
309
+
310
+ public constructor();
311
+
312
+ public StartTime(): u32;
313
+
314
+ public Round(): i32;
315
+
316
+ public Phase(): u16;
317
+
318
+ public Type(): number; /* EGameIDs */
319
+ }
320
+
321
+ /**
322
+ * Todo:
323
+ *
324
+ * class_<game_PlayerState, no_bases, default_holder, WrapType>("game_PlayerState")
325
+ * .def(constructor<>())
326
+ * .def_readwrite("team", &BaseType::team)
327
+ * .def_readwrite("kills", &BaseType::m_iRivalKills)
328
+ * .def_readwrite("deaths", &BaseType::m_iDeaths)
329
+ * .def_readwrite("money_for_round", &BaseType::money_for_round)
330
+ * .def_readwrite("flags", &BaseType::flags__)
331
+ * .def_readwrite("ping", &BaseType::ping)
332
+ * .def_readwrite("GameID", &BaseType::GameID)
333
+ * //.def_readwrite("Skip", &BaseType::Skip)
334
+ * .def_readwrite("lasthitter", &BaseType::lasthitter)
335
+ * .def_readwrite("lasthitweapon", &BaseType::lasthitweapon)
336
+ * .def_readwrite("skin", &BaseType::skin)
337
+ * .def_readwrite("RespawnTime", &BaseType::RespawnTime)
338
+ * .def_readwrite("money_delta", &BaseType::money_delta).
339
+ *
340
+ * .def_readwrite("pItemList", &BaseType::pItemList)
341
+ * .def_readwrite("LastBuyAcount", &BaseType::LastBuyAcount)
342
+ * .def("testFlag", &BaseType::testFlag)
343
+ * .def("setFlag", &BaseType::setFlag)
344
+ * .def("resetFlag", &BaseType::resetFlag)
345
+ * .def("getName", &BaseType::getName)
346
+ * .def("setName", &BaseType::setName)
347
+ * .def("clear", &BaseType::clear, &WrapType::clear_static)
348
+ * .def("net_Export", &BaseType::net_Export, &WrapType::net_Export_static)
349
+ * .def("net_Import", &BaseType::net_Import, &WrapType::net_Import_static).
350
+ */
351
+ }