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.
- package/LICENSE +21 -21
- package/README.md +112 -106
- package/package.json +45 -42
- package/plugins/built_at_info.d.ts +1 -1
- package/plugins/from_cast_utils.d.ts +1 -1
- package/plugins/global_declarations_transform.d.ts +1 -1
- package/plugins/inject_file_meta.d.ts +1 -1
- package/plugins/inject_tracy_zones.d.ts +1 -1
- package/plugins/inject_tracy_zones.js +2 -2
- package/plugins/strip_lua_logger.d.ts +1 -1
- package/plugins/strip_lua_logger.js +1 -1
- package/plugins/transform_luabind_class/plugin.d.ts +1 -1
- package/plugins/transform_luabind_class/transformation/class_declaration.d.ts +3 -3
- package/plugins/transform_luabind_class/transformation/decorators.d.ts +5 -2
- package/plugins/transform_luabind_class/transformation/decorators.js +3 -0
- package/plugins/transform_luabind_class/transformation/members/accessors.d.ts +1 -1
- package/plugins/transform_luabind_class/transformation/members/constructor.d.ts +2 -2
- package/plugins/transform_luabind_class/transformation/members/constructor.js +2 -2
- package/plugins/transform_luabind_class/transformation/members/fields.d.ts +5 -2
- package/plugins/transform_luabind_class/transformation/members/fields.js +5 -2
- package/plugins/transform_luabind_class/transformation/members/method.d.ts +6 -3
- package/plugins/transform_luabind_class/transformation/members/method.js +4 -1
- package/plugins/transform_luabind_class/transformation/new.d.ts +7 -3
- package/plugins/transform_luabind_class/transformation/new.js +5 -1
- package/plugins/transform_luabind_class/transformation/setup.d.ts +9 -3
- package/plugins/transform_luabind_class/transformation/setup.js +22 -6
- package/plugins/transform_luabind_class/transformation/super.d.ts +19 -3
- package/plugins/transform_luabind_class/transformation/super.js +17 -1
- package/plugins/transform_luabind_class/transformation/utils.d.ts +27 -4
- package/plugins/transform_luabind_class/transformation/utils.js +25 -2
- package/plugins/utils/ast.d.ts +1 -1
- package/plugins/utils/diagnostics.d.ts +9 -5
- package/plugins/utils/diagnostics.js +5 -1
- package/plugins/utils/tracy.d.ts +1 -1
- package/types/index.d.ts +55 -55
- package/types/xr_ai/xr_action.d.ts +1802 -510
- package/types/xr_ai/xr_alife.d.ts +1870 -566
- package/types/xr_ai/xr_enemy_evaluation.d.ts +134 -41
- package/types/xr_ai/xr_goap.d.ts +1116 -668
- package/types/xr_ai/xr_graph.d.ts +135 -47
- package/types/xr_ai/xr_memory.d.ts +382 -148
- package/types/xr_lib/xr_animation.d.ts +252 -81
- package/types/xr_lib/xr_bitwise.d.ts +44 -21
- package/types/xr_lib/xr_color.d.ts +142 -40
- package/types/xr_lib/xr_debug.d.ts +181 -77
- package/types/xr_lib/xr_dialog.d.ts +132 -40
- package/types/xr_lib/xr_flags.d.ts +592 -148
- package/types/xr_lib/xr_fs.d.ts +539 -148
- package/types/xr_lib/xr_game.d.ts +362 -158
- package/types/xr_lib/xr_hit.d.ts +125 -41
- package/types/xr_lib/xr_ini.d.ts +473 -188
- package/types/xr_lib/xr_level.d.ts +795 -225
- package/types/xr_lib/xr_luabind.d.ts +90 -59
- package/types/xr_lib/xr_map.d.ts +192 -61
- package/types/xr_lib/xr_math.d.ts +871 -233
- package/types/xr_lib/xr_multiplayer.d.ts +1079 -351
- package/types/xr_lib/xr_profile.d.ts +272 -160
- package/types/xr_lib/xr_properties.d.ts +610 -166
- package/types/xr_lib/xr_relation.d.ts +231 -84
- package/types/xr_lib/xr_render.d.ts +167 -69
- package/types/xr_lib/xr_save.d.ts +833 -223
- package/types/xr_lib/xr_sound.d.ts +515 -151
- package/types/xr_lib/xr_stats.ts +49 -20
- package/types/xr_lib/xr_task.d.ts +388 -111
- package/types/xr_lib/xr_time.d.ts +177 -61
- package/types/xr_lib/xr_type.d.ts +75 -75
- package/types/xr_object/client/xr_anomaly.d.ts +70 -50
- package/types/xr_object/client/xr_artefact.d.ts +153 -98
- package/types/xr_object/client/xr_client_object.d.ts +207 -76
- package/types/xr_object/client/xr_creature.d.ts +243 -164
- package/types/xr_object/client/xr_item.d.ts +370 -264
- package/types/xr_object/client/xr_level.d.ts +753 -285
- package/types/xr_object/client/xr_physic.d.ts +644 -214
- package/types/xr_object/client/xr_zone.d.ts +85 -47
- package/types/xr_object/script/xr_script_interface.d.ts +819 -584
- package/types/xr_object/script/xr_script_object.d.ts +5728 -1390
- package/types/xr_object/script/xr_script_trade.d.ts +51 -26
- package/types/xr_object/server/xr_server_object.d.ts +1486 -792
- package/types/xr_ui/xr_ui_asset.d.ts +364 -123
- package/types/xr_ui/xr_ui_core.d.ts +424 -97
- package/types/xr_ui/xr_ui_event.d.ts +1449 -381
- package/types/xr_ui/xr_ui_interface.d.ts +2447 -903
- package/types/xr_ui/xr_ui_menu.d.ts +385 -142
- package/types/xrf_plugin.d.ts +89 -51
|
@@ -1,164 +1,243 @@
|
|
|
1
|
-
declare module "xray16" {
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*
|
|
18
|
-
* @
|
|
19
|
-
* @
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
* @
|
|
32
|
-
* @
|
|
33
|
-
*
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
* @
|
|
46
|
-
*
|
|
47
|
-
* @
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
*
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
*
|
|
60
|
-
* @
|
|
61
|
-
*
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
* @
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
* @source C++ class
|
|
88
|
-
* @customConstructor
|
|
89
|
-
* @group xr_creature
|
|
90
|
-
*/
|
|
91
|
-
export class
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* @
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
*
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
* @
|
|
125
|
-
* @
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
*
|
|
132
|
-
* @
|
|
133
|
-
* @
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
* @
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
* @source C++ class
|
|
160
|
-
* @customConstructor
|
|
161
|
-
* @group xr_creature
|
|
162
|
-
|
|
163
|
-
|
|
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
|
+
}
|