xray16 1.0.7 → 1.0.8

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 (65) hide show
  1. package/README.md +4 -1
  2. package/package.json +4 -3
  3. package/types/index.d.ts +46 -22
  4. package/types/{xr_object → xr_ai}/xr_action.d.ts +163 -135
  5. package/types/xr_ai/xr_alife.d.ts +552 -0
  6. package/types/xr_ai/xr_enemy_evaluation.d.ts +41 -0
  7. package/types/xr_ai/xr_goap.d.ts +668 -0
  8. package/types/xr_ai/xr_graph.d.ts +47 -0
  9. package/types/xr_ai/xr_memory.d.ts +148 -0
  10. package/types/xr_lib/xr_animation.d.ts +81 -0
  11. package/types/xr_lib/xr_bitwise.d.ts +21 -0
  12. package/types/xr_lib/xr_color.d.ts +40 -0
  13. package/types/xr_lib/xr_debug.d.ts +100 -0
  14. package/types/{xr_object → xr_lib}/xr_dialog.d.ts +7 -1
  15. package/types/xr_lib/xr_flags.d.ts +148 -0
  16. package/types/xr_lib/xr_fs.d.ts +37 -233
  17. package/types/xr_lib/xr_game.d.ts +159 -0
  18. package/types/xr_lib/xr_hit.d.ts +41 -0
  19. package/types/xr_lib/xr_ini.d.ts +176 -0
  20. package/types/xr_lib/xr_level.d.ts +225 -0
  21. package/types/xr_lib/xr_luabind.d.ts +59 -0
  22. package/types/{xr_map → xr_lib}/xr_map.d.ts +19 -0
  23. package/types/xr_lib/xr_math.d.ts +65 -0
  24. package/types/{xr_online → xr_lib}/xr_multiplayer.d.ts +52 -0
  25. package/types/xr_lib/xr_properties.d.ts +166 -0
  26. package/types/xr_lib/xr_relation.d.ts +84 -0
  27. package/types/xr_lib/xr_render.d.ts +70 -0
  28. package/types/xr_lib/xr_save.d.ts +223 -0
  29. package/types/{xr_sound → xr_lib}/xr_sound.d.ts +10 -12
  30. package/types/xr_lib/xr_stats.ts +20 -0
  31. package/types/{xr_object/xr_quest.d.ts → xr_lib/xr_task.d.ts} +54 -2
  32. package/types/xr_lib/xr_time.d.ts +61 -0
  33. package/types/{xr_type → xr_lib}/xr_type.d.ts +13 -13
  34. package/types/xr_object/client/xr_client_object.d.ts +76 -0
  35. package/types/xr_object/{xr_level.d.ts → client/xr_level.d.ts} +69 -0
  36. package/types/xr_object/{xr_physic.d.ts → client/xr_physic.d.ts} +58 -0
  37. package/types/xr_object/client/xr_zone.d.ts +40 -0
  38. package/types/xr_object/script/xr_script_interface.d.ts +429 -0
  39. package/types/xr_object/{xr_client_object.d.ts → script/xr_script_object.d.ts} +425 -518
  40. package/types/xr_object/script/xr_script_trade.d.ts +26 -0
  41. package/types/xr_object/{xr_server_object.d.ts → server/xr_server_object.d.ts} +151 -72
  42. package/types/xr_ui/xr_ui_asset.d.ts +123 -0
  43. package/types/xr_ui/xr_ui_core.d.ts +33 -123
  44. package/types/xr_ui/xr_ui_event.d.ts +382 -0
  45. package/types/xr_ui/xr_ui_interface.d.ts +213 -0
  46. package/types/xr_ui/xr_ui_menu.d.ts +142 -0
  47. package/types/xr_constant.d.ts +0 -996
  48. package/types/xr_core.d.ts +0 -347
  49. package/types/xr_global.d.ts +0 -663
  50. package/types/xr_lib/xr_utils.d.ts +0 -412
  51. package/types/xr_luabind.d.ts +0 -34
  52. package/types/xr_object/xr_alife.d.ts +0 -213
  53. package/types/xr_type/xr_enums.d.ts +0 -17
  54. package/types/xr_ui/README.md +0 -277
  55. package/types/xr_ui/demo/CServerList.png +0 -0
  56. package/types/xr_ui/demo/CUI3tButton.png +0 -0
  57. package/types/xr_ui/demo/CUICheckButton.png +0 -0
  58. package/types/xr_ui/demo/CUIComboBox.png +0 -0
  59. package/types/xr_ui/demo/CUICustomEdit.png +0 -0
  60. package/types/xr_ui/demo/CUIStatic.png +0 -0
  61. package/types/xr_ui/demo/CUITrackBar.png +0 -0
  62. /package/types/xr_object/{xr_anomaly.d.ts → client/xr_anomaly.d.ts} +0 -0
  63. /package/types/xr_object/{xr_artefact.d.ts → client/xr_artefact.d.ts} +0 -0
  64. /package/types/xr_object/{xr_creature.d.ts → client/xr_creature.d.ts} +0 -0
  65. /package/types/xr_object/{xr_item.d.ts → client/xr_item.d.ts} +0 -0
@@ -1,663 +0,0 @@
1
- declare module "xray16" {
2
- /**
3
- * @source namespace global
4
- * @group xr_global
5
- */
6
-
7
- /**
8
- * @group xr_global
9
- */
10
- export function GetFontDI(this: void): CGameFont;
11
-
12
- /**
13
- * @group xr_global
14
- */
15
- export function GetFontGraffiti19Russian(this: void): CGameFont;
16
-
17
- /**
18
- * @group xr_global
19
- */
20
- export function GetFontGraffiti32Russian(this: void): CGameFont;
21
-
22
- /**
23
- * @group xr_global
24
- */
25
- export function GetFontGraffiti50Russian(this: void): CGameFont;
26
-
27
- /**
28
- * @group xr_global
29
- */
30
- export function GetFontLetterica18Russian(this: void): CGameFont;
31
-
32
- /**
33
- * @group xr_global
34
- */
35
- export function GetFontLetterica25(this: void): CGameFont;
36
-
37
- /**
38
- * @group xr_global
39
- */
40
- export function GetFontMedium(this: void): CGameFont;
41
-
42
- /**
43
- * @group xr_global
44
- */
45
- export function GetFontSmall(this: void): CGameFont;
46
-
47
- /**
48
- * @group xr_global
49
- */
50
- export function GetTextureInfo(this: void, char: string, char2: string, tex_info: TEX_INFO): boolean;
51
-
52
- /**
53
- * @group xr_global
54
- */
55
- export function GetTextureName(this: void, char: string): string;
56
-
57
- /**
58
- * @group xr_global
59
- */
60
- export function IsGameTypeSingle(this: void): boolean;
61
-
62
- /**
63
- * @group xr_global
64
- */
65
- export function app_ready(this: void): boolean;
66
-
67
- /**
68
- * @group xr_global
69
- */
70
- export function bit_and(this: void, left: i32, right: i32): i32;
71
-
72
- /**
73
- * @group xr_global
74
- */
75
- export function buy_condition(this: void, a: f32, b: f32): void;
76
-
77
- /**
78
- * @group xr_global
79
- */
80
- export function buy_condition(this: void, a: unknown, b: string): void;
81
-
82
- /**
83
- * @group xr_global
84
- */
85
- export function cast_planner(this: void, base_action: action_base): action_planner;
86
-
87
- /**
88
- * @group xr_global
89
- */
90
- export function command_line(this: void): string;
91
-
92
- /**
93
- * Create ini file instance based on provided string content.
94
- *
95
- * @group xr_global
96
- * @param content - string value to be read as ini file
97
- * @returns new ini file instance based on provided content
98
- */
99
- export function create_ini_file(this: void, content: string): ini_file;
100
-
101
- /**
102
- * @group xr_global
103
- */
104
- export function game_ini(this: void): ini_file;
105
-
106
- /**
107
- * @group xr_global
108
- */
109
- export function device(this: void): render_device;
110
-
111
- /**
112
- * Transforms dik key enumeration code to key binding code.
113
- *
114
- * @group xr_global
115
- */
116
- export function dik_to_bind(this: void, keycode: i32): i32;
117
-
118
- /**
119
- * @group xr_global
120
- */
121
- export function game_graph(this: void): CGameGraph;
122
-
123
- /**
124
- * @group xr_global
125
- */
126
- export function xrRender_test_r2_hw(this: void): boolean;
127
-
128
- /**
129
- * @group xr_global
130
- */
131
- export function getFS(this: void): FS;
132
-
133
- /**
134
- * Get console object reference.
135
- * Allows flushing logs / executing commands / getting global engine variables.
136
- *
137
- * @group xr_global
138
- * @returns console object reference
139
- */
140
- export function get_console(this: void): CConsole;
141
-
142
- /**
143
- * @group xr_global
144
- */
145
- export function get_hud(this: void): CUIGameCustom;
146
-
147
- /**
148
- * @group xr_global
149
- */
150
- export function render_get_dx_level(this: void): number;
151
-
152
- /**
153
- * @group xr_global
154
- */
155
- export function sell_condition(this: void, a: number, b: number): void;
156
-
157
- /**
158
- * @group xr_global
159
- */
160
- export function sell_condition(this: void, a: unknown, b: string): void;
161
-
162
- /**
163
- * @group xr_global
164
- */
165
- export function valid_saved_game(this: void, filename: string): boolean;
166
-
167
- /**
168
- * @group xr_global
169
- */
170
- export function renderer_allow_override(this: void): boolean;
171
-
172
- /**
173
- * @group xr_global
174
- */
175
- export function GetTextureRect(this: void, str: string): Frect;
176
-
177
- /**
178
- * @group xr_global
179
- */
180
- export function GetCursorPosition(this: void): vector2;
181
-
182
- /**
183
- * @group xr_global
184
- */
185
- export function SetCursorPosition(this: void, vector: vector2): void;
186
-
187
- /**
188
- * Check whether dynamic music setting is enabled.
189
- * Dynamic music starts playing different kind of ambient sounds in actor combat.
190
- *
191
- * @group xr_global
192
- * @returns is dynamic music allowed in game settings.
193
- */
194
- export function IsDynamicMusic(this: void): boolean;
195
-
196
- /**
197
- * @group xr_global
198
- */
199
- export function GetFontLetterica16Russian(this: void): CGameFont;
200
-
201
- /**
202
- * Log formatted message in game console and log file.
203
- * Resulting message looks like "[LUA] %s", where message is provided text parameter.
204
- *
205
- * Note: text length is limited and supplying too long value will crash the game. todo: check exact limit.
206
- *
207
- * @group xr_global
208
- * @param text - string to print
209
- */
210
- export function log(this: void, text: string): void;
211
-
212
- /**
213
- * @group xr_global
214
- */
215
- export function error_log(this: void, text: string): void;
216
-
217
- /**
218
- * @group xr_global
219
- */
220
- export function print_stack(this: void): void;
221
-
222
- /**
223
- * @group xr_global
224
- */
225
- export function show_condition(this: void, file: ini_file, str: string): void;
226
-
227
- /**
228
- * Whether auto-save on important checkpoints option is turned on.
229
- *
230
- * @group xr_global
231
- */
232
- export function IsImportantSave(this: void): boolean;
233
-
234
- /**
235
- * @group xr_global
236
- */
237
- export function FitInRect(this: void, window: CUIWindow, rect: Frect, a: number, b: number): boolean;
238
-
239
- /**
240
- * @group xr_global
241
- */
242
- export function reload_system_ini(this: void): ini_file;
243
-
244
- /**
245
- * @group xr_global
246
- */
247
- export function system_ini(this: void): ini_file;
248
-
249
- /**
250
- * @group xr_global
251
- */
252
- export function alife(this: void): alife_simulator;
253
-
254
- /**
255
- * @group xr_global
256
- */
257
- export function set_start_position(position: vector): void;
258
-
259
- /**
260
- * @group xr_global
261
- */
262
- export function set_start_game_vertex_id(gvid: i32): void;
263
-
264
- /**
265
- * @group xr_global
266
- */
267
- export function flush(this: void): void;
268
-
269
- /**
270
- * @group xr_global
271
- */
272
- export function is_enough_address_space_available(this: void): boolean;
273
-
274
- /**
275
- * @group xr_global
276
- */
277
- export function class_names(this: void, lua_state: unknown /* lua_State*/): object;
278
-
279
- /**
280
- * @group xr_global
281
- */
282
- export function class_info(this: void, arg: unknown /* luabind::argument */): class_info_data;
283
- /**
284
- * @group xr_global
285
- * @returns is dev editor tool enabled currently used.
286
- */
287
- export function editor(this: void): boolean;
288
-
289
- /**
290
- * @group xr_global
291
- */
292
- export function bit_or(this: void, first: i32, second: i32): i32;
293
-
294
- /**
295
- * @group xr_global
296
- */
297
- export function GetFontGraffiti22Russian(this: void): CGameFont;
298
-
299
- /**
300
- * @group xr_global
301
- */
302
- export function GetDefaultUIPath(this: void): string;
303
-
304
- /**
305
- * @group xr_global
306
- */
307
- export function GetDefaultUIPathWithDelimiter(this: void): string;
308
-
309
- /**
310
- * @group xr_global
311
- */
312
- export function GetUIPath(this: void): string;
313
-
314
- /**
315
- * @group xr_global
316
- */
317
- export function GetUIPathWithDelimiter(this: void): string;
318
-
319
- /**
320
- * @group xr_global
321
- */
322
- export function GetUIStyleManager(this: void): UIStyleManager;
323
-
324
- /**
325
- * Prefetch provided script before executing next lines.
326
- *
327
- * @group xr_global
328
- */
329
- export function prefetch(this: void, path: string): void;
330
-
331
- /**
332
- * Get absolute time in millis from executable start.
333
- * Returns time in milliseconds.
334
- *
335
- * @group xr_global
336
- * @returns 'ms' from game executable start.
337
- * @example 0, 1000, 60000
338
- */
339
- export function time_global(this: void): u32;
340
-
341
- /**
342
- * @group xr_global
343
- */
344
- export function time_global_async(this: void): u32;
345
-
346
- /**
347
- * @group xr_global
348
- */
349
- export function verify_if_thread_is_running(this: void): void;
350
-
351
- /**
352
- * @group xr_global
353
- */
354
- export function script_server_object_version(this: void): u16;
355
-
356
- /**
357
- * @group xr_global
358
- */
359
- export function bit_not(this: void, value: i32): i32;
360
-
361
- /**
362
- * @group xr_global
363
- */
364
- export function ef_storage(this: void): cef_storage;
365
-
366
- /**
367
- * @group xr_global
368
- */
369
- export function GetARGB(this: void, a: u16, r: u16, g: u16, b: u16): i32;
370
-
371
- /**
372
- * Get operating system active user name.
373
- *
374
- * @group xr_global
375
- * @returns username string
376
- */
377
- export function user_name(this: void): string;
378
-
379
- /**
380
- * @group xr_global
381
- */
382
- export function bit_xor(this: void, left: i32, right: i32): i32;
383
-
384
- /**
385
- * @source namespace level
386
- * @group xr_global
387
- */
388
- export interface IXR_level {
389
- add_call(this: void, cb1: (this: void) => boolean, cb2: (this: void) => boolean): void;
390
- add_call(this: void, object: object, cb1: (this: void) => boolean, cb2: (this: void) => boolean): void;
391
- add_call(this: void, object: object, str1: string, str2: string): void;
392
- add_cam_effector(this: void, effect: string, id: i32, is_cyclic: boolean, callback: string): void;
393
- add_cam_effector2(this: void, effect: string, id: i32, is_cyclic: boolean, callback: string, camera_fov: f32): void;
394
- add_complex_effector(this: void, section: string, id: i32): void;
395
- add_dialog_to_render(this: void, window: CUIDialogWnd): void;
396
- add_pp_effector(this: void, fn: string, id: i32, is_cyclic: boolean): void;
397
-
398
- /**
399
- * Move time forward based on provided parameters.
400
- *
401
- * @param days - days to move forward
402
- * @param hours - hours to move forward
403
- * @param minutes - minutes to move forward
404
- */
405
- change_game_time(this: void, days: u32, hours: u32, minutes: u32): void;
406
- check_object(this: void, object: game_object): void;
407
- client_spawn_manager(this: void): client_spawn_manager;
408
- debug_actor(this: void): game_object;
409
- debug_object(this: void, str: string): game_object;
410
- disable_input(this: void): void;
411
- enable_input(this: void): void;
412
- environment(this: void): unknown /* XR_CEnvironment */;
413
-
414
- /**
415
- * @returns current game state ID.
416
- */
417
- game_id(this: void): TXR_EGameID;
418
-
419
- get_active_cam(this: void): u8;
420
- get_bounding_volume(this: void): Fbox;
421
- get_game_difficulty(this: void): TXR_game_difficulty;
422
- get_snd_volume(this: void): f32;
423
-
424
- /**
425
- * Get object target distance aimed by crosshair.
426
- */
427
- get_target_dist(this: void): f32;
428
- get_target_element(this: void): u32;
429
-
430
- /**
431
- * Get object target aimed by crosshair.
432
- */
433
- get_target_obj(this: void): game_object | null;
434
- get_time_days(this: void): u32;
435
- get_time_factor(this: void): f32;
436
-
437
- /**
438
- * @returns current hours time number
439
- */
440
- get_time_hours(this: void): u32;
441
-
442
- /**
443
- * @returns current minutes time number
444
- */
445
- get_time_minutes(this: void): u32;
446
- get_weather(this: void): string;
447
- get_wfx_time(this: void): f32;
448
- hide_indicators(this: void): void;
449
- hide_indicators_safe(this: void): void;
450
- high_cover_in_direction(this: void, num: u32, vector: vector): f32;
451
- is_wfx_playing(this: void): boolean;
452
- iterate_online_objects(this: void, cb: (this: void, object: game_object) => void | boolean): void;
453
- iterate_sounds(this: void, str: string, num: u32, cb: (this: void) => void): void;
454
- iterate_sounds(this: void, str: string, num: u32, object: object, cb: (this: void) => void): void;
455
- low_cover_in_direction(this: void, num: u32, vector: vector): f32;
456
- main_input_receiver(this: void): CUIDialogWnd;
457
- map_add_object_spot(this: void, id: u16, selector: string, hint: string): void;
458
- map_add_object_spot_ser(this: void, id: u16, str1: string, str2: string): void;
459
- map_change_spot_hint(this: void, num: u16, selector: string, hint: string): void;
460
- /**
461
- * Checks if object has map spot registered with provided selector.
462
- *
463
- * @param object_id - game object id to check map spot
464
- * @param spot_type - map spot type (icon type to display for the object)
465
- * @returns whether object map spot with provided selector is registered
466
- */
467
- map_has_object_spot(this: void, object_id: u16, spot_type: string): u16;
468
- /**
469
- * Remove object map spot if it exists.
470
- * Checks if map spot is registered and then removes it in such case.
471
- * There is no sense in checking object spot before calling removal since action will be duplicated.
472
- *
473
- * @param object_id - game object id to check map spot
474
- * @param spot_type - map spot type (icon type to display for the object)
475
- */
476
- map_remove_object_spot(this: void, object_id: u16, spot_type: string): void;
477
- name<T extends string = string>(this: void): T;
478
- object_by_id(this: void, object_id: u16): game_object | null;
479
- patrol_path_exists(this: void, path_name: string): boolean;
480
- physics_world(this: void): physics_world;
481
- prefetch_sound(this: void, str: string): void;
482
-
483
- /**
484
- * @returns whether game level is loaded
485
- */
486
- present(this: void): boolean;
487
-
488
- /**
489
- * @returns intensity of rain, 0 if no rain active
490
- */
491
- rain_factor(this: void): f32;
492
- remove_call(this: void, cb1: (this: void) => boolean, cb2: (this: void) => void): void;
493
- remove_call(this: void, object: object, cb1: (this: void) => boolean, cb2: (this: void) => void): void;
494
- remove_call(this: void, object: object, str1: string, str2: string): void;
495
- remove_calls_for_object(this: void, object: object): void;
496
- remove_cam_effector(this: void, id: i32): void;
497
- remove_complex_effector(this: void, id: i32): void;
498
- remove_dialog_to_render(this: void, window: CUIDialogWnd): void;
499
- remove_pp_effector(this: void, id: i32): void;
500
- send(net_packet: net_packet, bool1: boolean, bool2: boolean, bool3: boolean, bool4: boolean): void;
501
- set_active_cam(this: void, id: u8): void;
502
- set_game_difficulty(this: void, difficulty: unknown /* enum ESingleGameDifficulty */): void;
503
- set_pp_effector_factor(this: void, id: i32, f: f32, f_sp?: f32): void;
504
- set_snd_volume(this: void, num: f32): void;
505
- set_time_factor(this: void, factor: f32): void;
506
- /**
507
- * Change active game weather.
508
- *
509
- * @param weather_name - name of weather config to apply (gamedata\configs\environment\weathers)
510
- * @param is_forced - whether weather change should be forced
511
- */
512
- set_weather(this: void, weather_name: string, is_forced: boolean): void;
513
- set_weather_fx(this: void, weather_fs_name: string): boolean;
514
- show_indicators(this: void): void;
515
- show_weapon(this: void, val: boolean): void;
516
- spawn_item(this: void, str: string, vector: vector, uint: u32, ushort: u16, bool: boolean): void;
517
- spawn_phantom(this: void, vector: vector): void;
518
- start_stop_menu(this: void, dialog: CUIDialogWnd, bool: boolean): void;
519
- start_weather_fx_from_time(this: void, str: string, num: f32): boolean;
520
- stop_weather_fx(this: void): void;
521
- vertex_id(this: void, vector: vector): u32;
522
- vertex_in_direction(this: void, num1: u32, vector: vector, num2: f32): u32;
523
- vertex_position(this: void, id: u32): vector;
524
- ray_pick(
525
- this: void,
526
- vec: vector,
527
- vec2: vector,
528
- fl: f32,
529
- enumc: unknown,
530
- rqres: unknown,
531
- gobj: game_object
532
- ): boolean;
533
- }
534
-
535
- /**
536
- * @source namespace main_menu
537
- * @group xr_global
538
- */
539
- export interface IXR_main_menu {
540
- /**
541
- * @returns main game menu c++ controller singleton
542
- */
543
- get_main_menu(this: void): CMainMenu;
544
- }
545
-
546
- /**
547
- * @source namespace relation_registry
548
- * @group xr_global
549
- */
550
- export interface IXR_relation_registry {
551
- /**
552
- * Change relation from community to object by `delta_goodwill`.
553
- */
554
- change_community_goodwill(this: void, from_community: string, to_object_id: i32, delta_goodwill: i32): void;
555
- community_goodwill(this: void, from_community: string, to_object_id: i32): i32;
556
-
557
- /**
558
- * @returns relation points between communities, usually between `-5000` and `5000`
559
- */
560
- community_relation(this: void, from_community: string, to_community: string): i32;
561
-
562
- /**
563
- * Get relation from object to actor.
564
- * Return formula looks like `personal_goodwill + community_to_obj_goodwill + community_to_community_goodwill`.
565
- *
566
- * @param from_object_id - object from
567
- * @param to_object_id - object to
568
- * @returns general goodwill from object to another object based on personal and community goodwill
569
- */
570
- get_general_goodwill_between(this: void, from_object_id: u16, to_object_id: u16): i32;
571
- set_community_goodwill(this: void, from_community: string, to_object_id: i32, goodwill: i32): void;
572
- set_community_relation(this: void, from_community: string, to_community: string, goodwill: i32): void;
573
- }
574
-
575
- /**
576
- * @source namespace actor_stats
577
- * @group xr_global
578
- */
579
- export interface IXR_actor_stats {
580
- add_points_str(this: void, value1: string, value2: string, value3: string): void;
581
- get_points(this: void, value: string): i32;
582
- add_points(this: void, value1: string, value2: string, value3: i32, value4: i32): void;
583
- remove_from_ranking(this: void, object_id: number): void | null;
584
- }
585
-
586
- /**
587
- * @source namespace ActorMenu
588
- * @group xr_global
589
- */
590
- export interface IXR_ActorMenu {
591
- get_pda_menu(this: void): CUIPdaWnd;
592
- get_actor_menu(this: void): CUIActorMenu;
593
-
594
- /**
595
- * enum EMenuMode
596
- * {
597
- * mmUndefined,
598
- * mmInventory,
599
- * mmTrade,
600
- * mmUpgrade,
601
- * mmDeadBodySearch,
602
- * };
603
- */
604
- get_menu_mode(this: void): number;
605
- // get_maingame(this: void): unknown; // CUIMainIngameWnd - not registered, throws exception
606
- }
607
-
608
- /**
609
- * @source namespace game
610
- * @group xr_global
611
- */
612
- export interface IXR_game {
613
- CTime: (this: void) => CTime;
614
-
615
- translate_string(this: void, translation_key: string): string;
616
- time(this: void): u32;
617
- reload_language(this: void): void;
618
- get_game_time(this: void): CTime;
619
- log_stack_trace(this: void): void;
620
- jump_to_level(this: void, level_name: string): void;
621
- jump_to_level(this: void, position: vector, lvi: u32, gvi: u16): void;
622
- jump_to_level(this: void, position: vector, lvi: u32, gvi: u16, direction: vector): void;
623
- start_tutorial(this: void, tutorial_id: string): void;
624
- has_active_tutorial(this: void): boolean;
625
- active_tutorial_name(this: void): string;
626
- stop_tutorial(this: void): void;
627
- }
628
-
629
- /**
630
- * @group xr_global
631
- */
632
- export const actor_stats: IXR_actor_stats;
633
-
634
- /**
635
- * @group xr_global
636
- */
637
- export const ActorMenu: IXR_ActorMenu;
638
-
639
- /**
640
- * @group xr_global
641
- */
642
- export const game: IXR_game;
643
-
644
- /**
645
- * @group xr_global
646
- */
647
- export const level: IXR_level;
648
-
649
- /**
650
- * @group xr_global
651
- */
652
- export const main_menu: IXR_main_menu;
653
-
654
- /**
655
- * @group xr_global
656
- */
657
- export const object: typeof XR_object;
658
-
659
- /**
660
- * @group xr_global
661
- */
662
- export const relation_registry: IXR_relation_registry;
663
- }