xray16 1.4.0 → 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 (49) hide show
  1. package/package.json +1 -1
  2. package/types/xr_ai/xr_action.d.ts +1321 -29
  3. package/types/xr_ai/xr_alife.d.ts +1336 -32
  4. package/types/xr_ai/xr_enemy_evaluation.d.ts +112 -19
  5. package/types/xr_ai/xr_goap.d.ts +450 -3
  6. package/types/xr_ai/xr_graph.d.ts +94 -6
  7. package/types/xr_ai/xr_memory.d.ts +240 -6
  8. package/types/xr_lib/xr_animation.d.ts +185 -14
  9. package/types/xr_lib/xr_bitwise.d.ts +20 -8
  10. package/types/xr_lib/xr_color.d.ts +103 -6
  11. package/types/xr_lib/xr_debug.d.ts +110 -12
  12. package/types/xr_lib/xr_dialog.d.ts +99 -7
  13. package/types/xr_lib/xr_flags.d.ts +78 -15
  14. package/types/xr_lib/xr_fs.d.ts +395 -5
  15. package/types/xr_lib/xr_game.d.ts +101 -0
  16. package/types/xr_lib/xr_hit.d.ts +84 -0
  17. package/types/xr_lib/xr_ini.d.ts +60 -2
  18. package/types/xr_lib/xr_level.d.ts +182 -39
  19. package/types/xr_lib/xr_luabind.d.ts +37 -11
  20. package/types/xr_lib/xr_map.d.ts +137 -6
  21. package/types/xr_lib/xr_math.d.ts +56 -0
  22. package/types/xr_lib/xr_multiplayer.d.ts +729 -1
  23. package/types/xr_lib/xr_profile.d.ts +80 -0
  24. package/types/xr_lib/xr_properties.d.ts +159 -4
  25. package/types/xr_lib/xr_relation.d.ts +147 -0
  26. package/types/xr_lib/xr_render.d.ts +99 -3
  27. package/types/xr_lib/xr_save.d.ts +110 -4
  28. package/types/xr_lib/xr_sound.d.ts +373 -9
  29. package/types/xr_lib/xr_stats.ts +33 -4
  30. package/types/xr_lib/xr_task.d.ts +277 -0
  31. package/types/xr_lib/xr_time.d.ts +11 -0
  32. package/types/xr_object/client/xr_anomaly.d.ts +20 -0
  33. package/types/xr_object/client/xr_artefact.d.ts +57 -2
  34. package/types/xr_object/client/xr_client_object.d.ts +131 -0
  35. package/types/xr_object/client/xr_creature.d.ts +79 -0
  36. package/types/xr_object/client/xr_item.d.ts +108 -2
  37. package/types/xr_object/client/xr_level.d.ts +482 -14
  38. package/types/xr_object/client/xr_physic.d.ts +459 -29
  39. package/types/xr_object/client/xr_zone.d.ts +38 -0
  40. package/types/xr_object/script/xr_script_interface.d.ts +236 -1
  41. package/types/xr_object/script/xr_script_object.d.ts +3402 -82
  42. package/types/xr_object/script/xr_script_trade.d.ts +25 -15
  43. package/types/xr_object/server/xr_server_object.d.ts +707 -15
  44. package/types/xr_ui/xr_ui_asset.d.ts +241 -6
  45. package/types/xr_ui/xr_ui_core.d.ts +327 -9
  46. package/types/xr_ui/xr_ui_event.d.ts +1067 -1
  47. package/types/xr_ui/xr_ui_interface.d.ts +1563 -17
  48. package/types/xr_ui/xr_ui_menu.d.ts +259 -16
  49. package/types/xrf_plugin.d.ts +44 -14
@@ -1,16 +1,32 @@
1
1
  declare module "xray16" {
2
2
  /**
3
+ * Explosive component shared by grenade and explosive item classes.
4
+ *
3
5
  * @source C++ class explosive
4
6
  * @customConstructor explosive
5
7
  * @group xr_item
8
+ *
9
+ * @remarks
10
+ * Returned for objects that expose the native explosive component. Do not use it as a generic item wrapper.
6
11
  */
7
12
  export class explosive extends EngineBinding {
13
+ /**
14
+ * Engine-created explosive component.
15
+ */
8
16
  protected constructor();
9
17
 
18
+ /**
19
+ * Trigger the explosive immediately.
20
+ *
21
+ * @remarks
22
+ * Requires the owning object to still be alive in the engine object registry.
23
+ */
10
24
  public explode(): void;
11
25
  }
12
26
 
13
27
  /**
28
+ * Client object binding for `CAntirad` inventory items.
29
+ *
14
30
  * @source C++ class CAntirad : CGameObject
15
31
  * @customConstructor CAntirad
16
32
  * @group xr_item
@@ -18,6 +34,8 @@ declare module "xray16" {
18
34
  export class CAntirad extends CGameObject {}
19
35
 
20
36
  /**
37
+ * Client object binding for `CStalkerOutfit` inventory items.
38
+ *
21
39
  * @source C++ class CStalkerOutfit : CGameObject
22
40
  * @customConstructor CStalkerOutfit
23
41
  * @group xr_item
@@ -25,13 +43,20 @@ declare module "xray16" {
25
43
  export class CStalkerOutfit extends CGameObject {}
26
44
 
27
45
  /**
46
+ * Client object binding for `CInventoryBox` inventory items.
47
+ *
28
48
  * @source C++ class CInventoryBox : CGameObject
29
49
  * @customConstructor CInventoryBox
30
50
  * @group xr_item
51
+ *
52
+ * @remarks
53
+ * Inventory box helpers on `game_object` require this runtime class, not any inventory owner.
31
54
  */
32
55
  export class CInventoryBox extends CGameObject {}
33
56
 
34
57
  /**
58
+ * Client object binding for `CBottleItem` inventory items.
59
+ *
35
60
  * @source C++ class CBottleItem : CGameObject
36
61
  * @customConstructor CBottleItem
37
62
  * @group xr_item
@@ -39,6 +64,8 @@ declare module "xray16" {
39
64
  export class CBottleItem extends CGameObject {}
40
65
 
41
66
  /**
67
+ * Client object binding for `CFoodItem` inventory items.
68
+ *
42
69
  * @source C++ class CFoodItem : CGameObject
43
70
  * @customConstructor CFoodItem
44
71
  * @group xr_item
@@ -46,6 +73,8 @@ declare module "xray16" {
46
73
  export class CFoodItem extends CGameObject {}
47
74
 
48
75
  /**
76
+ * Client object binding for `CMedkit` inventory items.
77
+ *
49
78
  * @source C++ class CMedkit : CGameObject
50
79
  * @customConstructor CMedkit
51
80
  * @group xr_item
@@ -53,6 +82,8 @@ declare module "xray16" {
53
82
  export class CMedkit extends CGameObject {}
54
83
 
55
84
  /**
85
+ * Client object binding for `CExplosiveItem` inventory items.
86
+ *
56
87
  * @source C++ class CExplosiveItem : CGameObject
57
88
  * @customConstructor CExplosiveItem
58
89
  * @group xr_item
@@ -60,6 +91,8 @@ declare module "xray16" {
60
91
  export class CExplosiveItem extends CGameObject {}
61
92
 
62
93
  /**
94
+ * Client object binding for `CCWeaponAK74` inventory items.
95
+ *
63
96
  * @source C++ class CWeaponAK74 : CGameObject
64
97
  * @customConstructor CWeaponAK74
65
98
  * @group xr_item
@@ -67,6 +100,8 @@ declare module "xray16" {
67
100
  export class CCWeaponAK74 extends CGameObject {}
68
101
 
69
102
  /**
103
+ * Client object binding for `CGrenadeLauncher` inventory items.
104
+ *
70
105
  * @source C++ class CGrenadeLauncher : CGameObject
71
106
  * @customConstructor CGrenadeLauncher
72
107
  * @group xr_item
@@ -74,20 +109,43 @@ declare module "xray16" {
74
109
  export class CGrenadeLauncher extends CGameObject {}
75
110
 
76
111
  /**
112
+ * Client object binding for `CWeaponAmmo` inventory items.
113
+ *
77
114
  * @source C++ class CWeaponAmmo : CGameObject
78
115
  * @customConstructor CWeaponAmmo
79
116
  * @group xr_item
117
+ *
118
+ * @remarks
119
+ * Ammo-count helpers on `game_object` require this runtime class.
80
120
  */
81
121
  export class CWeaponAmmo extends CGameObject {}
82
122
 
83
123
  /**
124
+ * Client object binding for `CWeapon` inventory items.
125
+ *
84
126
  * @source C++ class CWeapon : public CHudItemObject, public CShootingObject
85
127
  * @customConstructor CWeaponAmmo
86
128
  * @group xr_item
87
- */
88
- export class CWeapon extends CInventoryItem {}
129
+ *
130
+ * @remarks
131
+ * Weapon helpers on `game_object` require this family or a subclass. Addons, ammo, outfits, and consumables are not
132
+ * weapons even when they are inventory items.
133
+ */
134
+ export class CWeapon extends CInventoryItem {
135
+ /**
136
+ * Check whether the weapon can currently fire a lethal shot.
137
+ *
138
+ * @remarks
139
+ * Takes current weapon state into account, including ammo and readiness.
140
+ *
141
+ * @returns Whether the weapon can kill.
142
+ */
143
+ public can_kill(): boolean;
144
+ }
89
145
 
90
146
  /**
147
+ * Client object binding for `CWeaponMagazined` inventory items.
148
+ *
91
149
  * @source C++ class CWeaponMagazined : public CWeapon
92
150
  * @customConstructor CWeaponMagazined
93
151
  * @group xr_item
@@ -95,6 +153,8 @@ declare module "xray16" {
95
153
  export class CWeaponMagazined extends CWeapon {}
96
154
 
97
155
  /**
156
+ * Client object binding for `CWeaponAutomaticShotgun` inventory items.
157
+ *
98
158
  * @source C++ class CWeaponAutomaticShotgun : CGameObject
99
159
  * @customConstructor CWeaponAutomaticShotgun
100
160
  * @group xr_item
@@ -102,6 +162,8 @@ declare module "xray16" {
102
162
  export class CWeaponAutomaticShotgun extends CWeaponMagazined {}
103
163
 
104
164
  /**
165
+ * Client object binding for `CWeaponBM16` inventory items.
166
+ *
105
167
  * @source C++ class CWeaponBM16 : CGameObject
106
168
  * @customConstructor CWeaponBM16
107
169
  * @group xr_item
@@ -109,6 +171,8 @@ declare module "xray16" {
109
171
  export class CWeaponBM16 extends CWeaponShotgun {}
110
172
 
111
173
  /**
174
+ * Client object binding for `CWeaponBinoculars` inventory items.
175
+ *
112
176
  * @source C++ class CWeaponBinoculars : CGameObject
113
177
  * @customConstructor CWeaponBinoculars
114
178
  * @group xr_item
@@ -116,6 +180,8 @@ declare module "xray16" {
116
180
  export class CWeaponBinoculars extends CGameObject {}
117
181
 
118
182
  /**
183
+ * Client object binding for `CWeaponFN2000` inventory items.
184
+ *
119
185
  * @source C++ class CWeaponFN2000 : CGameObject
120
186
  * @customConstructor CWeaponFN2000
121
187
  * @group xr_item
@@ -123,6 +189,8 @@ declare module "xray16" {
123
189
  export class CWeaponFN2000 extends CGameObject {}
124
190
 
125
191
  /**
192
+ * Client object binding for `CWeaponFORT` inventory items.
193
+ *
126
194
  * @source C++ class CWeaponFORT : CGameObject
127
195
  * @customConstructor CWeaponFORT
128
196
  * @group xr_item
@@ -130,6 +198,8 @@ declare module "xray16" {
130
198
  export class CWeaponFORT extends CGameObject {}
131
199
 
132
200
  /**
201
+ * Client object binding for `CWeaponGroza` inventory items.
202
+ *
133
203
  * @source C++ class CWeaponGroza : CGameObject
134
204
  * @customConstructor CWeaponGroza
135
205
  * @group xr_item
@@ -137,6 +207,8 @@ declare module "xray16" {
137
207
  export class CWeaponGroza extends CGameObject {}
138
208
 
139
209
  /**
210
+ * Client object binding for `CWeaponHPSA` inventory items.
211
+ *
140
212
  * @source C++ class CWeaponHPSA : CGameObject
141
213
  * @customConstructor CWeaponHPSA
142
214
  * @group xr_item
@@ -144,6 +216,8 @@ declare module "xray16" {
144
216
  export class CWeaponHPSA extends CGameObject {}
145
217
 
146
218
  /**
219
+ * Client object binding for `CWeaponKnife` inventory items.
220
+ *
147
221
  * @source C++ class CWeaponKnife : CGameObject
148
222
  * @customConstructor CWeaponKnife
149
223
  * @group xr_item
@@ -151,6 +225,8 @@ declare module "xray16" {
151
225
  export class CWeaponKnife extends CGameObject {}
152
226
 
153
227
  /**
228
+ * Client object binding for `CWeaponLR300` inventory items.
229
+ *
154
230
  * @source C++ class CWeaponLR300 : CGameObject
155
231
  * @customConstructor CWeaponLR300
156
232
  * @group xr_item
@@ -158,6 +234,8 @@ declare module "xray16" {
158
234
  export class CWeaponLR300 extends CGameObject {}
159
235
 
160
236
  /**
237
+ * Client object binding for `CWeaponPM` inventory items.
238
+ *
161
239
  * @source C++ class CWeaponPM : CGameObject
162
240
  * @customConstructor CWeaponPM
163
241
  * @group xr_item
@@ -165,6 +243,8 @@ declare module "xray16" {
165
243
  export class CWeaponPM extends CGameObject {}
166
244
 
167
245
  /**
246
+ * Client object binding for `CWeaponRG6` inventory items.
247
+ *
168
248
  * @source C++ class CWeaponRG6 : CGameObject
169
249
  * @customConstructor CWeaponRG6
170
250
  * @group xr_item
@@ -172,6 +252,8 @@ declare module "xray16" {
172
252
  export class CWeaponRG6 extends CGameObject {}
173
253
 
174
254
  /**
255
+ * Client object binding for `CWeaponRPG7` inventory items.
256
+ *
175
257
  * @source C++ class CWeaponRPG7 : CGameObject
176
258
  * @customConstructor CWeaponRPG7
177
259
  * @group xr_item
@@ -179,6 +261,8 @@ declare module "xray16" {
179
261
  export class CWeaponRPG7 extends CGameObject {}
180
262
 
181
263
  /**
264
+ * Client object binding for `CWeaponSVD` inventory items.
265
+ *
182
266
  * @source C++ class CWeaponSVD : CGameObject
183
267
  * @customConstructor CWeaponSVD
184
268
  * @group xr_item
@@ -186,6 +270,8 @@ declare module "xray16" {
186
270
  export class CWeaponSVD extends CGameObject {}
187
271
 
188
272
  /**
273
+ * Client object binding for `CWeaponSVU` inventory items.
274
+ *
189
275
  * @source C++ class CWeaponSVU : CGameObject
190
276
  * @customConstructor CWeaponSVU
191
277
  * @group xr_item
@@ -193,6 +279,8 @@ declare module "xray16" {
193
279
  export class CWeaponSVU extends CGameObject {}
194
280
 
195
281
  /**
282
+ * Client object binding for `CWeaponShotgun` inventory items.
283
+ *
196
284
  * @source C++ class CWeaponShotgun : CGameObject
197
285
  * @customConstructor CWeaponShotgun
198
286
  * @group xr_item
@@ -200,6 +288,8 @@ declare module "xray16" {
200
288
  export class CWeaponShotgun extends CGameObject {}
201
289
 
202
290
  /**
291
+ * Client object binding for `CWeaponUSP45` inventory items.
292
+ *
203
293
  * @source C++ class CWeaponUSP45 : CGameObject
204
294
  * @customConstructor CWeaponUSP45
205
295
  * @group xr_item
@@ -207,6 +297,8 @@ declare module "xray16" {
207
297
  export class CWeaponUSP45 extends CGameObject {}
208
298
 
209
299
  /**
300
+ * Client object binding for `CWeaponVal` inventory items.
301
+ *
210
302
  * @source C++ class CWeaponVal : CGameObject
211
303
  * @customConstructor CWeaponVal
212
304
  * @group xr_item
@@ -214,6 +306,8 @@ declare module "xray16" {
214
306
  export class CWeaponVal extends CGameObject {}
215
307
 
216
308
  /**
309
+ * Client object binding for `CWeaponVintorez` inventory items.
310
+ *
217
311
  * @source C++ class CWeaponVintorez : CGameObject
218
312
  * @customConstructor CWeaponVintorez
219
313
  * @group xr_item
@@ -221,6 +315,8 @@ declare module "xray16" {
221
315
  export class CWeaponVintorez extends CGameObject {}
222
316
 
223
317
  /**
318
+ * Client object binding for `CWeaponWalther` inventory items.
319
+ *
224
320
  * @source C++ class CWeaponWalther : CGameObject
225
321
  * @customConstructor CWeaponWalther
226
322
  * @group xr_item
@@ -228,6 +324,8 @@ declare module "xray16" {
228
324
  export class CWeaponWalther extends CGameObject {}
229
325
 
230
326
  /**
327
+ * Client object binding for `CSilencer` inventory items.
328
+ *
231
329
  * @source C++ class CSilencer : CGameObject
232
330
  * @customConstructor CSilencer
233
331
  * @group xr_item
@@ -235,6 +333,8 @@ declare module "xray16" {
235
333
  export class CSilencer extends CGameObject {}
236
334
 
237
335
  /**
336
+ * Client object binding for `CScope` inventory items.
337
+ *
238
338
  * @source C++ class CScope : CGameObject
239
339
  * @customConstructor CScope
240
340
  * @group xr_item
@@ -242,6 +342,8 @@ declare module "xray16" {
242
342
  export class CScope extends CGameObject {}
243
343
 
244
344
  /**
345
+ * Client object binding for `CRGD5` inventory items.
346
+ *
245
347
  * @source C++ class CRGD5 : CGameObject
246
348
  * @customConstructor CRGD5
247
349
  * @group xr_item
@@ -249,6 +351,8 @@ declare module "xray16" {
249
351
  export class CRGD5 extends CGameObject {}
250
352
 
251
353
  /**
354
+ * Client object binding for `CF1` inventory items.
355
+ *
252
356
  * @source C++ class CF1 : CGameObject
253
357
  * @customConstructor CF1
254
358
  * @group xr_item
@@ -256,6 +360,8 @@ declare module "xray16" {
256
360
  export class CF1 extends CGameObject {}
257
361
 
258
362
  /**
363
+ * Client object binding for `CPda` inventory items.
364
+ *
259
365
  * @source C++ class CPda : CGameObject
260
366
  * @customConstructor CPda
261
367
  * @group xr_item