xray16 1.0.7 → 1.0.9
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 -233
- 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 +18 -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} +425 -518
- 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} +151 -72
- 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 -996
- package/types/xr_core.d.ts +0 -347
- package/types/xr_global.d.ts +0 -663
- package/types/xr_lib/xr_utils.d.ts +0 -412
- package/types/xr_luabind.d.ts +0 -34
- package/types/xr_object/xr_alife.d.ts +0 -213
- 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_core.d.ts
DELETED
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
declare module "xray16" {
|
|
2
|
-
/**
|
|
3
|
-
* @source C++ class DLL_Pure
|
|
4
|
-
* @customConstructor DLL_Pure
|
|
5
|
-
* @group xr_core
|
|
6
|
-
*/
|
|
7
|
-
export class DLL_Pure extends EngineBinding {
|
|
8
|
-
protected constructor();
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @source C++ class GameGraph__CVertex
|
|
13
|
-
* @customConstructor GameGraph__CVertex
|
|
14
|
-
* @group xr_core
|
|
15
|
-
*/
|
|
16
|
-
export class GameGraph__CVertex extends EngineBinding {
|
|
17
|
-
protected constructor();
|
|
18
|
-
|
|
19
|
-
public level_vertex_id(): u32;
|
|
20
|
-
public level_id(): u8;
|
|
21
|
-
public game_point(): vector;
|
|
22
|
-
public level_point(): vector;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @source C++ class ce_script_zone : DLL_Pure
|
|
27
|
-
* @customConstructor ce_script_zone
|
|
28
|
-
* @group xr_core
|
|
29
|
-
*/
|
|
30
|
-
export class ce_script_zone extends DLL_Pure {
|
|
31
|
-
protected constructor();
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @source C++ class ce_smart_zone : DLL_Pure
|
|
36
|
-
* @customConstructor ce_smart_zone
|
|
37
|
-
* @group xr_core
|
|
38
|
-
*/
|
|
39
|
-
export class ce_smart_zone extends DLL_Pure {
|
|
40
|
-
protected constructor();
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @source C++ class ClientID
|
|
45
|
-
* @customConstructor ClientID
|
|
46
|
-
* @group xr_core
|
|
47
|
-
*/
|
|
48
|
-
export class ClientID extends EngineBinding {
|
|
49
|
-
protected constructor();
|
|
50
|
-
|
|
51
|
-
public value(): u32;
|
|
52
|
-
public set(value: u32): void;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @source C++ class memory_object
|
|
57
|
-
* @customConstructor memory_object
|
|
58
|
-
* @group xr_core
|
|
59
|
-
*/
|
|
60
|
-
export class memory_object extends EngineBinding {
|
|
61
|
-
public readonly last_level_time: u32;
|
|
62
|
-
public readonly level_time: u32;
|
|
63
|
-
|
|
64
|
-
protected constructor();
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @source C++ class object
|
|
69
|
-
* @customConstructor object
|
|
70
|
-
* @group xr_core
|
|
71
|
-
*/
|
|
72
|
-
export class XR_object extends EngineBinding {
|
|
73
|
-
public static readonly activate: 16;
|
|
74
|
-
public static readonly aim1: 4;
|
|
75
|
-
public static readonly aim2: 5;
|
|
76
|
-
public static readonly deactivate: 17;
|
|
77
|
-
public static readonly drop: 11;
|
|
78
|
-
public static readonly dummy: -1;
|
|
79
|
-
public static readonly fire1: 6;
|
|
80
|
-
public static readonly fire2: 8;
|
|
81
|
-
public static readonly hide: 22;
|
|
82
|
-
public static readonly idle: 9;
|
|
83
|
-
public static readonly reload: 2;
|
|
84
|
-
public static readonly reload1: 2;
|
|
85
|
-
public static readonly reload2: 3;
|
|
86
|
-
public static readonly show: 21;
|
|
87
|
-
public static readonly strap: 10;
|
|
88
|
-
public static readonly switch1: 0;
|
|
89
|
-
public static readonly switch2: 1;
|
|
90
|
-
public static readonly take: 23;
|
|
91
|
-
public static readonly turn_off: 20;
|
|
92
|
-
public static readonly turn_on: 19;
|
|
93
|
-
public static readonly use: 18;
|
|
94
|
-
|
|
95
|
-
public constructor(value: string);
|
|
96
|
-
public constructor(value: string, type: number /* MonsterSpace::EObjectAction */);
|
|
97
|
-
public constructor(game_object: game_object);
|
|
98
|
-
|
|
99
|
-
public action(space: unknown /** enum MonsterSpace::EObjectAction */): void;
|
|
100
|
-
public completed(): boolean;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @group xr_core
|
|
105
|
-
*/
|
|
106
|
-
export type TXR_object_state = EnumeratedStaticsValues<typeof XR_object>;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* @source C++ class entity_memory_object : memory_object
|
|
110
|
-
* @customConstructor entity_memory_object
|
|
111
|
-
* @group xr_core
|
|
112
|
-
*/
|
|
113
|
-
export class entity_memory_object extends memory_object {
|
|
114
|
-
public readonly object_info: object;
|
|
115
|
-
public readonly self_info: object;
|
|
116
|
-
|
|
117
|
-
protected constructor();
|
|
118
|
-
|
|
119
|
-
public object(): game_object;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* @source C++ class hit_memory_object : entity_memory_object
|
|
124
|
-
* @customConstructor hit_memory_object
|
|
125
|
-
* @group xr_core
|
|
126
|
-
*/
|
|
127
|
-
export class hit_memory_object extends entity_memory_object {
|
|
128
|
-
public readonly amount: f32;
|
|
129
|
-
public readonly bone_index: u16;
|
|
130
|
-
public readonly direction: vector;
|
|
131
|
-
|
|
132
|
-
protected constructor();
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* @source C++ class game_memory_object : memory_object
|
|
137
|
-
* @customConstructor game_memory_object
|
|
138
|
-
* @group xr_core
|
|
139
|
-
*/
|
|
140
|
-
export class game_memory_object extends memory_object {
|
|
141
|
-
public object_info: unknown; /* MemorySpace::CObjectParams<class CGameObject>& */
|
|
142
|
-
public self_info: unknown; /* MemorySpace::CObjectParams<class CGameObject>& */
|
|
143
|
-
public object(): game_object;
|
|
144
|
-
|
|
145
|
-
protected constructor();
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* @source C++ class not_yet_visible_object
|
|
150
|
-
* @customConstructor not_yet_visible_object
|
|
151
|
-
* @group xr_core
|
|
152
|
-
*/
|
|
153
|
-
export class not_yet_visible_object extends EngineBinding {
|
|
154
|
-
protected constructor();
|
|
155
|
-
|
|
156
|
-
public value: f32;
|
|
157
|
-
public object(): game_object;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* @source C++ class visible_memory_object
|
|
162
|
-
* @customConstructor visible_memory_object
|
|
163
|
-
* @group xr_core
|
|
164
|
-
*/
|
|
165
|
-
export class visible_memory_object extends game_memory_object {
|
|
166
|
-
protected constructor();
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* @source C++ class memory_info : visible_memory_object
|
|
171
|
-
* @customConstructor visible_memory_object
|
|
172
|
-
* @group xr_core
|
|
173
|
-
*/
|
|
174
|
-
export class memory_info extends visible_memory_object {
|
|
175
|
-
public readonly hit_info: boolean;
|
|
176
|
-
public readonly sound_info: boolean;
|
|
177
|
-
public readonly visual_info: boolean;
|
|
178
|
-
|
|
179
|
-
protected constructor();
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* @source C++ class CTime
|
|
184
|
-
* @customConstructor CTime
|
|
185
|
-
* @group xr_core
|
|
186
|
-
*/
|
|
187
|
-
export class CTime extends EngineBinding {
|
|
188
|
-
public static DateToDay: 0;
|
|
189
|
-
public static DateToMonth: 1;
|
|
190
|
-
public static DateToYear: 2;
|
|
191
|
-
public static TimeToHours: 0;
|
|
192
|
-
public static TimeToMilisecs: 3;
|
|
193
|
-
public static TimeToMinutes: 1;
|
|
194
|
-
public static TimeToSeconds: 2;
|
|
195
|
-
|
|
196
|
-
public constructor();
|
|
197
|
-
public constructor(time: CTime);
|
|
198
|
-
|
|
199
|
-
public add(time: CTime): void;
|
|
200
|
-
public dateToString(time: i32): string;
|
|
201
|
-
public diffSec(time: CTime): f32;
|
|
202
|
-
public get(
|
|
203
|
-
y: u32,
|
|
204
|
-
m: u32,
|
|
205
|
-
d: u32,
|
|
206
|
-
h: u32,
|
|
207
|
-
min: u32,
|
|
208
|
-
sec: u32,
|
|
209
|
-
ms: u32
|
|
210
|
-
): LuaMultiReturn<[u32, u32, u32, u32, u32, u32, u32]>;
|
|
211
|
-
public set(y: i32, m: i32, d: i32, h: i32, min: i32, sec: i32, ms: i32): void;
|
|
212
|
-
public setHMS(a: i32, b: i32, c: i32): void;
|
|
213
|
-
public setHMSms(a: i32, b: i32, c: i32, d: i32): void;
|
|
214
|
-
public sub(time: CTime): void;
|
|
215
|
-
public timeToString(time: i32): string;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* @source C++ class CConsole
|
|
220
|
-
* @customConstructor CConsole
|
|
221
|
-
* @group xr_core
|
|
222
|
-
*/
|
|
223
|
-
export class CConsole extends EngineBinding {
|
|
224
|
-
private constructor();
|
|
225
|
-
|
|
226
|
-
public execute(command: string): void;
|
|
227
|
-
public execute_deferred(command: string): void;
|
|
228
|
-
public execute_script(script: string): void;
|
|
229
|
-
|
|
230
|
-
public show(): void;
|
|
231
|
-
public hide(): void;
|
|
232
|
-
|
|
233
|
-
public get_bool(key: string): boolean;
|
|
234
|
-
public get_float(key: string): f32;
|
|
235
|
-
public get_integer(key: string): i32;
|
|
236
|
-
public get_string(key: string): string;
|
|
237
|
-
public get_token(key: string): string;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* @source C++ class game_GameState : DLL_Pure
|
|
242
|
-
* @customConstructor game_GameState
|
|
243
|
-
* @group xr_core
|
|
244
|
-
*/
|
|
245
|
-
export class game_GameState extends DLL_Pure {
|
|
246
|
-
public round: i32;
|
|
247
|
-
public start_time: u32;
|
|
248
|
-
public type: number; /* EGameIDs */
|
|
249
|
-
|
|
250
|
-
public constructor();
|
|
251
|
-
|
|
252
|
-
public StartTime(): u32;
|
|
253
|
-
public Round(): i32;
|
|
254
|
-
public Phase(): u16;
|
|
255
|
-
public Type(): number; /* EGameIDs */
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* @source C++ class class_info_data
|
|
260
|
-
* @customConstructor class_info_data
|
|
261
|
-
* @group xr_core
|
|
262
|
-
*/
|
|
263
|
-
export class class_info_data extends EngineBinding {
|
|
264
|
-
public readonly methods: object;
|
|
265
|
-
public readonly attributes: object;
|
|
266
|
-
public readonly name: string;
|
|
267
|
-
|
|
268
|
-
private constructor();
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* @source C++ class render_device
|
|
273
|
-
* @customConstructor render_device
|
|
274
|
-
* @group xr_core
|
|
275
|
-
*/
|
|
276
|
-
export class render_device {
|
|
277
|
-
private constructor();
|
|
278
|
-
|
|
279
|
-
public readonly cam_dir: vector;
|
|
280
|
-
public readonly cam_pos: vector;
|
|
281
|
-
public readonly cam_right: vector;
|
|
282
|
-
public readonly cam_top: vector;
|
|
283
|
-
public readonly aspect_ratio: f32;
|
|
284
|
-
public readonly fov: f32;
|
|
285
|
-
public readonly precache_frame: u32;
|
|
286
|
-
public readonly frame: u32;
|
|
287
|
-
public readonly height: u32;
|
|
288
|
-
public readonly time_delta: u32;
|
|
289
|
-
public readonly f_time_delta: f32;
|
|
290
|
-
public readonly width: u32;
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* Get current game timestamp.
|
|
294
|
-
*
|
|
295
|
-
* @example `29319`,`46297`
|
|
296
|
-
* @returns milliseconds from game start
|
|
297
|
-
*/
|
|
298
|
-
public time_global(): u32;
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* @returns whether game is paused
|
|
302
|
-
*/
|
|
303
|
-
public is_paused(): boolean;
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* Change game pause state.
|
|
307
|
-
*
|
|
308
|
-
* @param paused - whether game should be paused
|
|
309
|
-
*/
|
|
310
|
-
public pause(paused: boolean): void;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* @source C++ class cef_storage
|
|
315
|
-
* @customConstructor cef_storage
|
|
316
|
-
* @group xr_core
|
|
317
|
-
*/
|
|
318
|
-
export class cef_storage extends EngineBinding {
|
|
319
|
-
private constructor();
|
|
320
|
-
|
|
321
|
-
public evaluate(str: string, game_object: game_object): f32;
|
|
322
|
-
public evaluate(str: string, game_object1: game_object, game_object2: game_object): f32;
|
|
323
|
-
public evaluate(str: string, game_object1: game_object, game_object2: game_object, game_object3: game_object): f32;
|
|
324
|
-
public evaluate(
|
|
325
|
-
str: string,
|
|
326
|
-
game_object1: game_object,
|
|
327
|
-
game_object2: game_object,
|
|
328
|
-
game_object3: game_object,
|
|
329
|
-
game_object4: game_object
|
|
330
|
-
): f32;
|
|
331
|
-
public evaluate(str: string, cse_alife_object: cse_alife_object): f32;
|
|
332
|
-
public evaluate(str: string, cse_alife_object1: cse_alife_object, cse_alife_object2: cse_alife_object): f32;
|
|
333
|
-
public evaluate(
|
|
334
|
-
str: string,
|
|
335
|
-
cse_alife_object1: cse_alife_object,
|
|
336
|
-
cse_alife_object2: cse_alife_object,
|
|
337
|
-
cse_alife_object3: cse_alife_object
|
|
338
|
-
): f32;
|
|
339
|
-
public evaluate(
|
|
340
|
-
str: string,
|
|
341
|
-
cse_alife_object1: cse_alife_object,
|
|
342
|
-
cse_alife_object2: cse_alife_object,
|
|
343
|
-
cse_alife_object3: cse_alife_object,
|
|
344
|
-
cse_alife_object4: cse_alife_object
|
|
345
|
-
): f32;
|
|
346
|
-
}
|
|
347
|
-
}
|