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,412 +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
- /**
223
- * Method to iterate over game levels registered in `all.spawn`.
224
- *
225
- * @returns level abstract object with every iteration
226
- */
227
- public levels(): LuaIterable<cse_abstract>;
228
- }
229
-
230
- /**
231
- * @source C++ class act
232
- * @customConstructor act
233
- * @group xr_utils
234
- */
235
- export class act {
236
- public static readonly attack: 2;
237
- public static readonly eat: 1;
238
- public static readonly panic: 3;
239
- public static readonly rest: 0;
240
-
241
- public constructor();
242
- public constructor(EScriptMonsterGlobalAction: number);
243
- public constructor(EScriptMonsterGlobalAction: number, game_object: game_object);
244
- }
245
-
246
- /**
247
- * @source C++ class MonsterHitInfo
248
- * @customConstructor MonsterHitInfo
249
- * @group xr_utils
250
- */
251
- export class MonsterHitInfo extends EngineBinding {
252
- private constructor();
253
-
254
- public direction: vector;
255
- public time: i32;
256
- public who: game_object;
257
- }
258
-
259
- /**
260
- * @source C++ class color_animator
261
- * @customConstructor color_animator
262
- * @group xr_utils
263
- */
264
- export class color_animator extends EngineBinding {
265
- public constructor(value: string);
266
-
267
- public length(): u32;
268
- public load(value: string): void;
269
- public calculate(value: f32): fcolor;
270
- }
271
-
272
- /**
273
- * @source C++ class profile_timer
274
- * @customConstructor profile_timer
275
- * @group xr_utils
276
- */
277
- export class profile_timer extends EngineBinding {
278
- public constructor();
279
- public constructor(profile_timer: profile_timer);
280
-
281
- public stop(): void;
282
- public start(): void;
283
- public time(): f32;
284
-
285
- /**
286
- * Overridden string cast is implemented for profiling timer.
287
- *
288
- * @returns serialized profile time.
289
- */
290
- public __tostring(): string;
291
- }
292
-
293
- /**
294
- * @source C++ class effector
295
- * @customConstructor effector
296
- * @group xr_utils
297
- */
298
- export class effector extends EngineBinding {
299
- public constructor(int: i32, float: f32);
300
-
301
- public start(): void;
302
- public process(effector_params: effector_params): boolean;
303
- public finish(): void;
304
- }
305
-
306
- /**
307
- * @source C++ class effector_params
308
- * @customConstructor effector_params
309
- * @group xr_utils
310
- */
311
- export class effector_params extends EngineBinding {
312
- public color_add: color;
313
- public color_base: color;
314
- public color_gray: color;
315
- public dual: duality;
316
- public blur: f32;
317
- public gray: f32;
318
- public noise: noise;
319
-
320
- public constructor();
321
-
322
- public assign(effector_params: effector_params): void;
323
- }
324
-
325
- /**
326
- * @source C++ class properties_list_helper
327
- * @customConstructor properties_list_helper
328
- * @group xr_utils
329
- */
330
- export class properties_list_helper extends EngineBinding {
331
- public create_vangle(): unknown;
332
- public create_angle(): unknown;
333
- public create_time(): unknown;
334
-
335
- public create_color(): unknown;
336
- public create_vcolor(): unknown;
337
- public create_fcolor(): unknown;
338
-
339
- public create_list(): unknown;
340
-
341
- public create_token8(): unknown;
342
- public create_token16(): unknown;
343
- public create_token32(): unknown;
344
-
345
- public create_flag8(): unknown;
346
- public create_flag16(): unknown;
347
- public create_flag32(): unknown;
348
-
349
- public create_vector(): unknown;
350
-
351
- public create_bool(
352
- items: LuaTable<number>,
353
- path: string,
354
- object: cse_abstract,
355
- value: unknown,
356
- id: number | string
357
- ): boolean;
358
-
359
- public create_float(): unknown;
360
-
361
- public create_u8(): unknown;
362
- public create_u16(): unknown;
363
- public create_u32(): unknown;
364
- public create_s32(): unknown;
365
- public create_s16(): unknown;
366
-
367
- public create_choose(): unknown;
368
- public create_button(): unknown;
369
- public create_canvas(): unknown;
370
- public create_caption(): unknown;
371
-
372
- public float_on_after_edit(): unknown;
373
- public float_on_before_edit(): unknown;
374
- public name_after_edit(): unknown;
375
- public name_before_edit(): unknown;
376
- public vector_on_before_edit(): unknown;
377
- public vector_on_after_edit(): unknown;
378
- }
379
-
380
- /**
381
- * @source C++ class properties_helper
382
- * @customConstructor properties_helper
383
- * @group xr_utils
384
- */
385
- export class properties_helper extends properties_list_helper {}
386
-
387
- /**
388
- * @source C++ class prop_value
389
- * @customConstructor prop_value
390
- * @group xr_utils
391
- */
392
- export class prop_value {
393
- public token16_value(): unknown;
394
- public flag32_value(): unknown;
395
- public text_value(): unknown;
396
- public bool_value(): unknown;
397
- public u16_value(): unknown;
398
- public s16_value(): unknown;
399
- public button_value(): unknown;
400
- public caption_value(): unknown;
401
- }
402
-
403
- /**
404
- * @source C++ class TEX_INFO
405
- * @customConstructor TEX_INFO
406
- * @group xr_utils
407
- */
408
- export class TEX_INFO {
409
- public get_rect(): Frect;
410
- public get_file_name(): string;
411
- }
412
- }
@@ -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,213 +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
- /**
24
- * Method to get level name based on level ID.
25
- * Easy way to get level is to get it by game vertex ID graph or iterate over all levels in graphs.
26
- *
27
- * @param level_id - ID of the level
28
- * @returns level name based on level ID provided
29
- */
30
- public level_name<T extends string = string>(level_id: i32): T;
31
- public release(cse_abstract: cse_alife_object | null, flag: boolean): void;
32
- public remove_all_restrictions(value: u16, type: i32 /* enum RestrictionSpace::ERestrictorTypes */): void;
33
- public remove_in_restriction(monster: cse_alife_monster_abstract, value: u16): void;
34
- public remove_out_restriction(monster: cse_alife_monster_abstract, value: u16): void;
35
- public set_interactive(value1: u16, value2: boolean): void;
36
- public set_switch_distance(distance: f32): void;
37
- public set_switch_offline(value1: u16, value2: boolean): void;
38
- public set_switch_online(value1: u16, value2: boolean): void;
39
- public spawn_id(value: u32): u16;
40
- public story_object(value: u32): cse_alife_object;
41
- /**
42
- * @returns alife server-client switch distance
43
- */
44
- public switch_distance(): f32;
45
- /**
46
- * Set alife server-client switch distance.
47
- *
48
- * @param distance - distance to set
49
- */
50
- public switch_distance(distance: f32): void;
51
- /**
52
- * Set count of object updated in alife per one tick.
53
- *
54
- * @param count - count of objects to update per tick
55
- */
56
- public set_objects_per_update(count: u16): void;
57
- public teleport_object(level_vertex_id: u16, game_vertex_id: u16, int: u32, vector: vector): void;
58
- public valid_object_id(value: u16): boolean;
59
-
60
- public kill_entity(monster1: cse_alife_monster_abstract, value?: u16, monster2?: cse_alife_monster_abstract): void;
61
-
62
- public object<T extends cse_alife_object = cse_alife_object>(id: number, value2?: boolean): T | null;
63
-
64
- public create<T extends cse_alife_object = cse_alife_object>(value: u32): T;
65
- public create<T extends cse_alife_object = cse_alife_object>(
66
- item_section: string,
67
- position: vector,
68
- level_vertex_id: u32,
69
- game_vertex_id: u32,
70
- pid?: i32
71
- ): T;
72
- }
73
-
74
- /**
75
- * @source C++ class CALifeSmartTerrainTask
76
- * @customConstructor CALifeSmartTerrainTask
77
- * @group xr_alife
78
- */
79
- export class CALifeSmartTerrainTask {
80
- public constructor(patrol_path_name: string, patrol_point_index?: u32);
81
- public constructor(game_vertex_id: u16, level_vertex_id: u32);
82
-
83
- public level_vertex_id(): u16;
84
- public game_vertex_id(): u16;
85
- public position(): vector;
86
- }
87
-
88
- /**
89
- * @source C++ class CALifeMonsterBrain
90
- * @customConstructor CALifeMonsterBrain
91
- * @group xr_alife
92
- */
93
- export class CAILifeMonsterBrain {
94
- public constructor(object: unknown);
95
-
96
- public select_task(forced?: boolean): void;
97
- public process_task(): void;
98
- public default_behaviour(): void;
99
-
100
- public can_choose_alife_tasks(): boolean;
101
- public can_choose_alife_tasks(value: boolean): void;
102
-
103
- public on_state_write(packet: net_packet): void;
104
- public on_state_read(packet: net_packet): void;
105
- public on_register(): void;
106
- public on_unregister(): void;
107
- public on_location_change(): void;
108
- public on_switch_online(): void;
109
- public on_switch_offline(): void;
110
-
111
- public update(forced?: boolean): void;
112
- public update_script(): void;
113
-
114
- public perform_attack(): boolean;
115
- public action_type(tpALifeSchedulable: unknown, index: number, mutual_detection: boolean): unknown;
116
- public object(): unknown;
117
- public movement(): unknown;
118
- public smart_terrain(): unknown;
119
- }
120
-
121
- /**
122
- * @source C++ class CALifeMonsterBrain
123
- * @customConstructor CALifeMonsterBrain
124
- * @group xr_alife
125
- */
126
- export class CALifeMonsterBrain {
127
- public movement(): CALifeMonsterMovementManager;
128
- public update(): void;
129
- public can_choose_alife_tasks(): boolean;
130
- public can_choose_alife_tasks(can_choose: boolean): void;
131
- }
132
-
133
- /**
134
- * @source C++ class CALifeHumanBrain : CALifeMonsterBrain
135
- * @customConstructor CALifeHumanBrain
136
- * @group xr_alife
137
- */
138
- export class CALifeHumanBrain extends CALifeMonsterBrain {}
139
-
140
- /**
141
- * @source C++ class CALifeMonsterDetailPathManager
142
- * @customConstructor CALifeMonsterDetailPathManager
143
- * @group xr_alife
144
- */
145
- export class CALifeMonsterDetailPathManager {
146
- public completed(): boolean;
147
- public target(a: number, b: number, vector: vector): void;
148
- public target(task_id: number): void;
149
- public target(task: CALifeSmartTerrainTask): void;
150
- public failed(): boolean;
151
- public speed(number: f32): f32;
152
- public speed(): f32;
153
- public actual(): boolean;
154
- }
155
-
156
- /**
157
- * @source C++ class CALifeMonsterMovementManager
158
- * @customConstructor CALifeMonsterMovementManager
159
- * @group xr_alife
160
- */
161
- export class CALifeMonsterMovementManager {
162
- public completed(): boolean;
163
- public patrol(): CALifeMonsterPatrolPathManager;
164
- public actual(): boolean;
165
- public path_type(): number; /* EPathType */
166
- public detail(): CALifeMonsterDetailPathManager;
167
- }
168
-
169
- /**
170
- * @source C++ class CALifeMonsterPatrolPathManager
171
- * @customConstructor CALifeMonsterPatrolPathManager
172
- * @group xr_alife
173
- */
174
- export class CALifeMonsterPatrolPathManager {
175
- public path(string: string): void;
176
- public target_game_vertex_id(): u16;
177
- public target_level_vertex_id(): u16;
178
- public target_position(): vector;
179
- public completed(): boolean;
180
- public route_type(type: u32 /* const enum PatrolPathManager::EPatrolRouteType */): u32;
181
- public route_type(): u32;
182
- public use_randomness(enabled: boolean): boolean;
183
- public use_randomness(): boolean;
184
- public start_type(type: u32 /* const enum PatrolPathManager::EPatrolStartType */): u32;
185
- public start_type(): u32;
186
- public start_vertex_index(index: u32): void;
187
- public actual(): boolean;
188
- }
189
-
190
- /**
191
- * @source C++ class cover_point
192
- * @customConstructor cover_point
193
- * @group xr_alife
194
- */
195
- export class cover_point {
196
- private constructor();
197
-
198
- public level_vertex_id(): u32;
199
- public is_smart_cover(): boolean;
200
- public position(): vector;
201
- }
202
-
203
- /**
204
- * @source C++ class client_spawn_manager
205
- * @customConstructor client_spawn_manager
206
- * @group xr_alife
207
- */
208
- export class client_spawn_manager {
209
- public remove(number1: u16, number2: u16): void;
210
- public add(number1: u16, number2: u16, cb: (this: void) => void): void;
211
- public add(number1: u16, number2: u16, cb: (this: void) => void, object: XR_object): void;
212
- }
213
- }
@@ -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
- }