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.
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 -229
  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} +449 -522
  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} +152 -73
  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 -976
  48. package/types/xr_core.d.ts +0 -347
  49. package/types/xr_global.d.ts +0 -648
  50. package/types/xr_lib/xr_utils.d.ts +0 -407
  51. package/types/xr_luabind.d.ts +0 -34
  52. package/types/xr_object/xr_alife.d.ts +0 -206
  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,407 +0,0 @@
1
- declare module "xray16" {
2
- /**
3
- * @source C++ class fcolor
4
- * @customConstructor fcolor
5
- * @group xr_utils
6
- */
7
- export class fcolor extends EngineBinding {
8
- public a: f32;
9
- public b: f32;
10
- public g: f32;
11
- public r: f32;
12
-
13
- public set(a: f32, b: f32, c: f32, d: f32): fcolor;
14
- public set(it: fcolor): fcolor;
15
- public set(value: u32): fcolor;
16
- }
17
-
18
- /**
19
- * @source C++ class flags8
20
- * @customConstructor flags8
21
- * @group xr_utils
22
- */
23
- export class flags8 {
24
- public constructor();
25
-
26
- public and(value1: flags8, value2: u8): flags8;
27
- public and(value: u8): flags8;
28
- public assign(value: flags8): flags8;
29
- public assign(value: u8): flags8;
30
- public equal(value2: Readonly<flags8>): boolean;
31
- public equal(value2: Readonly<flags8>, value3: u8): boolean;
32
- public get(): u8;
33
- public invert(): flags8;
34
- public invert(value: flags8): flags8;
35
- public invert(value: u8): flags8;
36
- public is(value: flags8, value2: u8): boolean;
37
- public is(value: u8): boolean;
38
- public is_any(value1: flags8, value2: u8): boolean;
39
- public is_any(value: u8): boolean;
40
- public one(): flags8;
41
- public or(value: flags8, value2: u8): flags8;
42
- public or(value: u8): flags8;
43
- public set(value: u8, value2: boolean): flags8;
44
- public test(value: u8): boolean;
45
- public zero(): flags8;
46
- }
47
-
48
- /**
49
- * @source C++ class flags16
50
- * @customConstructor flags16
51
- * @group xr_utils
52
- */
53
- export class flags16 {
54
- public constructor();
55
-
56
- public and(value1: flags16, value2: u16): flags16;
57
- public and(value: u16): flags16;
58
- public assign(value: flags16): flags16;
59
- public assign(value: u16): flags16;
60
- public equal(value2: Readonly<flags16>): boolean;
61
- public equal(value2: Readonly<flags16>, value3: u16): boolean;
62
- public get(): u16;
63
- public invert(): flags16;
64
- public invert(value: flags16): flags16;
65
- public invert(value: u16): flags16;
66
- public is(value: flags16, value2: u16): boolean;
67
- public is(value: u16): boolean;
68
- public is_any(value1: flags16, value2: u16): boolean;
69
- public is_any(value: u16): boolean;
70
- public one(): flags16;
71
- public or(value: flags16, value2: u16): flags16;
72
- public or(value: u16): flags16;
73
- public set(value: u16, value2: boolean): flags16;
74
- public test(value: u16): boolean;
75
- public zero(): flags16;
76
- }
77
-
78
- /**
79
- * @source C++ class flags32
80
- * @customConstructor flags32
81
- * @group xr_utils
82
- */
83
- export class flags32 {
84
- public constructor();
85
-
86
- public and(value1: flags32, value2: u32): flags32;
87
- public and(value: u32): flags32;
88
- public assign(value: flags32): flags32;
89
- public assign(value: u32): flags32;
90
- public equal(value2: Readonly<flags32>): boolean;
91
- public equal(value2: Readonly<flags32>, value3: u32): boolean;
92
- public get(): u32;
93
- public invert(): flags32;
94
- public invert(value: flags32): flags32;
95
- public invert(value: u32): flags32;
96
- public is(value: flags32, value2: u32): boolean;
97
- public is(value: u32): boolean;
98
- public is_any(value1: flags32, value2: u32): boolean;
99
- public is_any(value: u32): boolean;
100
- public one(): flags32;
101
- public or(value: flags32, value2: u32): flags32;
102
- public or(value: u32): flags32;
103
- public set(value: u32, value2: boolean): flags32;
104
- public test(value: u32): boolean;
105
- public zero(): flags32;
106
- }
107
-
108
- /**
109
- * @source C++ class color
110
- * @customConstructor color
111
- * @group xr_utils
112
- */
113
- export class color {
114
- public b: f32;
115
- public g: f32;
116
- public r: f32;
117
-
118
- public constructor();
119
- public constructor(r: f32, g: f32, b: f32);
120
-
121
- public set(r: f32, g: f32, b: f32): void;
122
- }
123
-
124
- /**
125
- * @source C++ class duality
126
- * @customConstructor duality
127
- * @group xr_utils
128
- */
129
- export class duality {
130
- public v: f32;
131
- public h: f32;
132
-
133
- public constructor();
134
- public constructor(v: f32, h: f32);
135
-
136
- public set(v: f32, h: f32): duality;
137
- }
138
-
139
- /**
140
- * @source C++ class noise
141
- * @customConstructor noise
142
- * @group xr_utils
143
- */
144
- export class noise {
145
- public fps: f32;
146
- public grain: f32;
147
- public intensity: f32;
148
-
149
- public constructor();
150
- public constructor(fps: f32, grain: f32, intensity: f32);
151
-
152
- public set(fps: f32, grain: f32, intensity: f32): noise;
153
- }
154
-
155
- /**
156
- * @source C++ class object_params
157
- * @customConstructor object_params
158
- * @group xr_utils
159
- */
160
- export class object_params {
161
- public level_vertex: u32;
162
- public position: vector;
163
-
164
- private constructor();
165
- }
166
-
167
- /**
168
- * @source C++ class token
169
- * @customConstructor token
170
- * @group xr_utils
171
- */
172
- export class token {
173
- public id: i32;
174
- public name: string;
175
-
176
- private constructor();
177
- }
178
-
179
- /**
180
- * @source C++ class rtoken_list
181
- * @customConstructor rtoken_list
182
- * @group xr_utils
183
- */
184
- export class rtoken_list {
185
- public constructor();
186
-
187
- public remove(index: u32): void;
188
- public get(index: u32): string;
189
- public count(): u32;
190
- public add(token: string): void;
191
- public clear(): void;
192
- }
193
-
194
- /**
195
- * @source C++ class token_list
196
- * @customConstructor token_list
197
- * @group xr_utils
198
- */
199
- export class token_list {
200
- public constructor();
201
-
202
- public remove(token: string): void;
203
- public id(token: string): i32;
204
- public name(int: i32): string;
205
- public add(token: string, index: i32): void;
206
- public clear(): void;
207
- }
208
-
209
- /**
210
- * @source C++ class CGameGraph
211
- * @customConstructor CGameGraph
212
- * @group xr_utils
213
- */
214
- export class CGameGraph {
215
- public valid_vertex_id(value: u32): boolean;
216
- public vertex(vertexId: u32): GameGraph__CVertex;
217
- public vertex_id(graph: CGameGraph): u16;
218
-
219
- public accessible(value: u32): boolean;
220
- public accessible(value1: u32, value2: boolean): void;
221
-
222
- public levels(): LuaIterable<cse_abstract>;
223
- }
224
-
225
- /**
226
- * @source C++ class act
227
- * @customConstructor act
228
- * @group xr_utils
229
- */
230
- export class act {
231
- public static readonly attack: 2;
232
- public static readonly eat: 1;
233
- public static readonly panic: 3;
234
- public static readonly rest: 0;
235
-
236
- public constructor();
237
- public constructor(EScriptMonsterGlobalAction: number);
238
- public constructor(EScriptMonsterGlobalAction: number, game_object: game_object);
239
- }
240
-
241
- /**
242
- * @source C++ class MonsterHitInfo
243
- * @customConstructor MonsterHitInfo
244
- * @group xr_utils
245
- */
246
- export class MonsterHitInfo extends EngineBinding {
247
- private constructor();
248
-
249
- public direction: vector;
250
- public time: i32;
251
- public who: game_object;
252
- }
253
-
254
- /**
255
- * @source C++ class color_animator
256
- * @customConstructor color_animator
257
- * @group xr_utils
258
- */
259
- export class color_animator extends EngineBinding {
260
- public constructor(value: string);
261
-
262
- public length(): u32;
263
- public load(value: string): void;
264
- public calculate(value: f32): fcolor;
265
- }
266
-
267
- /**
268
- * @source C++ class profile_timer
269
- * @customConstructor profile_timer
270
- * @group xr_utils
271
- */
272
- export class profile_timer extends EngineBinding {
273
- public constructor();
274
- public constructor(profile_timer: profile_timer);
275
-
276
- public stop(): void;
277
- public start(): void;
278
- public time(): f32;
279
-
280
- /**
281
- * Overridden string cast is implemented for profiling timer.
282
- *
283
- * @returns serialized profile time.
284
- */
285
- public __tostring(): string;
286
- }
287
-
288
- /**
289
- * @source C++ class effector
290
- * @customConstructor effector
291
- * @group xr_utils
292
- */
293
- export class effector extends EngineBinding {
294
- public constructor(int: i32, float: f32);
295
-
296
- public start(): void;
297
- public process(effector_params: effector_params): boolean;
298
- public finish(): void;
299
- }
300
-
301
- /**
302
- * @source C++ class effector_params
303
- * @customConstructor effector_params
304
- * @group xr_utils
305
- */
306
- export class effector_params extends EngineBinding {
307
- public color_add: color;
308
- public color_base: color;
309
- public color_gray: color;
310
- public dual: duality;
311
- public blur: f32;
312
- public gray: f32;
313
- public noise: noise;
314
-
315
- public constructor();
316
-
317
- public assign(effector_params: effector_params): void;
318
- }
319
-
320
- /**
321
- * @source C++ class properties_list_helper
322
- * @customConstructor properties_list_helper
323
- * @group xr_utils
324
- */
325
- export class properties_list_helper extends EngineBinding {
326
- public create_vangle(): unknown;
327
- public create_angle(): unknown;
328
- public create_time(): unknown;
329
-
330
- public create_color(): unknown;
331
- public create_vcolor(): unknown;
332
- public create_fcolor(): unknown;
333
-
334
- public create_list(): unknown;
335
-
336
- public create_token8(): unknown;
337
- public create_token16(): unknown;
338
- public create_token32(): unknown;
339
-
340
- public create_flag8(): unknown;
341
- public create_flag16(): unknown;
342
- public create_flag32(): unknown;
343
-
344
- public create_vector(): unknown;
345
-
346
- public create_bool(
347
- items: LuaTable<number>,
348
- path: string,
349
- object: cse_abstract,
350
- value: unknown,
351
- id: number | string
352
- ): boolean;
353
-
354
- public create_float(): unknown;
355
-
356
- public create_u8(): unknown;
357
- public create_u16(): unknown;
358
- public create_u32(): unknown;
359
- public create_s32(): unknown;
360
- public create_s16(): unknown;
361
-
362
- public create_choose(): unknown;
363
- public create_button(): unknown;
364
- public create_canvas(): unknown;
365
- public create_caption(): unknown;
366
-
367
- public float_on_after_edit(): unknown;
368
- public float_on_before_edit(): unknown;
369
- public name_after_edit(): unknown;
370
- public name_before_edit(): unknown;
371
- public vector_on_before_edit(): unknown;
372
- public vector_on_after_edit(): unknown;
373
- }
374
-
375
- /**
376
- * @source C++ class properties_helper
377
- * @customConstructor properties_helper
378
- * @group xr_utils
379
- */
380
- export class properties_helper extends properties_list_helper {}
381
-
382
- /**
383
- * @source C++ class prop_value
384
- * @customConstructor prop_value
385
- * @group xr_utils
386
- */
387
- export class prop_value {
388
- public token16_value(): unknown;
389
- public flag32_value(): unknown;
390
- public text_value(): unknown;
391
- public bool_value(): unknown;
392
- public u16_value(): unknown;
393
- public s16_value(): unknown;
394
- public button_value(): unknown;
395
- public caption_value(): unknown;
396
- }
397
-
398
- /**
399
- * @source C++ class TEX_INFO
400
- * @customConstructor TEX_INFO
401
- * @group xr_utils
402
- */
403
- export class TEX_INFO {
404
- public get_rect(): Frect;
405
- public get_file_name(): string;
406
- }
407
- }
@@ -1,34 +0,0 @@
1
- declare module "xray16" {
2
- /**
3
- * Base for bindings brought from LuaBind library.
4
- * todo: Correct signatures.
5
- *
6
- * @source luabind
7
- * @group xr_luabind
8
- */
9
- export class EngineBinding {
10
- public static readonly __name: string;
11
- public readonly __name: string;
12
-
13
- public __init(...args: Array<any>): void;
14
- public __finalize(): void;
15
- public __call(args: Array<any>): void;
16
- public __tostring(): string;
17
- }
18
-
19
- /**
20
- * @group xr_luabind
21
- */
22
- type TEngineBindingStaticMethods = keyof typeof EngineBinding;
23
-
24
- /**
25
- * Decorator to mark classes as luabind transformed.
26
- * Marked classes will be declared using luabind tools instead of default typescript-to-lua approach.
27
- * Luabind variant is less flexible and has many limitations,
28
- * but allows extension of engine exported classes and virtual methods.
29
- *
30
- * @group xr_luabind
31
- * @returns class decorator to mark class as luabind implementation
32
- */
33
- export function LuabindClass(): ClassDecorator;
34
- }
@@ -1,206 +0,0 @@
1
- declare module "xray16" {
2
- /**
3
- * @source C++ class alife_simulator
4
- * @customConstructor alife_simulator
5
- * @group xr_alife
6
- */
7
- export class alife_simulator {
8
- public actor<T extends cse_alife_creature_actor>(): T;
9
- public add_in_restriction(monster: cse_alife_monster_abstract, value: u16): void;
10
- public add_out_restriction(monster: cse_alife_monster_abstract, value: u16): void;
11
- public create_ammo(
12
- section: string,
13
- vector: vector,
14
- level_vertex_id: u32,
15
- game_vertex_id: u16,
16
- pid: u16,
17
- count: i32
18
- ): cse_abstract;
19
- public dont_has_info(object_id: u16, info_id: string): boolean;
20
- public has_info(object_id: u16, info_id: string): boolean;
21
- public iterate_objects(cb: (this: void, object: cse_alife_object) => boolean | void): void;
22
- public level_id(): u32;
23
- public level_name<T extends string = string>(value: i32): T;
24
- public release(cse_abstract: cse_alife_object | null, flag: boolean): void;
25
- public remove_all_restrictions(value: u16, type: i32 /* enum RestrictionSpace::ERestrictorTypes */): void;
26
- public remove_in_restriction(monster: cse_alife_monster_abstract, value: u16): void;
27
- public remove_out_restriction(monster: cse_alife_monster_abstract, value: u16): void;
28
- public set_interactive(value1: u16, value2: boolean): void;
29
- public set_switch_distance(distance: f32): void;
30
- public set_switch_offline(value1: u16, value2: boolean): void;
31
- public set_switch_online(value1: u16, value2: boolean): void;
32
- public spawn_id(value: u32): u16;
33
- public story_object(value: u32): cse_alife_object;
34
- /**
35
- * @returns alife server-client switch distance
36
- */
37
- public switch_distance(): f32;
38
- /**
39
- * Set alife server-client switch distance.
40
- *
41
- * @param distance - distance to set
42
- */
43
- public switch_distance(distance: f32): void;
44
- /**
45
- * Set count of object updated in alife per one tick.
46
- *
47
- * @param count - count of objects to update per tick
48
- */
49
- public set_objects_per_update(count: u16): void;
50
- public teleport_object(level_vertex_id: u16, game_vertex_id: u16, int: u32, vector: vector): void;
51
- public valid_object_id(value: u16): boolean;
52
-
53
- public kill_entity(monster1: cse_alife_monster_abstract, value?: u16, monster2?: cse_alife_monster_abstract): void;
54
-
55
- public object<T extends cse_alife_object = cse_alife_object>(id: number, value2?: boolean): T | null;
56
-
57
- public create<T extends cse_alife_object = cse_alife_object>(value: u32): T;
58
- public create<T extends cse_alife_object = cse_alife_object>(
59
- item_section: string,
60
- position: vector,
61
- level_vertex_id: u32,
62
- game_vertex_id: u32,
63
- pid?: i32
64
- ): T;
65
- }
66
-
67
- /**
68
- * @source C++ class CALifeSmartTerrainTask
69
- * @customConstructor CALifeSmartTerrainTask
70
- * @group xr_alife
71
- */
72
- export class CALifeSmartTerrainTask {
73
- public constructor(patrol_path_name: string, patrol_point_index?: u32);
74
- public constructor(game_vertex_id: u16, level_vertex_id: u32);
75
-
76
- public level_vertex_id(): u16;
77
- public game_vertex_id(): u16;
78
- public position(): vector;
79
- }
80
-
81
- /**
82
- * @source C++ class CALifeMonsterBrain
83
- * @customConstructor CALifeMonsterBrain
84
- * @group xr_alife
85
- */
86
- export class CAILifeMonsterBrain {
87
- public constructor(object: unknown);
88
-
89
- public select_task(forced?: boolean): void;
90
- public process_task(): void;
91
- public default_behaviour(): void;
92
-
93
- public can_choose_alife_tasks(): boolean;
94
- public can_choose_alife_tasks(value: boolean): void;
95
-
96
- public on_state_write(packet: net_packet): void;
97
- public on_state_read(packet: net_packet): void;
98
- public on_register(): void;
99
- public on_unregister(): void;
100
- public on_location_change(): void;
101
- public on_switch_online(): void;
102
- public on_switch_offline(): void;
103
-
104
- public update(forced?: boolean): void;
105
- public update_script(): void;
106
-
107
- public perform_attack(): boolean;
108
- public action_type(tpALifeSchedulable: unknown, index: number, mutual_detection: boolean): unknown;
109
- public object(): unknown;
110
- public movement(): unknown;
111
- public smart_terrain(): unknown;
112
- }
113
-
114
- /**
115
- * @source C++ class CALifeMonsterBrain
116
- * @customConstructor CALifeMonsterBrain
117
- * @group xr_alife
118
- */
119
- export class CALifeMonsterBrain {
120
- public movement(): CALifeMonsterMovementManager;
121
- public update(): void;
122
- public can_choose_alife_tasks(): boolean;
123
- public can_choose_alife_tasks(can_choose: boolean): void;
124
- }
125
-
126
- /**
127
- * @source C++ class CALifeHumanBrain : CALifeMonsterBrain
128
- * @customConstructor CALifeHumanBrain
129
- * @group xr_alife
130
- */
131
- export class CALifeHumanBrain extends CALifeMonsterBrain {}
132
-
133
- /**
134
- * @source C++ class CALifeMonsterDetailPathManager
135
- * @customConstructor CALifeMonsterDetailPathManager
136
- * @group xr_alife
137
- */
138
- export class CALifeMonsterDetailPathManager {
139
- public completed(): boolean;
140
- public target(a: number, b: number, vector: vector): void;
141
- public target(task_id: number): void;
142
- public target(task: CALifeSmartTerrainTask): void;
143
- public failed(): boolean;
144
- public speed(number: f32): f32;
145
- public speed(): f32;
146
- public actual(): boolean;
147
- }
148
-
149
- /**
150
- * @source C++ class CALifeMonsterMovementManager
151
- * @customConstructor CALifeMonsterMovementManager
152
- * @group xr_alife
153
- */
154
- export class CALifeMonsterMovementManager {
155
- public completed(): boolean;
156
- public patrol(): CALifeMonsterPatrolPathManager;
157
- public actual(): boolean;
158
- public path_type(): number; /* EPathType */
159
- public detail(): CALifeMonsterDetailPathManager;
160
- }
161
-
162
- /**
163
- * @source C++ class CALifeMonsterPatrolPathManager
164
- * @customConstructor CALifeMonsterPatrolPathManager
165
- * @group xr_alife
166
- */
167
- export class CALifeMonsterPatrolPathManager {
168
- public path(string: string): void;
169
- public target_game_vertex_id(): u16;
170
- public target_level_vertex_id(): u16;
171
- public target_position(): vector;
172
- public completed(): boolean;
173
- public route_type(type: u32 /* const enum PatrolPathManager::EPatrolRouteType */): u32;
174
- public route_type(): u32;
175
- public use_randomness(enabled: boolean): boolean;
176
- public use_randomness(): boolean;
177
- public start_type(type: u32 /* const enum PatrolPathManager::EPatrolStartType */): u32;
178
- public start_type(): u32;
179
- public start_vertex_index(index: u32): void;
180
- public actual(): boolean;
181
- }
182
-
183
- /**
184
- * @source C++ class cover_point
185
- * @customConstructor cover_point
186
- * @group xr_alife
187
- */
188
- export class cover_point {
189
- private constructor();
190
-
191
- public level_vertex_id(): u32;
192
- public is_smart_cover(): boolean;
193
- public position(): vector;
194
- }
195
-
196
- /**
197
- * @source C++ class client_spawn_manager
198
- * @customConstructor client_spawn_manager
199
- * @group xr_alife
200
- */
201
- export class client_spawn_manager {
202
- public remove(number1: u16, number2: u16): void;
203
- public add(number1: u16, number2: u16, cb: (this: void) => void): void;
204
- public add(number1: u16, number2: u16, cb: (this: void) => void, object: XR_object): void;
205
- }
206
- }
@@ -1,17 +0,0 @@
1
- declare module "xray16" {
2
- /**
3
- * Enumeration with possible game types:
4
- * - eGameIDNoGame = u32(0),
5
- * - eGameIDSingle = u32(1) << 0,
6
- * - eGameIDDeathmatch = u32(1) << 1,
7
- * - eGameIDTeamDeathmatch = u32(1) << 2,
8
- * - eGameIDArtefactHunt = u32(1) << 3,
9
- * - eGameIDCaptureTheArtefact = u32(1) << 4,
10
- * - eGameIDDominationZone = u32(1) << 5,
11
- * - eGameIDTeamDominationZone = u32(1) << 6,
12
- *
13
- * @source C++ enum EGameIDs
14
- * @group xr_types
15
- */
16
- export type TXR_EGameID = 0 | 1 | 2 | 8 | 16 | 32 | 64;
17
- }