xray16 1.3.4 → 1.5.0

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 (84) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +112 -106
  3. package/package.json +45 -42
  4. package/plugins/built_at_info.d.ts +1 -1
  5. package/plugins/from_cast_utils.d.ts +1 -1
  6. package/plugins/global_declarations_transform.d.ts +1 -1
  7. package/plugins/inject_file_meta.d.ts +1 -1
  8. package/plugins/inject_tracy_zones.d.ts +1 -1
  9. package/plugins/inject_tracy_zones.js +2 -2
  10. package/plugins/strip_lua_logger.d.ts +1 -1
  11. package/plugins/strip_lua_logger.js +1 -1
  12. package/plugins/transform_luabind_class/plugin.d.ts +1 -1
  13. package/plugins/transform_luabind_class/transformation/class_declaration.d.ts +3 -3
  14. package/plugins/transform_luabind_class/transformation/decorators.d.ts +5 -2
  15. package/plugins/transform_luabind_class/transformation/decorators.js +3 -0
  16. package/plugins/transform_luabind_class/transformation/members/accessors.d.ts +1 -1
  17. package/plugins/transform_luabind_class/transformation/members/constructor.d.ts +2 -2
  18. package/plugins/transform_luabind_class/transformation/members/constructor.js +2 -2
  19. package/plugins/transform_luabind_class/transformation/members/fields.d.ts +5 -2
  20. package/plugins/transform_luabind_class/transformation/members/fields.js +5 -2
  21. package/plugins/transform_luabind_class/transformation/members/method.d.ts +6 -3
  22. package/plugins/transform_luabind_class/transformation/members/method.js +4 -1
  23. package/plugins/transform_luabind_class/transformation/new.d.ts +7 -3
  24. package/plugins/transform_luabind_class/transformation/new.js +5 -1
  25. package/plugins/transform_luabind_class/transformation/setup.d.ts +9 -3
  26. package/plugins/transform_luabind_class/transformation/setup.js +22 -6
  27. package/plugins/transform_luabind_class/transformation/super.d.ts +19 -3
  28. package/plugins/transform_luabind_class/transformation/super.js +17 -1
  29. package/plugins/transform_luabind_class/transformation/utils.d.ts +27 -4
  30. package/plugins/transform_luabind_class/transformation/utils.js +25 -2
  31. package/plugins/utils/ast.d.ts +1 -1
  32. package/plugins/utils/diagnostics.d.ts +9 -5
  33. package/plugins/utils/diagnostics.js +5 -1
  34. package/plugins/utils/tracy.d.ts +1 -1
  35. package/types/index.d.ts +55 -55
  36. package/types/xr_ai/xr_action.d.ts +1802 -510
  37. package/types/xr_ai/xr_alife.d.ts +1870 -566
  38. package/types/xr_ai/xr_enemy_evaluation.d.ts +134 -41
  39. package/types/xr_ai/xr_goap.d.ts +1116 -668
  40. package/types/xr_ai/xr_graph.d.ts +135 -47
  41. package/types/xr_ai/xr_memory.d.ts +382 -148
  42. package/types/xr_lib/xr_animation.d.ts +252 -81
  43. package/types/xr_lib/xr_bitwise.d.ts +44 -21
  44. package/types/xr_lib/xr_color.d.ts +142 -40
  45. package/types/xr_lib/xr_debug.d.ts +181 -77
  46. package/types/xr_lib/xr_dialog.d.ts +132 -40
  47. package/types/xr_lib/xr_flags.d.ts +592 -148
  48. package/types/xr_lib/xr_fs.d.ts +539 -148
  49. package/types/xr_lib/xr_game.d.ts +362 -158
  50. package/types/xr_lib/xr_hit.d.ts +125 -41
  51. package/types/xr_lib/xr_ini.d.ts +473 -188
  52. package/types/xr_lib/xr_level.d.ts +795 -225
  53. package/types/xr_lib/xr_luabind.d.ts +90 -59
  54. package/types/xr_lib/xr_map.d.ts +192 -61
  55. package/types/xr_lib/xr_math.d.ts +871 -233
  56. package/types/xr_lib/xr_multiplayer.d.ts +1079 -351
  57. package/types/xr_lib/xr_profile.d.ts +272 -160
  58. package/types/xr_lib/xr_properties.d.ts +610 -166
  59. package/types/xr_lib/xr_relation.d.ts +231 -84
  60. package/types/xr_lib/xr_render.d.ts +167 -69
  61. package/types/xr_lib/xr_save.d.ts +833 -223
  62. package/types/xr_lib/xr_sound.d.ts +515 -151
  63. package/types/xr_lib/xr_stats.ts +49 -20
  64. package/types/xr_lib/xr_task.d.ts +388 -111
  65. package/types/xr_lib/xr_time.d.ts +177 -61
  66. package/types/xr_lib/xr_type.d.ts +75 -75
  67. package/types/xr_object/client/xr_anomaly.d.ts +70 -50
  68. package/types/xr_object/client/xr_artefact.d.ts +153 -98
  69. package/types/xr_object/client/xr_client_object.d.ts +207 -76
  70. package/types/xr_object/client/xr_creature.d.ts +243 -164
  71. package/types/xr_object/client/xr_item.d.ts +370 -264
  72. package/types/xr_object/client/xr_level.d.ts +753 -285
  73. package/types/xr_object/client/xr_physic.d.ts +644 -214
  74. package/types/xr_object/client/xr_zone.d.ts +85 -47
  75. package/types/xr_object/script/xr_script_interface.d.ts +819 -584
  76. package/types/xr_object/script/xr_script_object.d.ts +5728 -1390
  77. package/types/xr_object/script/xr_script_trade.d.ts +51 -26
  78. package/types/xr_object/server/xr_server_object.d.ts +1486 -792
  79. package/types/xr_ui/xr_ui_asset.d.ts +364 -123
  80. package/types/xr_ui/xr_ui_core.d.ts +424 -97
  81. package/types/xr_ui/xr_ui_event.d.ts +1449 -381
  82. package/types/xr_ui/xr_ui_interface.d.ts +2447 -903
  83. package/types/xr_ui/xr_ui_menu.d.ts +385 -142
  84. package/types/xrf_plugin.d.ts +89 -51
@@ -1,164 +1,243 @@
1
- declare module "xray16" {
2
- /**
3
- * @source C++ class CEntityAlive : public CEntity
4
- * @customConstructor CEntityAlive
5
- * @group xr_creature
6
- */
7
- export class CEntityAlive extends CGameObject {}
8
-
9
- /**
10
- * @source C++ class CActor : CGameObject
11
- * @customConstructor CActor
12
- * @group xr_creature
13
- */
14
- export class CActor extends CGameObject {}
15
-
16
- /**
17
- * @source C++ class CCustomMonster : CGameObject
18
- * @customConstructor CCustomMonster
19
- * @group xr_creature
20
- */
21
- export class CCustomMonster extends CGameObject {}
22
-
23
- /**
24
- * @source C++ class CInventoryOwner : CGameObject
25
- * @customConstructor CInventoryOwner
26
- * @group xr_creature
27
- */
28
- export class CInventoryOwner extends CGameObject {}
29
-
30
- /**
31
- * @source C++ class CInventoryItem : CGameObject
32
- * @customConstructor CInventoryItem
33
- * @group xr_creature
34
- */
35
- export class CInventoryItem extends CGameObject {}
36
-
37
- /**
38
- * @source C++ class CZombie : CGameObject
39
- * @customConstructor CZombie
40
- * @group xr_creature
41
- */
42
- export class CZombie extends CGameObject {}
43
-
44
- /**
45
- * @source C++ class CController : CGameObject
46
- * @customConstructor CController
47
- * @group xr_creature
48
- */
49
- export class CController extends CGameObject {}
50
-
51
- /**
52
- * @source C++ class CTushkano : CGameObject
53
- * @customConstructor CTushkano
54
- * @group xr_creature
55
- */
56
- export class CTushkano extends CGameObject {}
57
-
58
- /**
59
- * @source C++ class CBurer : CGameObject
60
- * @customConstructor CBurer
61
- * @group xr_creature
62
- */
63
- export class CBurer extends CGameObject {}
64
-
65
- /**
66
- * @source C++ class CCat : CGameObject
67
- * @customConstructor CCat
68
- * @group xr_creature
69
- */
70
- export class CCat extends CGameObject {}
71
-
72
- /**
73
- * @source C++ class CChimera : CGameObject
74
- * @customConstructor CChimera
75
- * @group xr_creature
76
- */
77
- export class CChimera extends CGameObject {}
78
-
79
- /**
80
- * @source C++ class CPoltergeist : CGameObject
81
- * @customConstructor CPoltergeist
82
- * @group xr_creature
83
- */
84
- export class CPoltergeist extends CGameObject {}
85
-
86
- /**
87
- * @source C++ class CPseudoGigant : CGameObject
88
- * @customConstructor CPseudoGigant
89
- * @group xr_creature
90
- */
91
- export class CPseudoGigant extends CGameObject {}
92
-
93
- /**
94
- * @source C++ class CPsyDog : CGameObject
95
- * @customConstructor CPsyDog
96
- * @group xr_creature
97
- */
98
- export class CPsyDog extends CGameObject {}
99
-
100
- /**
101
- * @source C++ class CPsyDogPhantom : CGameObject
102
- * @customConstructor CPsyDogPhantom
103
- * @group xr_creature
104
- */
105
- export class CPsyDogPhantom extends CGameObject {}
106
-
107
- /**
108
- * @source C++ class CAI_Bloodsucker : CGameObject
109
- * @customConstructor CAI_Bloodsucker
110
- * @group xr_creature
111
- */
112
- export class CAI_Bloodsucker extends CGameObject {
113
- public force_visibility_state(value: i32): void;
114
- }
115
-
116
- /**
117
- * @source C++ class CAI_Boar : CGameObject
118
- * @customConstructor CAI_Boar
119
- * @group xr_creature
120
- */
121
- export class CAI_Boar extends CGameObject {}
122
-
123
- /**
124
- * @source C++ class CAI_Dog : CGameObject
125
- * @customConstructor CAI_Dog
126
- * @group xr_creature
127
- */
128
- export class CAI_Dog extends CGameObject {}
129
-
130
- /**
131
- * @source C++ class CAI_Flesh : CGameObject
132
- * @customConstructor CAI_Flesh
133
- * @group xr_creature
134
- */
135
- export class CAI_Flesh extends CGameObject {}
136
-
137
- /**
138
- * @source C++ class CAI_PseudoDog : CGameObject
139
- * @customConstructor CAI_PseudoDog
140
- * @group xr_creature
141
- */
142
- export class CAI_PseudoDog extends CGameObject {}
143
-
144
- /**
145
- * @source C++ class CAI_Stalker : CGameObject
146
- * @customConstructor CAI_Stalker
147
- * @group xr_creature
148
- */
149
- export class CAI_Stalker extends CGameObject {}
150
-
151
- /**
152
- * @source C++ class CAI_Trader : CGameObject
153
- * @customConstructor CAI_Trader
154
- * @group xr_creature
155
- */
156
- export class CAI_Trader extends CGameObject {}
157
-
158
- /**
159
- * @source C++ class CSnork : CGameObject
160
- * @customConstructor CSnork
161
- * @group xr_creature
162
- */
163
- export class CSnork extends CGameObject {}
164
- }
1
+ declare module "xray16" {
2
+ /**
3
+ * Client object binding for `CEntityAlive`.
4
+ *
5
+ * @source C++ class CEntityAlive : public CEntity
6
+ * @customConstructor CEntityAlive
7
+ * @group xr_creature
8
+ *
9
+ * @remarks
10
+ * Base wrapper for alive objects. Use `game_object.is_entity_alive()` or a narrower predicate before calling
11
+ * alive-object methods from the shared `game_object` surface.
12
+ */
13
+ export class CEntityAlive extends CGameObject {}
14
+
15
+ /**
16
+ * Client object binding for `CActor`.
17
+ *
18
+ * @source C++ class CActor : CGameObject
19
+ * @customConstructor CActor
20
+ * @group xr_creature
21
+ *
22
+ * @remarks
23
+ * Actor-only APIs on `game_object` require the current object to be the player actor, not just any alive entity.
24
+ */
25
+ export class CActor extends CGameObject {}
26
+
27
+ /**
28
+ * Client object binding for `CCustomMonster`.
29
+ *
30
+ * @source C++ class CCustomMonster : CGameObject
31
+ * @customConstructor CCustomMonster
32
+ * @group xr_creature
33
+ *
34
+ * @remarks
35
+ * Base wrapper for custom monsters. Monster sound, range, memory, home, and enemy-transfer helpers require this
36
+ * family or one of its subclasses.
37
+ */
38
+ export class CCustomMonster extends CGameObject {}
39
+
40
+ /**
41
+ * Client object binding for `CInventoryOwner`.
42
+ *
43
+ * @source C++ class CInventoryOwner : CGameObject
44
+ * @customConstructor CInventoryOwner
45
+ * @group xr_creature
46
+ *
47
+ * @remarks
48
+ * Inventory-owner APIs cover NPCs, traders, corpses, boxes, and the actor depending on runtime class. Check the
49
+ * object kind before assuming dialog, trade, belt, or inventory-box behavior exists.
50
+ */
51
+ export class CInventoryOwner extends CGameObject {}
52
+
53
+ /**
54
+ * Client object binding for `CInventoryItem`.
55
+ *
56
+ * @source C++ class CInventoryItem : CGameObject
57
+ * @customConstructor CInventoryItem
58
+ * @group xr_creature
59
+ *
60
+ * @remarks
61
+ * Base wrapper for inventory items. Item condition, cost, upgrades, and slot behavior depend on the concrete item
62
+ * class.
63
+ */
64
+ export class CInventoryItem extends CGameObject {}
65
+
66
+ /**
67
+ * Client object binding for `CZombie`.
68
+ *
69
+ * @source C++ class CZombie : CGameObject
70
+ * @customConstructor CZombie
71
+ * @group xr_creature
72
+ */
73
+ export class CZombie extends CGameObject {}
74
+
75
+ /**
76
+ * Client object binding for `CController`.
77
+ *
78
+ * @source C++ class CController : CGameObject
79
+ * @customConstructor CController
80
+ * @group xr_creature
81
+ */
82
+ export class CController extends CGameObject {}
83
+
84
+ /**
85
+ * Client object binding for `CTushkano`.
86
+ *
87
+ * @source C++ class CTushkano : CGameObject
88
+ * @customConstructor CTushkano
89
+ * @group xr_creature
90
+ */
91
+ export class CTushkano extends CGameObject {}
92
+
93
+ /**
94
+ * Client object binding for `CBurer`.
95
+ *
96
+ * @source C++ class CBurer : CGameObject
97
+ * @customConstructor CBurer
98
+ * @group xr_creature
99
+ */
100
+ export class CBurer extends CGameObject {}
101
+
102
+ /**
103
+ * Client object binding for `CCat`.
104
+ *
105
+ * @source C++ class CCat : CGameObject
106
+ * @customConstructor CCat
107
+ * @group xr_creature
108
+ */
109
+ export class CCat extends CGameObject {}
110
+
111
+ /**
112
+ * Client object binding for `CChimera`.
113
+ *
114
+ * @source C++ class CChimera : CGameObject
115
+ * @customConstructor CChimera
116
+ * @group xr_creature
117
+ */
118
+ export class CChimera extends CGameObject {}
119
+
120
+ /**
121
+ * Client object binding for `CPoltergeist`.
122
+ *
123
+ * @source C++ class CPoltergeist : CGameObject
124
+ * @customConstructor CPoltergeist
125
+ * @group xr_creature
126
+ */
127
+ export class CPoltergeist extends CGameObject {}
128
+
129
+ /**
130
+ * Client object binding for `CPseudoGigant`.
131
+ *
132
+ * @source C++ class CPseudoGigant : CGameObject
133
+ * @customConstructor CPseudoGigant
134
+ * @group xr_creature
135
+ */
136
+ export class CPseudoGigant extends CGameObject {}
137
+
138
+ /**
139
+ * Client object binding for `CPsyDog`.
140
+ *
141
+ * @source C++ class CPsyDog : CGameObject
142
+ * @customConstructor CPsyDog
143
+ * @group xr_creature
144
+ */
145
+ export class CPsyDog extends CGameObject {}
146
+
147
+ /**
148
+ * Client object binding for `CPsyDogPhantom`.
149
+ *
150
+ * @source C++ class CPsyDogPhantom : CGameObject
151
+ * @customConstructor CPsyDogPhantom
152
+ * @group xr_creature
153
+ */
154
+ export class CPsyDogPhantom extends CGameObject {}
155
+
156
+ /**
157
+ * Client object binding for `CAI_Bloodsucker`.
158
+ *
159
+ * @source C++ class CAI_Bloodsucker : CGameObject
160
+ * @customConstructor CAI_Bloodsucker
161
+ * @group xr_creature
162
+ *
163
+ * @remarks
164
+ * Bloodsucker-specific visibility helpers are not valid for other custom monsters.
165
+ */
166
+ export class CAI_Bloodsucker extends CGameObject {
167
+ /**
168
+ * Override the bloodsucker visibility state.
169
+ *
170
+ * @param value - Visibility state id used by the monster implementation.
171
+ */
172
+ public force_visibility_state(value: i32): void;
173
+ }
174
+
175
+ /**
176
+ * Client object binding for `CAI_Boar`.
177
+ *
178
+ * @source C++ class CAI_Boar : CGameObject
179
+ * @customConstructor CAI_Boar
180
+ * @group xr_creature
181
+ */
182
+ export class CAI_Boar extends CGameObject {}
183
+
184
+ /**
185
+ * Client object binding for `CAI_Dog`.
186
+ *
187
+ * @source C++ class CAI_Dog : CGameObject
188
+ * @customConstructor CAI_Dog
189
+ * @group xr_creature
190
+ */
191
+ export class CAI_Dog extends CGameObject {}
192
+
193
+ /**
194
+ * Client object binding for `CAI_Flesh`.
195
+ *
196
+ * @source C++ class CAI_Flesh : CGameObject
197
+ * @customConstructor CAI_Flesh
198
+ * @group xr_creature
199
+ */
200
+ export class CAI_Flesh extends CGameObject {}
201
+
202
+ /**
203
+ * Client object binding for `CAI_PseudoDog`.
204
+ *
205
+ * @source C++ class CAI_PseudoDog : CGameObject
206
+ * @customConstructor CAI_PseudoDog
207
+ * @group xr_creature
208
+ */
209
+ export class CAI_PseudoDog extends CGameObject {}
210
+
211
+ /**
212
+ * Client object binding for `CAI_Stalker`.
213
+ *
214
+ * @source C++ class CAI_Stalker : CGameObject
215
+ * @customConstructor CAI_Stalker
216
+ * @group xr_creature
217
+ *
218
+ * @remarks
219
+ * Stalker movement, smart-cover, planner, weapon-selection, and dialog helpers require this runtime family.
220
+ */
221
+ export class CAI_Stalker extends CGameObject {}
222
+
223
+ /**
224
+ * Client object binding for `CAI_Trader`.
225
+ *
226
+ * @source C++ class CAI_Trader : CGameObject
227
+ * @customConstructor CAI_Trader
228
+ * @group xr_creature
229
+ *
230
+ * @remarks
231
+ * Trader wrappers are inventory owners with trader-specific animation and sound hooks.
232
+ */
233
+ export class CAI_Trader extends CGameObject {}
234
+
235
+ /**
236
+ * Client object binding for `CSnork`.
237
+ *
238
+ * @source C++ class CSnork : CGameObject
239
+ * @customConstructor CSnork
240
+ * @group xr_creature
241
+ */
242
+ export class CSnork extends CGameObject {}
243
+ }