xray16 1.0.5 → 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.
- package/README.md +4 -1
- package/package.json +4 -3
- package/types/index.d.ts +46 -22
- package/types/{xr_object → xr_ai}/xr_action.d.ts +163 -135
- package/types/xr_ai/xr_alife.d.ts +552 -0
- package/types/xr_ai/xr_enemy_evaluation.d.ts +41 -0
- package/types/xr_ai/xr_goap.d.ts +668 -0
- package/types/xr_ai/xr_graph.d.ts +47 -0
- package/types/xr_ai/xr_memory.d.ts +148 -0
- package/types/xr_lib/xr_animation.d.ts +81 -0
- package/types/xr_lib/xr_bitwise.d.ts +21 -0
- package/types/xr_lib/xr_color.d.ts +40 -0
- package/types/xr_lib/xr_debug.d.ts +100 -0
- package/types/{xr_object → xr_lib}/xr_dialog.d.ts +7 -1
- package/types/xr_lib/xr_flags.d.ts +148 -0
- package/types/xr_lib/xr_fs.d.ts +37 -229
- package/types/xr_lib/xr_game.d.ts +159 -0
- package/types/xr_lib/xr_hit.d.ts +41 -0
- package/types/xr_lib/xr_ini.d.ts +176 -0
- package/types/xr_lib/xr_level.d.ts +225 -0
- package/types/xr_lib/xr_luabind.d.ts +59 -0
- package/types/{xr_map → xr_lib}/xr_map.d.ts +19 -0
- package/types/xr_lib/xr_math.d.ts +65 -0
- package/types/{xr_online → xr_lib}/xr_multiplayer.d.ts +52 -0
- package/types/xr_lib/xr_properties.d.ts +166 -0
- package/types/xr_lib/xr_relation.d.ts +84 -0
- package/types/xr_lib/xr_render.d.ts +70 -0
- package/types/xr_lib/xr_save.d.ts +223 -0
- package/types/{xr_sound → xr_lib}/xr_sound.d.ts +10 -12
- package/types/xr_lib/xr_stats.ts +20 -0
- package/types/{xr_object/xr_quest.d.ts → xr_lib/xr_task.d.ts} +54 -2
- package/types/xr_lib/xr_time.d.ts +61 -0
- package/types/{xr_type → xr_lib}/xr_type.d.ts +13 -13
- package/types/xr_object/client/xr_client_object.d.ts +76 -0
- package/types/xr_object/{xr_level.d.ts → client/xr_level.d.ts} +69 -0
- package/types/xr_object/{xr_physic.d.ts → client/xr_physic.d.ts} +58 -0
- package/types/xr_object/client/xr_zone.d.ts +40 -0
- package/types/xr_object/script/xr_script_interface.d.ts +429 -0
- package/types/xr_object/{xr_client_object.d.ts → script/xr_script_object.d.ts} +449 -522
- package/types/xr_object/script/xr_script_trade.d.ts +26 -0
- package/types/xr_object/{xr_server_object.d.ts → server/xr_server_object.d.ts} +152 -73
- package/types/xr_ui/xr_ui_asset.d.ts +123 -0
- package/types/xr_ui/xr_ui_core.d.ts +33 -123
- package/types/xr_ui/xr_ui_event.d.ts +382 -0
- package/types/xr_ui/xr_ui_interface.d.ts +213 -0
- package/types/xr_ui/xr_ui_menu.d.ts +142 -0
- package/types/xr_constant.d.ts +0 -976
- package/types/xr_core.d.ts +0 -347
- package/types/xr_global.d.ts +0 -648
- package/types/xr_lib/xr_utils.d.ts +0 -407
- package/types/xr_luabind.d.ts +0 -34
- package/types/xr_object/xr_alife.d.ts +0 -206
- package/types/xr_type/xr_enums.d.ts +0 -17
- package/types/xr_ui/README.md +0 -277
- package/types/xr_ui/demo/CServerList.png +0 -0
- package/types/xr_ui/demo/CUI3tButton.png +0 -0
- package/types/xr_ui/demo/CUICheckButton.png +0 -0
- package/types/xr_ui/demo/CUIComboBox.png +0 -0
- package/types/xr_ui/demo/CUICustomEdit.png +0 -0
- package/types/xr_ui/demo/CUIStatic.png +0 -0
- package/types/xr_ui/demo/CUITrackBar.png +0 -0
- /package/types/xr_object/{xr_anomaly.d.ts → client/xr_anomaly.d.ts} +0 -0
- /package/types/xr_object/{xr_artefact.d.ts → client/xr_artefact.d.ts} +0 -0
- /package/types/xr_object/{xr_creature.d.ts → client/xr_creature.d.ts} +0 -0
- /package/types/xr_object/{xr_item.d.ts → client/xr_item.d.ts} +0 -0
package/types/xr_global.d.ts
DELETED
|
@@ -1,648 +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
|
-
map_has_object_spot(this: void, object_id: u16, selector: string): number;
|
|
461
|
-
map_remove_object_spot(this: void, id: u16, selector: string): void;
|
|
462
|
-
name<T extends string = string>(this: void): T;
|
|
463
|
-
object_by_id(this: void, object_id: u16): game_object | null;
|
|
464
|
-
patrol_path_exists(this: void, path_name: string): boolean;
|
|
465
|
-
physics_world(this: void): physics_world;
|
|
466
|
-
prefetch_sound(this: void, str: string): void;
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* @returns whether game level is loaded
|
|
470
|
-
*/
|
|
471
|
-
present(this: void): boolean;
|
|
472
|
-
|
|
473
|
-
/**
|
|
474
|
-
* @returns intensity of rain, 0 if no rain active
|
|
475
|
-
*/
|
|
476
|
-
rain_factor(this: void): f32;
|
|
477
|
-
remove_call(this: void, cb1: (this: void) => boolean, cb2: (this: void) => void): void;
|
|
478
|
-
remove_call(this: void, object: object, cb1: (this: void) => boolean, cb2: (this: void) => void): void;
|
|
479
|
-
remove_call(this: void, object: object, str1: string, str2: string): void;
|
|
480
|
-
remove_calls_for_object(this: void, object: object): void;
|
|
481
|
-
remove_cam_effector(this: void, id: i32): void;
|
|
482
|
-
remove_complex_effector(this: void, id: i32): void;
|
|
483
|
-
remove_dialog_to_render(this: void, window: CUIDialogWnd): void;
|
|
484
|
-
remove_pp_effector(this: void, id: i32): void;
|
|
485
|
-
send(net_packet: net_packet, bool1: boolean, bool2: boolean, bool3: boolean, bool4: boolean): void;
|
|
486
|
-
set_active_cam(this: void, id: u8): void;
|
|
487
|
-
set_game_difficulty(this: void, difficulty: unknown /* enum ESingleGameDifficulty */): void;
|
|
488
|
-
set_pp_effector_factor(this: void, id: i32, f: f32, f_sp?: f32): void;
|
|
489
|
-
set_snd_volume(this: void, num: f32): void;
|
|
490
|
-
set_time_factor(this: void, factor: f32): void;
|
|
491
|
-
/**
|
|
492
|
-
* Change active game weather.
|
|
493
|
-
*
|
|
494
|
-
* @param weather_name - name of weather config to apply (gamedata\configs\environment\weathers)
|
|
495
|
-
* @param is_forced - whether weather change should be forced
|
|
496
|
-
*/
|
|
497
|
-
set_weather(this: void, weather_name: string, is_forced: boolean): void;
|
|
498
|
-
set_weather_fx(this: void, weather_fs_name: string): boolean;
|
|
499
|
-
show_indicators(this: void): void;
|
|
500
|
-
show_weapon(this: void, val: boolean): void;
|
|
501
|
-
spawn_item(this: void, str: string, vector: vector, uint: u32, ushort: u16, bool: boolean): void;
|
|
502
|
-
spawn_phantom(this: void, vector: vector): void;
|
|
503
|
-
start_stop_menu(this: void, dialog: CUIDialogWnd, bool: boolean): void;
|
|
504
|
-
start_weather_fx_from_time(this: void, str: string, num: f32): boolean;
|
|
505
|
-
stop_weather_fx(this: void): void;
|
|
506
|
-
vertex_id(this: void, vector: vector): u32;
|
|
507
|
-
vertex_in_direction(this: void, num1: u32, vector: vector, num2: f32): u32;
|
|
508
|
-
vertex_position(this: void, id: u32): vector;
|
|
509
|
-
ray_pick(
|
|
510
|
-
this: void,
|
|
511
|
-
vec: vector,
|
|
512
|
-
vec2: vector,
|
|
513
|
-
fl: f32,
|
|
514
|
-
enumc: unknown,
|
|
515
|
-
rqres: unknown,
|
|
516
|
-
gobj: game_object
|
|
517
|
-
): boolean;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* @source namespace main_menu
|
|
522
|
-
* @group xr_global
|
|
523
|
-
*/
|
|
524
|
-
export interface IXR_main_menu {
|
|
525
|
-
/**
|
|
526
|
-
* @returns main game menu c++ controller singleton
|
|
527
|
-
*/
|
|
528
|
-
get_main_menu(this: void): CMainMenu;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
* @source namespace relation_registry
|
|
533
|
-
* @group xr_global
|
|
534
|
-
*/
|
|
535
|
-
export interface IXR_relation_registry {
|
|
536
|
-
/**
|
|
537
|
-
* Change relation from community to object by `delta_goodwill`.
|
|
538
|
-
*/
|
|
539
|
-
change_community_goodwill(this: void, from_community: string, to_object_id: i32, delta_goodwill: i32): void;
|
|
540
|
-
community_goodwill(this: void, from_community: string, to_object_id: i32): i32;
|
|
541
|
-
|
|
542
|
-
/**
|
|
543
|
-
* @returns relation points between communities, usually between `-5000` and `5000`
|
|
544
|
-
*/
|
|
545
|
-
community_relation(this: void, from_community: string, to_community: string): i32;
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
* Get relation from object to actor.
|
|
549
|
-
* Return formula looks like `personal_goodwill + community_to_obj_goodwill + community_to_community_goodwill`.
|
|
550
|
-
*
|
|
551
|
-
* @param from_object_id - object from
|
|
552
|
-
* @param to_object_id - object to
|
|
553
|
-
* @returns general goodwill from object to another object based on personal and community goodwill
|
|
554
|
-
*/
|
|
555
|
-
get_general_goodwill_between(this: void, from_object_id: u16, to_object_id: u16): i32;
|
|
556
|
-
set_community_goodwill(this: void, from_community: string, to_object_id: i32, goodwill: i32): void;
|
|
557
|
-
set_community_relation(this: void, from_community: string, to_community: string, goodwill: i32): void;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
/**
|
|
561
|
-
* @source namespace actor_stats
|
|
562
|
-
* @group xr_global
|
|
563
|
-
*/
|
|
564
|
-
export interface IXR_actor_stats {
|
|
565
|
-
add_points_str(this: void, value1: string, value2: string, value3: string): void;
|
|
566
|
-
get_points(this: void, value: string): i32;
|
|
567
|
-
add_points(this: void, value1: string, value2: string, value3: i32, value4: i32): void;
|
|
568
|
-
remove_from_ranking(this: void, object_id: number): void | null;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
/**
|
|
572
|
-
* @source namespace ActorMenu
|
|
573
|
-
* @group xr_global
|
|
574
|
-
*/
|
|
575
|
-
export interface IXR_ActorMenu {
|
|
576
|
-
get_pda_menu(this: void): CUIPdaWnd;
|
|
577
|
-
get_actor_menu(this: void): CUIActorMenu;
|
|
578
|
-
|
|
579
|
-
/**
|
|
580
|
-
* enum EMenuMode
|
|
581
|
-
* {
|
|
582
|
-
* mmUndefined,
|
|
583
|
-
* mmInventory,
|
|
584
|
-
* mmTrade,
|
|
585
|
-
* mmUpgrade,
|
|
586
|
-
* mmDeadBodySearch,
|
|
587
|
-
* };
|
|
588
|
-
*/
|
|
589
|
-
get_menu_mode(this: void): number;
|
|
590
|
-
// get_maingame(this: void): unknown; // CUIMainIngameWnd - not registered, throws exception
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
/**
|
|
594
|
-
* @source namespace game
|
|
595
|
-
* @group xr_global
|
|
596
|
-
*/
|
|
597
|
-
export interface IXR_game {
|
|
598
|
-
CTime: (this: void) => CTime;
|
|
599
|
-
|
|
600
|
-
translate_string(this: void, translation_key: string): string;
|
|
601
|
-
time(this: void): u32;
|
|
602
|
-
reload_language(this: void): void;
|
|
603
|
-
get_game_time(this: void): CTime;
|
|
604
|
-
log_stack_trace(this: void): void;
|
|
605
|
-
jump_to_level(this: void, level_name: string): void;
|
|
606
|
-
jump_to_level(this: void, position: vector, lvi: u32, gvi: u16): void;
|
|
607
|
-
jump_to_level(this: void, position: vector, lvi: u32, gvi: u16, direction: vector): void;
|
|
608
|
-
start_tutorial(this: void, tutorial_id: string): void;
|
|
609
|
-
has_active_tutorial(this: void): boolean;
|
|
610
|
-
active_tutorial_name(this: void): string;
|
|
611
|
-
stop_tutorial(this: void): void;
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
/**
|
|
615
|
-
* @group xr_global
|
|
616
|
-
*/
|
|
617
|
-
export const actor_stats: IXR_actor_stats;
|
|
618
|
-
|
|
619
|
-
/**
|
|
620
|
-
* @group xr_global
|
|
621
|
-
*/
|
|
622
|
-
export const ActorMenu: IXR_ActorMenu;
|
|
623
|
-
|
|
624
|
-
/**
|
|
625
|
-
* @group xr_global
|
|
626
|
-
*/
|
|
627
|
-
export const game: IXR_game;
|
|
628
|
-
|
|
629
|
-
/**
|
|
630
|
-
* @group xr_global
|
|
631
|
-
*/
|
|
632
|
-
export const level: IXR_level;
|
|
633
|
-
|
|
634
|
-
/**
|
|
635
|
-
* @group xr_global
|
|
636
|
-
*/
|
|
637
|
-
export const main_menu: IXR_main_menu;
|
|
638
|
-
|
|
639
|
-
/**
|
|
640
|
-
* @group xr_global
|
|
641
|
-
*/
|
|
642
|
-
export const object: typeof XR_object;
|
|
643
|
-
|
|
644
|
-
/**
|
|
645
|
-
* @group xr_global
|
|
646
|
-
*/
|
|
647
|
-
export const relation_registry: IXR_relation_registry;
|
|
648
|
-
}
|