xray16 1.6.0 → 1.6.1

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 (53) hide show
  1. package/package.json +12 -6
  2. package/xray16.d.ts +30847 -0
  3. package/types/index.d.ts +0 -55
  4. package/types/internal.d.ts +0 -6
  5. package/types/xr_ai/xr_action.d.ts +0 -1803
  6. package/types/xr_ai/xr_alife.d.ts +0 -1872
  7. package/types/xr_ai/xr_enemy_evaluation.d.ts +0 -134
  8. package/types/xr_ai/xr_goap.d.ts +0 -1118
  9. package/types/xr_ai/xr_graph.d.ts +0 -135
  10. package/types/xr_ai/xr_memory.d.ts +0 -384
  11. package/types/xr_lib/xr_animation.d.ts +0 -252
  12. package/types/xr_lib/xr_bitwise.d.ts +0 -44
  13. package/types/xr_lib/xr_color.d.ts +0 -142
  14. package/types/xr_lib/xr_debug.d.ts +0 -183
  15. package/types/xr_lib/xr_dialog.d.ts +0 -132
  16. package/types/xr_lib/xr_flags.d.ts +0 -592
  17. package/types/xr_lib/xr_fs.d.ts +0 -617
  18. package/types/xr_lib/xr_game.d.ts +0 -362
  19. package/types/xr_lib/xr_hit.d.ts +0 -127
  20. package/types/xr_lib/xr_ini.d.ts +0 -475
  21. package/types/xr_lib/xr_level.d.ts +0 -797
  22. package/types/xr_lib/xr_luabind.d.ts +0 -90
  23. package/types/xr_lib/xr_map.d.ts +0 -194
  24. package/types/xr_lib/xr_math.d.ts +0 -871
  25. package/types/xr_lib/xr_multiplayer.d.ts +0 -1081
  26. package/types/xr_lib/xr_profile.d.ts +0 -272
  27. package/types/xr_lib/xr_properties.d.ts +0 -612
  28. package/types/xr_lib/xr_relation.d.ts +0 -231
  29. package/types/xr_lib/xr_render.d.ts +0 -167
  30. package/types/xr_lib/xr_save.d.ts +0 -835
  31. package/types/xr_lib/xr_sound.d.ts +0 -517
  32. package/types/xr_lib/xr_stats.ts +0 -51
  33. package/types/xr_lib/xr_task.d.ts +0 -390
  34. package/types/xr_lib/xr_time.d.ts +0 -177
  35. package/types/xr_lib/xr_type.d.ts +0 -70
  36. package/types/xr_object/client/xr_anomaly.d.ts +0 -70
  37. package/types/xr_object/client/xr_artefact.d.ts +0 -153
  38. package/types/xr_object/client/xr_client_object.d.ts +0 -207
  39. package/types/xr_object/client/xr_creature.d.ts +0 -243
  40. package/types/xr_object/client/xr_item.d.ts +0 -370
  41. package/types/xr_object/client/xr_level.d.ts +0 -755
  42. package/types/xr_object/client/xr_physic.d.ts +0 -644
  43. package/types/xr_object/client/xr_zone.d.ts +0 -85
  44. package/types/xr_object/script/xr_script_interface.d.ts +0 -1142
  45. package/types/xr_object/script/xr_script_object.d.ts +0 -5702
  46. package/types/xr_object/script/xr_script_trade.d.ts +0 -51
  47. package/types/xr_object/server/xr_server_object.d.ts +0 -1488
  48. package/types/xr_ui/xr_ui_asset.d.ts +0 -364
  49. package/types/xr_ui/xr_ui_core.d.ts +0 -426
  50. package/types/xr_ui/xr_ui_event.d.ts +0 -1449
  51. package/types/xr_ui/xr_ui_interface.d.ts +0 -2449
  52. package/types/xr_ui/xr_ui_menu.d.ts +0 -401
  53. package/types/xrf_plugin.d.ts +0 -111
@@ -1,1872 +0,0 @@
1
- import type { Nillable, Nullable } from "../internal";
2
-
3
- declare module "xray16" {
4
- /**
5
- * Access point for ALife simulation objects and registries.
6
- *
7
- * @source C++ class alife_simulator
8
- * @customConstructor alife_simulator
9
- * @group xr_alife
10
- *
11
- * @remarks
12
- * This is the active single-player ALife simulator. Most methods expect ids that are already registered in ALife.
13
- */
14
- export class alife_simulator {
15
- /**
16
- * Get the ALife actor server object.
17
- *
18
- * @throws If no active ALife simulator exists.
19
- *
20
- * @returns Actor object registered in the ALife graph.
21
- */
22
- public actor<T extends cse_alife_creature_actor>(): T;
23
-
24
- /**
25
- * Add an inside-space restriction to an offline monster.
26
- *
27
- * @remarks
28
- * `monster` must be a registered monster server object. `restrictorId` should point to a space restrictor.
29
- *
30
- * @param monster - Monster server object to restrict.
31
- * @param restrictorId - Restrictor object id.
32
- */
33
- public add_in_restriction(monster: cse_alife_monster_abstract, restrictorId: u16): void;
34
-
35
- /**
36
- * Add an outside-space restriction to an offline monster.
37
- *
38
- * @remarks
39
- * `monster` must be a registered monster server object. `restrictorId` should point to a space restrictor.
40
- *
41
- * @param monster - Monster server object to restrict.
42
- * @param restrictorId - Restrictor object id.
43
- */
44
- public add_out_restriction(monster: cse_alife_monster_abstract, restrictorId: u16): void;
45
-
46
- /**
47
- * Spawn ammo with a custom amount left in the box.
48
- *
49
- * @remarks
50
- * The section must spawn a server ammo object, and `count` must not exceed the ammo box size.
51
- *
52
- * @throws If the spawned section is not ammo, or if `count` is larger than the box size.
53
- *
54
- * @param section - Ammo section name.
55
- * @param position - Spawn position.
56
- * @param level_vertex_id - Level vertex id at the spawn position.
57
- * @param game_vertex_id - Game graph vertex id at the spawn position.
58
- * @param parent_object_id - Parent inventory or container id, or `65535` for no parent.
59
- * @param count - Amount of ammo in the spawned box.
60
- * @returns Spawned server object, or `null` when a non-empty parent id is invalid.
61
- */
62
- public create_ammo(
63
- section: string,
64
- position: vector,
65
- level_vertex_id: u32,
66
- game_vertex_id: u16,
67
- parent_object_id: u16,
68
- count: i32
69
- ): cse_abstract;
70
-
71
- /**
72
- * Check that an object does not know an info portion.
73
- *
74
- * @param object_id - ALife object id.
75
- * @param info_id - Info portion id.
76
- * @returns Whether the object does not have the info portion.
77
- */
78
- public dont_has_info(object_id: u16, info_id: string): boolean;
79
-
80
- /**
81
- * Check that an object knows an info portion.
82
- *
83
- * @param object_id - ALife object id.
84
- * @param info_id - Info portion id.
85
- * @returns Whether the object has the info portion.
86
- */
87
- public has_info(object_id: u16, info_id: string): boolean;
88
-
89
- /**
90
- * Iterate over registered ALife objects until the callback returns `true`.
91
- *
92
- * @remarks
93
- * Returning `true` from the callback stops iteration early.
94
- *
95
- * @param cb - Callback called for every server object.
96
- */
97
- public iterate_objects(cb: (this: void, object: cse_alife_object) => boolean | void): void;
98
-
99
- /**
100
- * Get the current level id from the active ALife graph.
101
- *
102
- * @returns Current level id.
103
- */
104
- public level_id(): u32;
105
-
106
- /**
107
- * Method to get level name based on level ID.
108
- * Easy way to get level is to get it by game vertex ID graph or iterate over all levels in graphs.
109
- *
110
- * @throws If `level_id` is not present in the game graph header.
111
- *
112
- * @param level_id - ID of the level.
113
- * @returns Level name based on level ID provided.
114
- */
115
- public level_name<T extends string = string>(level_id: i32): T;
116
-
117
- /**
118
- * Release an ALife object from the simulator.
119
- *
120
- * @remarks
121
- * Online objects are destroyed through a network event. Offline objects are removed from ALife immediately.
122
- *
123
- * @throws If `object` is `null` or is not an ALife object.
124
- *
125
- * @param object - Object to remove.
126
- * @param flag - Compatibility flag accepted by the engine binding.
127
- */
128
- public release(object: Nillable<cse_alife_object>, flag: boolean): void;
129
-
130
- /**
131
- * Remove all restrictions of one type from an object.
132
- *
133
- * @remarks
134
- * `objectId` must resolve to an ALife object that has restriction storage.
135
- *
136
- * @param objectId - Restricted object id.
137
- * @param type - Restriction type.
138
- */
139
- public remove_all_restrictions(objectId: u16, type: i32 /* Enum RestrictionSpace::ERestrictorTypes */): void;
140
-
141
- /**
142
- * Remove an inside-space restriction from an offline monster.
143
- *
144
- * @remarks
145
- * `monster` must be a registered monster server object.
146
- *
147
- * @param monster - Monster server object to update.
148
- * @param restrictorId - Restrictor object id.
149
- */
150
- public remove_in_restriction(monster: cse_alife_monster_abstract, restrictorId: u16): void;
151
-
152
- /**
153
- * Remove an outside-space restriction from an offline monster.
154
- *
155
- * @remarks
156
- * `monster` must be a registered monster server object.
157
- *
158
- * @param monster - Monster server object to update.
159
- * @param restrictorId - Restrictor object id.
160
- */
161
- public remove_out_restriction(monster: cse_alife_monster_abstract, restrictorId: u16): void;
162
-
163
- /**
164
- * Enable or disable interaction for an ALife object.
165
- *
166
- * @remarks
167
- * `objectId` must resolve to a registered ALife object.
168
- *
169
- * @param objectId - ALife object id.
170
- * @param enabled - New interaction state.
171
- */
172
- public set_interactive(objectId: u16, enabled: boolean): void;
173
-
174
- /**
175
- * Set the online/offline switch distance.
176
- *
177
- * @param distance - Switch distance in meters.
178
- */
179
- public set_switch_distance(distance: f32): void;
180
-
181
- /**
182
- * Allow or forbid switching an ALife object offline.
183
- *
184
- * @remarks
185
- * `objectId` must resolve to a registered ALife object.
186
- *
187
- * @param objectId - ALife object id.
188
- * @param enabled - New offline switching state.
189
- */
190
- public set_switch_offline(objectId: u16, enabled: boolean): void;
191
-
192
- /**
193
- * Allow or forbid switching an ALife object online.
194
- *
195
- * @remarks
196
- * `objectId` must resolve to a registered ALife object.
197
- *
198
- * @param objectId - ALife object id.
199
- * @param enabled - New online switching state.
200
- */
201
- public set_switch_online(objectId: u16, enabled: boolean): void;
202
-
203
- /**
204
- * Resolve a spawn story id to a spawn graph id.
205
- *
206
- * @param spawnStoryId - Spawn story id.
207
- * @returns Spawn graph id.
208
- */
209
- public spawn_id(spawnStoryId: u32): u16;
210
-
211
- /**
212
- * Get a server object by story id.
213
- *
214
- * @param storyId - Story id.
215
- * @returns Matching server object, or `null` when it is not registered.
216
- */
217
- public story_object(storyId: u32): Nullable<cse_alife_object>;
218
-
219
- /**
220
- * @returns Alife server-client switch distance.
221
- */
222
- public switch_distance(): f32;
223
-
224
- /**
225
- * Set alife server-client switch distance.
226
- *
227
- * @param distance - Distance to set.
228
- */
229
- public switch_distance(distance: f32): void;
230
-
231
- /**
232
- * Set count of object updated in alife per one tick.
233
- *
234
- * @since OpenXRay 2022-06-29, 09598fe7, PR #1033
235
- *
236
- * @param count - Count of objects to update per tick.
237
- */
238
- public set_objects_per_update(count: u16): void;
239
-
240
- /**
241
- * Move a server object to another graph and level vertex.
242
- *
243
- * @since OpenXRay 2014-12-27, c82669625
244
- *
245
- * @param object_id - Object id to teleport.
246
- * @param game_vertex_id - Destination game graph vertex id.
247
- * @param level_vertex_id - Destination level vertex id.
248
- * @param position - Destination position.
249
- */
250
- public teleport_object(object_id: u16, game_vertex_id: u16, level_vertex_id: u32, position: vector): void;
251
-
252
- /**
253
- * Check whether an object id is usable.
254
- *
255
- * @remarks
256
- * This only checks the engine invalid id value. It does not prove that an object with this id is registered.
257
- *
258
- * @param object_id - ALife object id.
259
- * @returns Whether the id is not the engine invalid id.
260
- */
261
- public valid_object_id(object_id: u16): boolean;
262
-
263
- /**
264
- * Kill an offline monster.
265
- *
266
- * @remarks
267
- * Use only for monster server objects registered in ALife.
268
- *
269
- * @throws If `monster` is not a valid ALife monster object.
270
- *
271
- * @param monster - Monster server object.
272
- * @param graph_id - Optional game graph vertex id used as death location.
273
- * @param schedulable - Optional killer or source object.
274
- */
275
- public kill_entity(
276
- monster: cse_alife_monster_abstract,
277
- graph_id?: u16,
278
- schedulable?: cse_alife_monster_abstract
279
- ): void;
280
-
281
- /**
282
- * Get a server object by id.
283
- *
284
- * @remarks
285
- * With the default id overload, an invalid id is logged and returns `null`. Pass `no_assert` to use the raw
286
- * engine lookup mode.
287
- *
288
- * @param object_id - ALife object id.
289
- * @param no_assert - Return `null` instead of asserting when the object is missing.
290
- * @returns Matching server object, or `null`.
291
- */
292
- public object<T extends cse_alife_object = cse_alife_object>(object_id: u16, no_assert?: boolean): Nullable<T>;
293
-
294
- /**
295
- * Get a server object by its engine replacement name.
296
- *
297
- * @param name - Server object replacement name.
298
- * @returns Matching server object, or `null`.
299
- */
300
- public object<T extends cse_alife_object = cse_alife_object>(name: string): Nullable<T>;
301
-
302
- /**
303
- * Create an object from a spawn graph id.
304
- *
305
- * @throws If `spawn_id` does not exist or does not resolve to a dynamic ALife object.
306
- *
307
- * @param spawn_id - Spawn graph id.
308
- * @returns Created server object.
309
- */
310
- public create<T extends cse_alife_object = cse_alife_object>(spawn_id: u16): T;
311
-
312
- /**
313
- * Spawn a server object by section.
314
- *
315
- * @remarks
316
- * If a non-empty parent id is invalid, the engine logs the error and returns `null`.
317
- *
318
- * @param section - Object section name.
319
- * @param position - Spawn position.
320
- * @param level_vertex_id - Level vertex id at the spawn position.
321
- * @param game_vertex_id - Game graph vertex id at the spawn position.
322
- * @param parent_object_id - Optional parent inventory or container id.
323
- * @returns Created server object, or `null` when a non-empty parent id is invalid.
324
- */
325
- public create<T extends cse_alife_object = cse_alife_object>(
326
- section: string,
327
- position: vector,
328
- level_vertex_id: u32,
329
- game_vertex_id: u32,
330
- parent_object_id?: u16
331
- ): T;
332
-
333
- /**
334
- * Spawn a server object and optionally defer network registration.
335
- *
336
- * @remarks
337
- * Passing `reg = false` returns the unregistered server object so scripts can edit its packet before registering
338
- * it manually. If a non-empty parent id is invalid, the engine logs the error and returns `null`.
339
- *
340
- * @param section - Object section name.
341
- * @param position - Spawn position.
342
- * @param level_vertex_id - Level vertex id at the spawn position.
343
- * @param game_vertex_id - Game graph vertex id at the spawn position.
344
- * @param parent_object_id - Parent inventory or container id.
345
- * @param reg - Whether to register the object immediately.
346
- * @returns Created server object, or `null` when a non-empty parent id is invalid.
347
- */
348
- public create<T extends cse_alife_object = cse_alife_object>(
349
- section: string,
350
- position: vector,
351
- level_vertex_id: u32,
352
- game_vertex_id: u32,
353
- parent_object_id: u16,
354
- reg: boolean
355
- ): T;
356
- }
357
-
358
- /**
359
- * ALife smart-terrain task binding.
360
- *
361
- * @source C++ class CALifeSmartTerrainTask
362
- * @customConstructor CALifeSmartTerrainTask
363
- * @group xr_alife
364
- *
365
- * @remarks
366
- * Tasks are resolved against patrol paths and graph vertices immediately. Invalid paths or vertices assert in the
367
- * engine.
368
- */
369
- export class CALifeSmartTerrainTask {
370
- /**
371
- * Create a task from a patrol path.
372
- *
373
- * @throws If the patrol path or requested patrol point does not exist.
374
- *
375
- * @param patrol_path_name - Patrol path name.
376
- * @param patrol_point_index - Optional patrol point index.
377
- */
378
- public constructor(patrol_path_name: string, patrol_point_index?: u32);
379
-
380
- /**
381
- * Create a task from graph vertices.
382
- *
383
- * @throws If `game_vertex_id` is not valid in the game graph.
384
- *
385
- * @param game_vertex_id - Target game graph vertex id.
386
- * @param level_vertex_id - Target level vertex id.
387
- */
388
- public constructor(game_vertex_id: u16, level_vertex_id: u32);
389
-
390
- /**
391
- * Get the target level vertex.
392
- *
393
- * @throws If the task points to an invalid graph vertex.
394
- *
395
- * @returns Level vertex id.
396
- */
397
- public level_vertex_id(): u16;
398
-
399
- /**
400
- * Get the target game graph vertex.
401
- *
402
- * @throws If the task points to an invalid graph vertex.
403
- *
404
- * @returns Game graph vertex id.
405
- */
406
- public game_vertex_id(): u16;
407
-
408
- /**
409
- * Get the target position.
410
- *
411
- * @returns Task position.
412
- */
413
- public position(): vector;
414
- }
415
-
416
- /**
417
- * Offline ALife brain for monster server objects.
418
- *
419
- * @source C++ class CALifeMonsterBrain
420
- * @customConstructor CALifeMonsterBrain
421
- * @group xr_alife
422
- *
423
- * @remarks
424
- * Belongs to an offline monster server object. Do not use it with client-side `game_object` instances.
425
- */
426
- export class CAILifeMonsterBrain {
427
- /**
428
- * Create a brain for a monster server object.
429
- *
430
- * @param object - Monster server object.
431
- */
432
- public constructor(object: cse_alife_monster_abstract);
433
-
434
- /**
435
- * Select the next ALife task.
436
- *
437
- * @param forced - Whether task selection should ignore regular throttling.
438
- */
439
- public select_task(forced?: boolean): void;
440
-
441
- /**
442
- * Process the currently selected ALife task.
443
- */
444
- public process_task(): void;
445
-
446
- /**
447
- * Reset the brain to default no-path behavior.
448
- */
449
- public default_behaviour(): void;
450
-
451
- /**
452
- * @returns Whether this brain may choose ALife tasks.
453
- */
454
- public can_choose_alife_tasks(): boolean;
455
-
456
- /**
457
- * Enable or disable ALife task selection.
458
- *
459
- * @param value - New task-selection state.
460
- */
461
- public can_choose_alife_tasks(value: boolean): void;
462
-
463
- /**
464
- * Write brain state to a network packet.
465
- *
466
- * @param packet - Target network packet.
467
- */
468
- public on_state_write(packet: net_packet): void;
469
-
470
- /**
471
- * Read brain state from a network packet.
472
- *
473
- * @param packet - Source network packet.
474
- */
475
- public on_state_read(packet: net_packet): void;
476
-
477
- /**
478
- * Called when the owning monster is registered.
479
- */
480
- public on_register(): void;
481
-
482
- /**
483
- * Called when the owning monster is unregistered.
484
- */
485
- public on_unregister(): void;
486
-
487
- /**
488
- * Called when the owning monster changes graph location.
489
- */
490
- public on_location_change(): void;
491
-
492
- /**
493
- * Called when the owning monster switches online.
494
- */
495
- public on_switch_online(): void;
496
-
497
- /**
498
- * Called when the owning monster switches offline.
499
- */
500
- public on_switch_offline(): void;
501
-
502
- /**
503
- * Update offline planning.
504
- *
505
- * @param forced - Whether the update should ignore regular throttling.
506
- */
507
- public update(forced?: boolean): void;
508
-
509
- /**
510
- * Script-facing update hook.
511
- */
512
- public update_script(): void;
513
-
514
- /**
515
- * Try to perform an offline attack.
516
- *
517
- * @returns Whether an attack was performed.
518
- */
519
- public perform_attack(): boolean;
520
-
521
- /**
522
- * Get the meet action type for another ALife object.
523
- *
524
- * @param object - Other ALife schedulable object.
525
- * @param index - Relation index.
526
- * @param mutual_detection - Whether both objects detected each other.
527
- * @returns Meet action type id.
528
- */
529
- public action_type(object: IXR_cse_alife_schedulable, index: number, mutual_detection: boolean): number;
530
-
531
- /**
532
- * @returns Owning monster server object.
533
- */
534
- public object(): cse_alife_monster_abstract;
535
-
536
- /**
537
- * @returns Offline movement manager.
538
- */
539
- public movement(): CALifeMonsterMovementManager;
540
-
541
- /**
542
- * @returns Smart terrain assigned to the owner.
543
- */
544
- public smart_terrain(): cse_alife_smart_zone;
545
- }
546
-
547
- /**
548
- * ALife monster brain binding.
549
- *
550
- * @source C++ class CALifeMonsterBrain
551
- * @customConstructor CALifeMonsterBrain
552
- * @group xr_alife
553
- *
554
- * @remarks
555
- * Script-visible subset of the offline monster brain. `update()` is bound as a forced update.
556
- */
557
- export class CALifeMonsterBrain {
558
- /**
559
- * Get the offline movement manager.
560
- *
561
- * @returns Monster movement manager.
562
- */
563
- public movement(): CALifeMonsterMovementManager;
564
-
565
- /**
566
- * Update offline ALife planning for the monster.
567
- */
568
- public update(): void;
569
-
570
- /**
571
- * Check whether this brain may choose ALife tasks.
572
- *
573
- * @returns Whether ALife task selection is enabled.
574
- */
575
- public can_choose_alife_tasks(): boolean;
576
-
577
- /**
578
- * Enable or disable ALife task selection.
579
- *
580
- * @param can_choose - New task-selection state.
581
- */
582
- public can_choose_alife_tasks(can_choose: boolean): void;
583
- }
584
-
585
- /**
586
- * ALife human brain binding.
587
- *
588
- * @source C++ class CALifeHumanBrain : CALifeMonsterBrain
589
- * @customConstructor CALifeHumanBrain
590
- * @group xr_alife
591
- *
592
- * @remarks
593
- * Human ALife brain with the same script-visible surface as `CALifeMonsterBrain`.
594
- */
595
- export class CALifeHumanBrain extends CALifeMonsterBrain {}
596
-
597
- /**
598
- * ALife monster detail-path manager binding.
599
- *
600
- * @source C++ class CALifeMonsterDetailPathManager
601
- * @customConstructor CALifeMonsterDetailPathManager
602
- * @group xr_alife
603
- *
604
- * @remarks
605
- * Owned by an offline monster brain. Targets are validated against the game graph and current level graph.
606
- */
607
- export class CALifeMonsterDetailPathManager {
608
- /**
609
- * Check whether the detail path reached its target.
610
- *
611
- * @returns Whether detail movement is complete.
612
- */
613
- public completed(): boolean;
614
-
615
- /**
616
- * Set a target by graph vertex, level vertex, and position.
617
- *
618
- * @throws If the graph vertex is invalid or does not match the level vertex and position on the current level.
619
- *
620
- * @param game_vertex_id - Target game graph vertex id.
621
- * @param level_vertex_id - Target level vertex id.
622
- * @param position - Target position.
623
- */
624
- public target(game_vertex_id: number, level_vertex_id: number, position: vector): void;
625
-
626
- /**
627
- * Set a target by game graph vertex.
628
- *
629
- * @throws If `game_vertex_id` is not valid.
630
- *
631
- * @param game_vertex_id - Target game graph vertex id.
632
- */
633
- public target(game_vertex_id: number): void;
634
-
635
- /**
636
- * Set a target from a smart-terrain task.
637
- *
638
- * @remarks
639
- * The task is resolved to graph vertex, level vertex, and position before assigning the target.
640
- *
641
- * @param task - Smart-terrain task.
642
- */
643
- public target(task: CALifeSmartTerrainTask): void;
644
-
645
- /**
646
- * Check whether the last path build failed.
647
- *
648
- * @returns Whether detail movement failed.
649
- */
650
- public failed(): boolean;
651
-
652
- /**
653
- * Set detail movement speed.
654
- *
655
- * @param speed - New movement speed.
656
- */
657
- public speed(speed: f32): void;
658
-
659
- /**
660
- * Get detail movement speed.
661
- *
662
- * @returns Current movement speed.
663
- */
664
- public speed(): f32;
665
-
666
- /**
667
- * Check whether the current detail path still matches the target.
668
- *
669
- * @returns Whether the path is actual.
670
- */
671
- public actual(): boolean;
672
- }
673
-
674
- /**
675
- * ALife monster movement manager binding.
676
- *
677
- * @source C++ class CALifeMonsterMovementManager
678
- * @customConstructor CALifeMonsterMovementManager
679
- * @group xr_alife
680
- *
681
- * @remarks
682
- * Owned by an offline monster brain. The returned detail and patrol managers are engine-owned.
683
- */
684
- export class CALifeMonsterMovementManager {
685
- /**
686
- * Check whether offline movement has completed.
687
- *
688
- * @returns Whether movement is complete.
689
- */
690
- public completed(): boolean;
691
-
692
- /**
693
- * Get the patrol path manager.
694
- *
695
- * @returns Patrol path manager.
696
- */
697
- public patrol(): CALifeMonsterPatrolPathManager;
698
-
699
- /**
700
- * Check whether the movement target is still actual.
701
- *
702
- * @returns Whether movement is actual.
703
- */
704
- public actual(): boolean;
705
-
706
- /**
707
- * Get the active offline path type.
708
- *
709
- * @returns Movement path type.
710
- */
711
- public path_type(): number; /* EPathType */
712
-
713
- /**
714
- * Get the detail path manager.
715
- *
716
- * @returns Detail path manager.
717
- */
718
- public detail(): CALifeMonsterDetailPathManager;
719
- }
720
-
721
- /**
722
- * ALife monster patrol-path manager binding.
723
- *
724
- * @source C++ class CALifeMonsterPatrolPathManager
725
- * @customConstructor CALifeMonsterPatrolPathManager
726
- * @group xr_alife
727
- *
728
- * @remarks
729
- * Patrol target getters require a patrol path and a selected current patrol vertex.
730
- */
731
- export class CALifeMonsterPatrolPathManager {
732
- /**
733
- * Set the patrol path by name.
734
- *
735
- * @throws If `path_name` is not a registered patrol path.
736
- *
737
- * @param path_name - Patrol path name.
738
- */
739
- public path(path_name: string): void;
740
-
741
- /**
742
- * Get the current patrol target game vertex.
743
- *
744
- * @throws If no patrol path is assigned or the current vertex is not selected.
745
- *
746
- * @returns Target game graph vertex id.
747
- */
748
- public target_game_vertex_id(): u16;
749
-
750
- /**
751
- * Get the current patrol target level vertex.
752
- *
753
- * @throws If no patrol path is assigned or the current vertex is not selected.
754
- *
755
- * @returns Target level vertex id.
756
- */
757
- public target_level_vertex_id(): u16;
758
-
759
- /**
760
- * Get the current patrol target position.
761
- *
762
- * @throws If no patrol path is assigned or the current vertex is not selected.
763
- *
764
- * @returns Target position.
765
- */
766
- public target_position(): vector;
767
-
768
- /**
769
- * Check whether patrol movement reached the target.
770
- *
771
- * @returns Whether patrol movement is complete.
772
- */
773
- public completed(): boolean;
774
-
775
- /**
776
- * Set patrol route behavior.
777
- *
778
- * @param type - Patrol route type.
779
- */
780
- public route_type(type: u32 /* Const enum PatrolPathManager::EPatrolRouteType */): void;
781
-
782
- /**
783
- * Get patrol route behavior.
784
- *
785
- * @returns Patrol route type.
786
- */
787
- public route_type(): u32;
788
-
789
- /**
790
- * Enable or disable random patrol point selection.
791
- *
792
- * @param enabled - New randomness state.
793
- */
794
- public use_randomness(enabled: boolean): void;
795
-
796
- /**
797
- * Check whether random patrol point selection is enabled.
798
- *
799
- * @returns Whether randomness is enabled.
800
- */
801
- public use_randomness(): boolean;
802
-
803
- /**
804
- * Set how the patrol path starts.
805
- *
806
- * @param type - Patrol start type.
807
- */
808
- public start_type(type: u32 /* Const enum PatrolPathManager::EPatrolStartType */): void;
809
-
810
- /**
811
- * Get how the patrol path starts.
812
- *
813
- * @returns Patrol start type.
814
- */
815
- public start_type(): u32;
816
-
817
- /**
818
- * Set the starting patrol point.
819
- *
820
- * @remarks
821
- * Used when start type is the explicit point mode. The index must exist in the current patrol path.
822
- *
823
- * @param index - Patrol point index.
824
- */
825
- public start_vertex_index(index: u32): void;
826
-
827
- /**
828
- * Check whether the patrol target is still actual.
829
- *
830
- * @returns Whether the patrol path is actual.
831
- */
832
- public actual(): boolean;
833
- }
834
- /**
835
- * Story id constants used by spawned objects.
836
- *
837
- * @source C++ class spawn_story_ids
838
- * @customConstructor spawn_story_ids
839
- * @group xr_alife
840
- */
841
- export class spawn_story_ids {
842
- /**
843
- * Engine enum value for `spawn_story_ids.INVALID_SPAWN_STORY_ID`.
844
- */
845
- public static readonly INVALID_SPAWN_STORY_ID: -1;
846
-
847
- /**
848
- * Engine-owned spawn story id constants.
849
- */
850
- private constructor();
851
- }
852
-
853
- /**
854
- * Story id constants used by scripts.
855
- *
856
- * @source C++ class story_ids
857
- * @customConstructor story_ids
858
- * @group xr_alife
859
- */
860
- export class story_ids {
861
- /**
862
- * Engine enum value for `story_ids.INVALID_STORY_ID`.
863
- */
864
- public static readonly INVALID_STORY_ID: -1;
865
- /**
866
- * Engine enum value for `story_ids.Invalid`.
867
- */
868
- public static readonly Invalid: 65535;
869
- /**
870
- * Engine enum value for `story_ids.test_01`.
871
- */
872
- public static readonly test_01: 65000;
873
- /**
874
- * Engine enum value for `story_ids.test_02`.
875
- */
876
- public static readonly test_02: 65001;
877
- /**
878
- * Engine enum value for `story_ids.test_03`.
879
- */
880
- public static readonly test_03: 65002;
881
- /**
882
- * Engine enum value for `story_ids.test_04`.
883
- */
884
- public static readonly test_04: 65003;
885
- /**
886
- * Engine enum value for `story_ids.test_05`.
887
- */
888
- public static readonly test_05: 65004;
889
- }
890
-
891
- /**
892
- * Client-side spawn manager binding.
893
- *
894
- * @source C++ class client_spawn_manager
895
- * @customConstructor client_spawn_manager
896
- * @group xr_alife
897
- */
898
- export class client_spawn_manager {
899
- /**
900
- * Remove a delayed spawn callback.
901
- *
902
- * @param parent_id - Parent object id.
903
- * @param object_id - Delayed object id.
904
- */
905
- public remove(parent_id: u16, object_id: u16): void;
906
-
907
- /**
908
- * Register a callback for a delayed client spawn.
909
- *
910
- * @param parent_id - Parent object id.
911
- * @param object_id - Object id waiting for spawn.
912
- * @param cb - Callback called when the object is available.
913
- */
914
- public add(parent_id: u16, object_id: u16, cb: (this: void) => void): void;
915
-
916
- /**
917
- * Register a callback with user data for a delayed client spawn.
918
- *
919
- * @param parent_id - Parent object id.
920
- * @param object_id - Object id waiting for spawn.
921
- * @param cb - Callback called when the object is available.
922
- * @param object - Extra Lua object passed through the callback registry.
923
- */
924
- public add(parent_id: u16, object_id: u16, cb: (this: void) => void, object: XR_object): void;
925
- }
926
-
927
- /**
928
- * Engine class id constants.
929
- *
930
- * @source C++ class clsid
931
- * @customConstructor clsid
932
- * @group xr_alife
933
- */
934
- export class clsid {
935
- /**
936
- * Engine enum value for `clsid.actor`.
937
- */
938
- public static readonly actor: 90;
939
- /**
940
- * Engine enum value for `clsid.art_bast_artefact`.
941
- */
942
- public static readonly art_bast_artefact: 0;
943
- /**
944
- * Engine enum value for `clsid.art_black_drops`.
945
- */
946
- public static readonly art_black_drops: 1;
947
- /**
948
- * Engine enum value for `clsid.art_cta`.
949
- */
950
- public static readonly art_cta: 3;
951
- /**
952
- * Engine enum value for `clsid.art_dummy`.
953
- */
954
- public static readonly art_dummy: 4;
955
- /**
956
- * Engine enum value for `clsid.art_electric_ball`.
957
- */
958
- public static readonly art_electric_ball: 5;
959
- /**
960
- * Engine enum value for `clsid.art_faded_ball`.
961
- */
962
- public static readonly art_faded_ball: 6;
963
- /**
964
- * Engine enum value for `clsid.art_galantine`.
965
- */
966
- public static readonly art_galantine: 7;
967
- /**
968
- * Engine enum value for `clsid.art_gravi`.
969
- */
970
- public static readonly art_gravi: 8;
971
- /**
972
- * Engine enum value for `clsid.art_gravi_black`.
973
- */
974
- public static readonly art_gravi_black: 2;
975
- /**
976
- * Engine enum value for `clsid.art_mercury_ball`.
977
- */
978
- public static readonly art_mercury_ball: 9;
979
- /**
980
- * Engine enum value for `clsid.art_needles`.
981
- */
982
- public static readonly art_needles: 10;
983
- /**
984
- * Engine enum value for `clsid.art_rusty_hair`.
985
- */
986
- public static readonly art_rusty_hair: 11;
987
- /**
988
- * Engine enum value for `clsid.art_thorn`.
989
- */
990
- public static readonly art_thorn: 12;
991
- /**
992
- * Engine enum value for `clsid.art_zuda`.
993
- */
994
- public static readonly art_zuda: 13;
995
- /**
996
- * Engine enum value for `clsid.artefact`.
997
- */
998
- public static readonly artefact: 41;
999
- /**
1000
- * Engine enum value for `clsid.artefact_s`.
1001
- */
1002
- public static readonly artefact_s: 102;
1003
- /**
1004
- * Engine enum value for `clsid.bloodsucker`.
1005
- */
1006
- public static readonly bloodsucker: 14;
1007
- /**
1008
- * Engine enum value for `clsid.bloodsucker_s`.
1009
- */
1010
- public static readonly bloodsucker_s: 108;
1011
- /**
1012
- * Engine enum value for `clsid.boar`.
1013
- */
1014
- public static readonly boar: 15;
1015
- /**
1016
- * Engine enum value for `clsid.boar_s`.
1017
- */
1018
- public static readonly boar_s: 109;
1019
- /**
1020
- * Engine enum value for `clsid.burer`.
1021
- */
1022
- public static readonly burer: 16;
1023
- /**
1024
- * Engine enum value for `clsid.burer_s`.
1025
- */
1026
- public static readonly burer_s: 110;
1027
- /**
1028
- * Engine enum value for `clsid.car`.
1029
- */
1030
- public static readonly car: 52;
1031
- /**
1032
- * Engine enum value for `clsid.cat`.
1033
- */
1034
- public static readonly cat: 17;
1035
- /**
1036
- * Engine enum value for `clsid.cat_s`.
1037
- */
1038
- public static readonly cat_s: 111;
1039
- /**
1040
- * Engine enum value for `clsid.chimera`.
1041
- */
1042
- public static readonly chimera: 29;
1043
- /**
1044
- * Engine enum value for `clsid.chimera_s`.
1045
- */
1046
- public static readonly chimera_s: 112;
1047
- /**
1048
- * Engine enum value for `clsid.controller`.
1049
- */
1050
- public static readonly controller: 18;
1051
- /**
1052
- * Engine enum value for `clsid.controller_s`.
1053
- */
1054
- public static readonly controller_s: 113;
1055
- /**
1056
- * Engine enum value for `clsid.crow`.
1057
- */
1058
- public static readonly crow: 19;
1059
- /**
1060
- * Engine enum value for `clsid.destrphys_s`.
1061
- */
1062
- public static readonly destrphys_s: 93;
1063
- /**
1064
- * Engine enum value for `clsid.device_detector_advanced`.
1065
- */
1066
- public static readonly device_detector_advanced: 53;
1067
- /**
1068
- * Engine enum value for `clsid.device_detector_elite`.
1069
- */
1070
- public static readonly device_detector_elite: 54;
1071
- /**
1072
- * Engine enum value for `clsid.device_detector_scientific`.
1073
- */
1074
- public static readonly device_detector_scientific: 57;
1075
- /**
1076
- * Engine enum value for `clsid.detector_scientific_s`.
1077
- */
1078
- public static readonly detector_scientific_s: -1;
1079
- /**
1080
- * Engine enum value for `clsid.device_detector_simple`.
1081
- */
1082
- public static readonly device_detector_simple: 58;
1083
- /**
1084
- * Engine enum value for `clsid.device_flare`.
1085
- */
1086
- public static readonly device_flare: 55;
1087
- /**
1088
- * Engine enum value for `clsid.device_pda`.
1089
- */
1090
- public static readonly device_pda: 56;
1091
- /**
1092
- * Engine enum value for `clsid.device_torch`.
1093
- */
1094
- public static readonly device_torch: 59;
1095
- /**
1096
- * Engine enum value for `clsid.device_torch_s`.
1097
- */
1098
- public static readonly device_torch_s: 146;
1099
- /**
1100
- * Engine enum value for `clsid.dog_black`.
1101
- */
1102
- public static readonly dog_black: 20;
1103
- /**
1104
- * Engine enum value for `clsid.dog_red`.
1105
- */
1106
- public static readonly dog_red: 23;
1107
- /**
1108
- * Engine enum value for `clsid.dog_s`.
1109
- */
1110
- public static readonly dog_s: 116;
1111
- /**
1112
- * Engine enum value for `clsid.equ_exo`.
1113
- */
1114
- public static readonly equ_exo: 60;
1115
- /**
1116
- * Engine enum value for `clsid.equ_military`.
1117
- */
1118
- public static readonly equ_military: 61;
1119
- /**
1120
- * Engine enum value for `clsid.equ_scientific`.
1121
- */
1122
- public static readonly equ_scientific: 62;
1123
- /**
1124
- * Engine enum value for `clsid.equ_stalker`.
1125
- */
1126
- public static readonly equ_stalker: 63;
1127
- /**
1128
- * Engine enum value for `clsid.equ_stalker_s`.
1129
- */
1130
- public static readonly equ_stalker_s: 65;
1131
- /**
1132
- * Engine enum value for `clsid.equ_helmet_s`.
1133
- */
1134
- public static readonly equ_helmet_s: 70;
1135
- /**
1136
- * Engine enum value for `clsid.flesh`.
1137
- */
1138
- public static readonly flesh: 24;
1139
- /**
1140
- * Engine enum value for `clsid.flesh_group`.
1141
- */
1142
- public static readonly flesh_group: 25;
1143
- /**
1144
- * Engine enum value for `clsid.flesh_s`.
1145
- */
1146
- public static readonly flesh_s: 117;
1147
- /**
1148
- * Engine enum value for `clsid.fracture`.
1149
- */
1150
- public static readonly fracture: 26;
1151
- /**
1152
- * Engine enum value for `clsid.fracture_s`.
1153
- */
1154
- public static readonly fracture_s: 119;
1155
- /**
1156
- * Engine enum value for `clsid.game`.
1157
- */
1158
- public static readonly game: 70;
1159
- /**
1160
- * Engine enum value for `clsid.game_cl_artefact_hunt`.
1161
- */
1162
- public static readonly game_cl_artefact_hunt: 45;
1163
- /**
1164
- * Engine enum value for `clsid.game_cl_capture_the_artefact`.
1165
- */
1166
- public static readonly game_cl_capture_the_artefact: 46;
1167
- /**
1168
- * Engine enum value for `clsid.game_cl_deathmatch`.
1169
- */
1170
- public static readonly game_cl_deathmatch: 47;
1171
- /**
1172
- * Engine enum value for `clsid.game_cl_single`.
1173
- */
1174
- public static readonly game_cl_single: 48;
1175
- /**
1176
- * Engine enum value for `clsid.game_cl_team_deathmatch`.
1177
- */
1178
- public static readonly game_cl_team_deathmatch: 49;
1179
- /**
1180
- * Engine enum value for `clsid.game_sv_artefact_hunt`.
1181
- */
1182
- public static readonly game_sv_artefact_hunt: 129;
1183
- /**
1184
- * Engine enum value for `clsid.game_sv_capture_the_artefact`.
1185
- */
1186
- public static readonly game_sv_capture_the_artefact: 130;
1187
- /**
1188
- * Engine enum value for `clsid.game_sv_deathmatch`.
1189
- */
1190
- public static readonly game_sv_deathmatch: 131;
1191
- /**
1192
- * Engine enum value for `clsid.game_sv_single`.
1193
- */
1194
- public static readonly game_sv_single: 132;
1195
- /**
1196
- * Engine enum value for `clsid.game_sv_team_deathmatch`.
1197
- */
1198
- public static readonly game_sv_team_deathmatch: 133;
1199
- /**
1200
- * Engine enum value for `clsid.game_ui_artefact_hunt`.
1201
- */
1202
- public static readonly game_ui_artefact_hunt: 147;
1203
- /**
1204
- * Engine enum value for `clsid.game_ui_capture_the_artefact`.
1205
- */
1206
- public static readonly game_ui_capture_the_artefact: 148;
1207
- /**
1208
- * Engine enum value for `clsid.game_ui_deathmatch`.
1209
- */
1210
- public static readonly game_ui_deathmatch: 149;
1211
- /**
1212
- * Engine enum value for `clsid.game_ui_single`.
1213
- */
1214
- public static readonly game_ui_single: 150;
1215
- /**
1216
- * Engine enum value for `clsid.game_ui_team_deathmatch`.
1217
- */
1218
- public static readonly game_ui_team_deathmatch: 151;
1219
- /**
1220
- * Engine enum value for `clsid.gigant_s`.
1221
- */
1222
- public static readonly gigant_s: 118;
1223
- /**
1224
- * Engine enum value for `clsid.graph_point`.
1225
- */
1226
- public static readonly graph_point: 28;
1227
- /**
1228
- * Engine enum value for `clsid.hanging_lamp`.
1229
- */
1230
- public static readonly hanging_lamp: 94;
1231
- /**
1232
- * Engine enum value for `clsid.helicopter`.
1233
- */
1234
- public static readonly helicopter: 50;
1235
- /**
1236
- * Engine enum value for `clsid.helmet`.
1237
- */
1238
- public static readonly helmet: 64;
1239
- /**
1240
- * Engine enum value for `clsid.hlamp_s`.
1241
- */
1242
- public static readonly hlamp_s: 125;
1243
- /**
1244
- * Engine enum value for `clsid.hud_manager`.
1245
- */
1246
- public static readonly hud_manager: 74;
1247
- /**
1248
- * Engine enum value for `clsid.inventory_box`.
1249
- */
1250
- public static readonly inventory_box: 95;
1251
- /**
1252
- * Engine enum value for `clsid.inventory_box_s`.
1253
- */
1254
- public static readonly inventory_box_s: 140;
1255
- /**
1256
- * Engine enum value for `clsid.level`.
1257
- */
1258
- public static readonly level: 69;
1259
- /**
1260
- * Engine enum value for `clsid.level_changer`.
1261
- */
1262
- public static readonly level_changer: 84;
1263
- /**
1264
- * Engine enum value for `clsid.level_changer_s`.
1265
- */
1266
- public static readonly level_changer_s: 85;
1267
- /**
1268
- * Engine enum value for `clsid.main_menu`.
1269
- */
1270
- public static readonly main_menu: 86;
1271
- /**
1272
- * Engine enum value for `clsid.mp_players_bag`.
1273
- */
1274
- public static readonly mp_players_bag: 87;
1275
- /**
1276
- * Engine enum value for `clsid.nogravity_zone`.
1277
- */
1278
- public static readonly nogravity_zone: 211;
1279
- /**
1280
- * Engine enum value for `clsid.obj_antirad`.
1281
- */
1282
- public static readonly obj_antirad: 75;
1283
- /**
1284
- * Engine enum value for `clsid.obj_antirad_s`.
1285
- */
1286
- public static readonly obj_antirad_s: 135;
1287
- /**
1288
- * Engine enum value for `clsid.obj_attachable`.
1289
- */
1290
- public static readonly obj_attachable: 76;
1291
- /**
1292
- * Engine enum value for `clsid.obj_bandage`.
1293
- */
1294
- public static readonly obj_bandage: 77;
1295
- /**
1296
- * Engine enum value for `clsid.obj_bandage_s`.
1297
- */
1298
- public static readonly obj_bandage_s: 136;
1299
- /**
1300
- * Engine enum value for `clsid.obj_bolt`.
1301
- */
1302
- public static readonly obj_bolt: 78;
1303
- /**
1304
- * Engine enum value for `clsid.obj_bottle`.
1305
- */
1306
- public static readonly obj_bottle: 79;
1307
- /**
1308
- * Engine enum value for `clsid.obj_bottle_s`.
1309
- */
1310
- public static readonly obj_bottle_s: 137;
1311
- /**
1312
- * Engine enum value for `clsid.obj_breakable`.
1313
- */
1314
- public static readonly obj_breakable: 91;
1315
- /**
1316
- * Engine enum value for `clsid.obj_climable`.
1317
- */
1318
- public static readonly obj_climable: 92;
1319
- /**
1320
- * Engine enum value for `clsid.obj_document`.
1321
- */
1322
- public static readonly obj_document: 80;
1323
- /**
1324
- * Engine enum value for `clsid.obj_explosive`.
1325
- */
1326
- public static readonly obj_explosive: 81;
1327
- /**
1328
- * Engine enum value for `clsid.obj_explosive_s`.
1329
- */
1330
- public static readonly obj_explosive_s: 138;
1331
- /**
1332
- * Engine enum value for `clsid.obj_food`.
1333
- */
1334
- public static readonly obj_food: 82;
1335
- /**
1336
- * Engine enum value for `clsid.obj_food_s`.
1337
- */
1338
- public static readonly obj_food_s: 139;
1339
- /**
1340
- * Engine enum value for `clsid.obj_medkit`.
1341
- */
1342
- public static readonly obj_medkit: 83;
1343
- /**
1344
- * Engine enum value for `clsid.obj_medkit_s`.
1345
- */
1346
- public static readonly obj_medkit_s: 142;
1347
- /**
1348
- * Engine enum value for `clsid.obj_pda_s`.
1349
- */
1350
- public static readonly obj_pda_s: 144;
1351
- /**
1352
- * Engine enum value for `clsid.obj_phskeleton`.
1353
- */
1354
- public static readonly obj_phskeleton: 100;
1355
- /**
1356
- * Engine enum value for `clsid.obj_phys_destroyable`.
1357
- */
1358
- public static readonly obj_phys_destroyable: 99;
1359
- /**
1360
- * Engine enum value for `clsid.obj_physic`.
1361
- */
1362
- public static readonly obj_physic: 96;
1363
- /**
1364
- * Engine enum value for `clsid.online_offline_group`.
1365
- */
1366
- public static readonly online_offline_group: 88;
1367
- /**
1368
- * Engine enum value for `clsid.online_offline_group_s`.
1369
- */
1370
- public static readonly online_offline_group_s: 89;
1371
- /**
1372
- * Engine enum value for `clsid.phantom`.
1373
- */
1374
- public static readonly phantom: 30;
1375
- /**
1376
- * Engine enum value for `clsid.poltergeist`.
1377
- */
1378
- public static readonly poltergeist: 31;
1379
- /**
1380
- * Engine enum value for `clsid.poltergeist_s`.
1381
- */
1382
- public static readonly poltergeist_s: 120;
1383
- /**
1384
- * Engine enum value for `clsid.projector`.
1385
- */
1386
- public static readonly projector: 98;
1387
- /**
1388
- * Engine enum value for `clsid.pseudo_gigant`.
1389
- */
1390
- public static readonly pseudo_gigant: 27;
1391
- /**
1392
- * Engine enum value for `clsid.pseudodog_s`.
1393
- */
1394
- public static readonly pseudodog_s: 121;
1395
- /**
1396
- * Engine enum value for `clsid.psy_dog`.
1397
- */
1398
- public static readonly psy_dog: 22;
1399
- /**
1400
- * Engine enum value for `clsid.psy_dog_phantom`.
1401
- */
1402
- public static readonly psy_dog_phantom: 21;
1403
- /**
1404
- * Engine enum value for `clsid.psy_dog_phantom_s`.
1405
- */
1406
- public static readonly psy_dog_phantom_s: 114;
1407
- /**
1408
- * Engine enum value for `clsid.psy_dog_s`.
1409
- */
1410
- public static readonly psy_dog_s: 115;
1411
- /**
1412
- * Engine enum value for `clsid.rat`.
1413
- */
1414
- public static readonly rat: 32;
1415
- /**
1416
- * Engine enum value for `clsid.script_actor`.
1417
- */
1418
- public static readonly script_actor: 134;
1419
- /**
1420
- * Engine enum value for `clsid.script_heli`.
1421
- */
1422
- public static readonly script_heli: 51;
1423
- /**
1424
- * Engine enum value for `clsid.script_object`.
1425
- */
1426
- public static readonly script_object: 103;
1427
- /**
1428
- * Engine enum value for `clsid.script_phys`.
1429
- */
1430
- public static readonly script_phys: 97;
1431
- /**
1432
- * Engine enum value for `clsid.script_restr`.
1433
- */
1434
- public static readonly script_restr: 127;
1435
- /**
1436
- * Engine enum value for `clsid.script_stalker`.
1437
- */
1438
- public static readonly script_stalker: 35;
1439
- /**
1440
- * Engine enum value for `clsid.script_zone`.
1441
- */
1442
- public static readonly script_zone: 101;
1443
- /**
1444
- * Engine enum value for `clsid.smart_cover`.
1445
- */
1446
- public static readonly smart_cover: 104;
1447
- /**
1448
- * Engine enum value for `clsid.smart_terrain`.
1449
- */
1450
- public static readonly smart_terrain: 105;
1451
- /**
1452
- * Engine enum value for `clsid.smart_zone`.
1453
- */
1454
- public static readonly smart_zone: 106;
1455
- /**
1456
- * Engine enum value for `clsid.smartcover_s`.
1457
- */
1458
- public static readonly smartcover_s: 107;
1459
- /**
1460
- * Engine enum value for `clsid.snork`.
1461
- */
1462
- public static readonly snork: 33;
1463
- /**
1464
- * Engine enum value for `clsid.snork_s`.
1465
- */
1466
- public static readonly snork_s: 122;
1467
- /**
1468
- * Engine enum value for `clsid.space_restrictor`.
1469
- */
1470
- public static readonly space_restrictor: 126;
1471
- /**
1472
- * Engine enum value for `clsid.spectator`.
1473
- */
1474
- public static readonly spectator: 128;
1475
- /**
1476
- * Engine enum value for `clsid.stalker`.
1477
- */
1478
- public static readonly stalker: 34;
1479
- /**
1480
- * Engine enum value for `clsid.team_base_zone`.
1481
- */
1482
- public static readonly team_base_zone: 214;
1483
- /**
1484
- * Engine enum value for `clsid.torrid_zone`.
1485
- */
1486
- public static readonly torrid_zone: 215;
1487
- /**
1488
- * Engine enum value for `clsid.trader`.
1489
- */
1490
- public static readonly trader: 36;
1491
- /**
1492
- * Engine enum value for `clsid.tushkano`.
1493
- */
1494
- public static readonly tushkano: 37;
1495
- /**
1496
- * Engine enum value for `clsid.tushkano_s`.
1497
- */
1498
- public static readonly tushkano_s: 123;
1499
- /**
1500
- * Engine enum value for `clsid.wpn_ak74`.
1501
- */
1502
- public static readonly wpn_ak74: 173;
1503
- /**
1504
- * Engine enum value for `clsid.wpn_ak74_s`.
1505
- */
1506
- public static readonly wpn_ak74_s: 152;
1507
- /**
1508
- * Engine enum value for `clsid.wpn_ammo`.
1509
- */
1510
- public static readonly wpn_ammo: 39;
1511
- /**
1512
- * Engine enum value for `clsid.wpn_ammo_m209`.
1513
- */
1514
- public static readonly wpn_ammo_m209: 42;
1515
- /**
1516
- * Engine enum value for `clsid.wpn_ammo_m209_s`.
1517
- */
1518
- public static readonly wpn_ammo_m209_s: 141;
1519
- /**
1520
- * Engine enum value for `clsid.wpn_ammo_og7b`.
1521
- */
1522
- public static readonly wpn_ammo_og7b: 43;
1523
- /**
1524
- * Engine enum value for `clsid.wpn_ammo_og7b_s`.
1525
- */
1526
- public static readonly wpn_ammo_og7b_s: 143;
1527
- /**
1528
- * Engine enum value for `clsid.wpn_ammo_s`.
1529
- */
1530
- public static readonly wpn_ammo_s: 40;
1531
- /**
1532
- * Engine enum value for `clsid.wpn_ammo_vog25`.
1533
- */
1534
- public static readonly wpn_ammo_vog25: 44;
1535
- /**
1536
- * Engine enum value for `clsid.wpn_ammo_vog25_s`.
1537
- */
1538
- public static readonly wpn_ammo_vog25_s: 145;
1539
- /**
1540
- * Engine enum value for `clsid.wpn_auto_shotgun_s`.
1541
- */
1542
- public static readonly wpn_auto_shotgun_s: 153;
1543
- /**
1544
- * Engine enum value for `clsid.wpn_binocular`.
1545
- */
1546
- public static readonly wpn_binocular: 174;
1547
- /**
1548
- * Engine enum value for `clsid.wpn_binocular_s`.
1549
- */
1550
- public static readonly wpn_binocular_s: 154;
1551
- /**
1552
- * Engine enum value for `clsid.wpn_bm16`.
1553
- */
1554
- public static readonly wpn_bm16: 175;
1555
- /**
1556
- * Engine enum value for `clsid.wpn_bm16_s`.
1557
- */
1558
- public static readonly wpn_bm16_s: 155;
1559
- /**
1560
- * Engine enum value for `clsid.wpn_fn2000`.
1561
- */
1562
- public static readonly wpn_fn2000: 176;
1563
- /**
1564
- * Engine enum value for `clsid.wpn_fort`.
1565
- */
1566
- public static readonly wpn_fort: 177;
1567
- /**
1568
- * Engine enum value for `clsid.wpn_grenade_f1`.
1569
- */
1570
- public static readonly wpn_grenade_f1: 66;
1571
- /**
1572
- * Engine enum value for `clsid.wpn_grenade_f1_s`.
1573
- */
1574
- public static readonly wpn_grenade_f1_s: 67;
1575
- /**
1576
- * Engine enum value for `clsid.wpn_grenade_fake`.
1577
- */
1578
- public static readonly wpn_grenade_fake: 68;
1579
- /**
1580
- * Engine enum value for `clsid.wpn_grenade_launcher`.
1581
- */
1582
- public static readonly wpn_grenade_launcher: 178;
1583
- /**
1584
- * Engine enum value for `clsid.wpn_grenade_launcher_s`.
1585
- */
1586
- public static readonly wpn_grenade_launcher_s: 156;
1587
- /**
1588
- * Engine enum value for `clsid.wpn_grenade_rgd5`.
1589
- */
1590
- public static readonly wpn_grenade_rgd5: 71;
1591
- /**
1592
- * Engine enum value for `clsid.wpn_grenade_rgd5_s`.
1593
- */
1594
- public static readonly wpn_grenade_rgd5_s: 72;
1595
- /**
1596
- * Engine enum value for `clsid.wpn_grenade_rpg7`.
1597
- */
1598
- public static readonly wpn_grenade_rpg7: 73;
1599
- /**
1600
- * Engine enum value for `clsid.wpn_groza`.
1601
- */
1602
- public static readonly wpn_groza: 179;
1603
- /**
1604
- * Engine enum value for `clsid.wpn_groza_s`.
1605
- */
1606
- public static readonly wpn_groza_s: 157;
1607
- /**
1608
- * Engine enum value for `clsid.wpn_hpsa`.
1609
- */
1610
- public static readonly wpn_hpsa: 180;
1611
- /**
1612
- * Engine enum value for `clsid.wpn_hpsa_s`.
1613
- */
1614
- public static readonly wpn_hpsa_s: 158;
1615
- /**
1616
- * Engine enum value for `clsid.wpn_knife`.
1617
- */
1618
- public static readonly wpn_knife: 181;
1619
- /**
1620
- * Engine enum value for `clsid.wpn_knife_s`.
1621
- */
1622
- public static readonly wpn_knife_s: 159;
1623
- /**
1624
- * Engine enum value for `clsid.wpn_lr300`.
1625
- */
1626
- public static readonly wpn_lr300: 182;
1627
- /**
1628
- * Engine enum value for `clsid.wpn_lr300_s`.
1629
- */
1630
- public static readonly wpn_lr300_s: 160;
1631
- /**
1632
- * Engine enum value for `clsid.wpn_pm`.
1633
- */
1634
- public static readonly wpn_pm: 183;
1635
- /**
1636
- * Engine enum value for `clsid.wpn_pm_s`.
1637
- */
1638
- public static readonly wpn_pm_s: 161;
1639
- /**
1640
- * Engine enum value for `clsid.wpn_rg6`.
1641
- */
1642
- public static readonly wpn_rg6: 184;
1643
- /**
1644
- * Engine enum value for `clsid.wpn_rg6_s`.
1645
- */
1646
- public static readonly wpn_rg6_s: 162;
1647
- /**
1648
- * Engine enum value for `clsid.wpn_rpg7`.
1649
- */
1650
- public static readonly wpn_rpg7: 185;
1651
- /**
1652
- * Engine enum value for `clsid.wpn_rpg7_s`.
1653
- */
1654
- public static readonly wpn_rpg7_s: 163;
1655
- /**
1656
- * Engine enum value for `clsid.wpn_scope`.
1657
- */
1658
- public static readonly wpn_scope: 186;
1659
- /**
1660
- * Engine enum value for `clsid.wpn_scope_s`.
1661
- */
1662
- public static readonly wpn_scope_s: 164;
1663
- /**
1664
- * Engine enum value for `clsid.wpn_shotgun`.
1665
- */
1666
- public static readonly wpn_shotgun: 187;
1667
- /**
1668
- * Engine enum value for `clsid.wpn_shotgun_s`.
1669
- */
1670
- public static readonly wpn_shotgun_s: 165;
1671
- /**
1672
- * Engine enum value for `clsid.wpn_silencer`.
1673
- */
1674
- public static readonly wpn_silencer: 188;
1675
- /**
1676
- * Engine enum value for `clsid.wpn_silencer_s`.
1677
- */
1678
- public static readonly wpn_silencer_s: 166;
1679
- /**
1680
- * Engine enum value for `clsid.wpn_stat_mgun`.
1681
- */
1682
- public static readonly wpn_stat_mgun: 189;
1683
- /**
1684
- * Engine enum value for `clsid.wpn_svd`.
1685
- */
1686
- public static readonly wpn_svd: 190;
1687
- /**
1688
- * Engine enum value for `clsid.wpn_svd_s`.
1689
- */
1690
- public static readonly wpn_svd_s: 167;
1691
- /**
1692
- * Engine enum value for `clsid.wpn_svu`.
1693
- */
1694
- public static readonly wpn_svu: 191;
1695
- /**
1696
- * Engine enum value for `clsid.wpn_svu_s`.
1697
- */
1698
- public static readonly wpn_svu_s: 168;
1699
- /**
1700
- * Engine enum value for `clsid.wpn_usp45`.
1701
- */
1702
- public static readonly wpn_usp45: 192;
1703
- /**
1704
- * Engine enum value for `clsid.wpn_usp45_s`.
1705
- */
1706
- public static readonly wpn_usp45_s: 169;
1707
- /**
1708
- * Engine enum value for `clsid.wpn_val`.
1709
- */
1710
- public static readonly wpn_val: 193;
1711
- /**
1712
- * Engine enum value for `clsid.wpn_val_s`.
1713
- */
1714
- public static readonly wpn_val_s: 170;
1715
- /**
1716
- * Engine enum value for `clsid.wpn_vintorez`.
1717
- */
1718
- public static readonly wpn_vintorez: 194;
1719
- /**
1720
- * Engine enum value for `clsid.wpn_vintorez_s`.
1721
- */
1722
- public static readonly wpn_vintorez_s: 171;
1723
- /**
1724
- * Engine enum value for `clsid.wpn_walther`.
1725
- */
1726
- public static readonly wpn_walther: 195;
1727
- /**
1728
- * Engine enum value for `clsid.wpn_walther_s`.
1729
- */
1730
- public static readonly wpn_walther_s: 172;
1731
- /**
1732
- * Engine enum value for `clsid.wpn_wmagaz`.
1733
- */
1734
- public static readonly wpn_wmagaz: 196;
1735
- /**
1736
- * Engine enum value for `clsid.wpn_wmaggl`.
1737
- */
1738
- public static readonly wpn_wmaggl: 197;
1739
- /**
1740
- * Engine enum value for `clsid.zombie`.
1741
- */
1742
- public static readonly zombie: 38;
1743
- /**
1744
- * Engine enum value for `clsid.zombie_s`.
1745
- */
1746
- public static readonly zombie_s: 124;
1747
- /**
1748
- * Engine enum value for `clsid.zone`.
1749
- */
1750
- public static readonly zone: 216;
1751
- /**
1752
- * Engine enum value for `clsid.zone_acid_fog`.
1753
- */
1754
- public static readonly zone_acid_fog: 204;
1755
- /**
1756
- * Engine enum value for `clsid.zone_bfuzz`.
1757
- */
1758
- public static readonly zone_bfuzz: 205;
1759
- /**
1760
- * Engine enum value for `clsid.zone_bfuzz_s`.
1761
- */
1762
- public static readonly zone_bfuzz_s: 198;
1763
- /**
1764
- * Engine enum value for `clsid.zone_campfire`.
1765
- */
1766
- public static readonly zone_campfire: 206;
1767
- /**
1768
- * Engine enum value for `clsid.zone_dead`.
1769
- */
1770
- public static readonly zone_dead: 207;
1771
- /**
1772
- * Engine enum value for `clsid.zone_galant_s`.
1773
- */
1774
- public static readonly zone_galant_s: 199;
1775
- /**
1776
- * Engine enum value for `clsid.zone_galantine`.
1777
- */
1778
- public static readonly zone_galantine: 208;
1779
- /**
1780
- * Engine enum value for `clsid.zone_mbald_s`.
1781
- */
1782
- public static readonly zone_mbald_s: 200;
1783
- /**
1784
- * Engine enum value for `clsid.zone_mincer`.
1785
- */
1786
- public static readonly zone_mincer: 210;
1787
- /**
1788
- * Engine enum value for `clsid.zone_mincer_s`.
1789
- */
1790
- public static readonly zone_mincer_s: 201;
1791
- /**
1792
- * Engine enum value for `clsid.zone_mosquito_bald`.
1793
- */
1794
- public static readonly zone_mosquito_bald: 209;
1795
- /**
1796
- * Engine enum value for `clsid.zone_radio_s`.
1797
- */
1798
- public static readonly zone_radio_s: 202;
1799
- /**
1800
- * Engine enum value for `clsid.zone_radioactive`.
1801
- */
1802
- public static readonly zone_radioactive: 212;
1803
- /**
1804
- * Engine enum value for `clsid.zone_rusty_hair`.
1805
- */
1806
- public static readonly zone_rusty_hair: 213;
1807
- /**
1808
- * Engine enum value for `clsid.zone_torrid_s`.
1809
- */
1810
- public static readonly zone_torrid_s: 203;
1811
- }
1812
-
1813
- /**
1814
- * @group xr_alife
1815
- */
1816
- type TXR_class_key = EnumeratedStaticsKeys<typeof clsid>;
1817
-
1818
- /**
1819
- * @group xr_alife
1820
- */
1821
- type TXR_class_id = EnumeratedStaticsValues<typeof clsid>;
1822
-
1823
- /**
1824
- * Factory for ALife server object bindings.
1825
- *
1826
- * @source C++ class global
1827
- * @customConstructor object_factory
1828
- * @group xr_alife
1829
- *
1830
- * @remarks
1831
- * Registers Lua script classes for engine class ids. Missing Lua class constructors are logged and skipped.
1832
- */
1833
- export class object_factory {
1834
- /**
1835
- * Engine-owned object factory.
1836
- */
1837
- protected constructor();
1838
-
1839
- /**
1840
- * Register a script class pair for an engine class id.
1841
- *
1842
- * @param client_object_class - Lua client-side class name.
1843
- * @param server_object_class - Lua server-side class name.
1844
- * @param clsid - Engine class id name.
1845
- * @param script_clsid - Script class id exported by `clsid`.
1846
- */
1847
- public register(
1848
- client_object_class: string,
1849
- server_object_class: string,
1850
- clsid: string,
1851
- script_clsid: TXR_class_key
1852
- ): void;
1853
-
1854
- /**
1855
- * Register a single script class for an engine class id.
1856
- *
1857
- * @param client_object_class - Lua class name.
1858
- * @param clsid - Engine class id name.
1859
- * @param script_clsid - Script class id exported by `clsid`.
1860
- */
1861
- public register(client_object_class: string, clsid: string, script_clsid: TXR_class_key): void;
1862
- }
1863
-
1864
- /**
1865
- * Get the active ALife simulator.
1866
- *
1867
- * @group xr_alife
1868
- *
1869
- * @returns ALife simulator singleton.
1870
- */
1871
- export function alife(this: void): alife_simulator;
1872
- }