xray16 1.4.0 → 1.5.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.
- package/package.json +1 -1
- package/types/xr_ai/xr_action.d.ts +1321 -29
- package/types/xr_ai/xr_alife.d.ts +1336 -32
- package/types/xr_ai/xr_enemy_evaluation.d.ts +112 -19
- package/types/xr_ai/xr_goap.d.ts +450 -3
- package/types/xr_ai/xr_graph.d.ts +94 -6
- package/types/xr_ai/xr_memory.d.ts +240 -6
- package/types/xr_lib/xr_animation.d.ts +185 -14
- package/types/xr_lib/xr_bitwise.d.ts +20 -8
- package/types/xr_lib/xr_color.d.ts +103 -6
- package/types/xr_lib/xr_debug.d.ts +110 -12
- package/types/xr_lib/xr_dialog.d.ts +99 -7
- package/types/xr_lib/xr_flags.d.ts +78 -15
- package/types/xr_lib/xr_fs.d.ts +395 -5
- package/types/xr_lib/xr_game.d.ts +101 -0
- package/types/xr_lib/xr_hit.d.ts +84 -0
- package/types/xr_lib/xr_ini.d.ts +60 -2
- package/types/xr_lib/xr_level.d.ts +182 -39
- package/types/xr_lib/xr_luabind.d.ts +37 -11
- package/types/xr_lib/xr_map.d.ts +137 -6
- package/types/xr_lib/xr_math.d.ts +56 -0
- package/types/xr_lib/xr_multiplayer.d.ts +729 -1
- package/types/xr_lib/xr_profile.d.ts +80 -0
- package/types/xr_lib/xr_properties.d.ts +159 -4
- package/types/xr_lib/xr_relation.d.ts +147 -0
- package/types/xr_lib/xr_render.d.ts +99 -3
- package/types/xr_lib/xr_save.d.ts +110 -4
- package/types/xr_lib/xr_sound.d.ts +373 -9
- package/types/xr_lib/xr_stats.ts +33 -4
- package/types/xr_lib/xr_task.d.ts +277 -0
- package/types/xr_lib/xr_time.d.ts +11 -0
- package/types/xr_object/client/xr_anomaly.d.ts +20 -0
- package/types/xr_object/client/xr_artefact.d.ts +57 -2
- package/types/xr_object/client/xr_client_object.d.ts +131 -0
- package/types/xr_object/client/xr_creature.d.ts +79 -0
- package/types/xr_object/client/xr_item.d.ts +108 -2
- package/types/xr_object/client/xr_level.d.ts +482 -14
- package/types/xr_object/client/xr_physic.d.ts +459 -29
- package/types/xr_object/client/xr_zone.d.ts +38 -0
- package/types/xr_object/script/xr_script_interface.d.ts +236 -1
- package/types/xr_object/script/xr_script_object.d.ts +3402 -82
- package/types/xr_object/script/xr_script_trade.d.ts +25 -15
- package/types/xr_object/server/xr_server_object.d.ts +707 -15
- package/types/xr_ui/xr_ui_asset.d.ts +241 -6
- package/types/xr_ui/xr_ui_core.d.ts +327 -9
- package/types/xr_ui/xr_ui_event.d.ts +1067 -1
- package/types/xr_ui/xr_ui_interface.d.ts +1563 -17
- package/types/xr_ui/xr_ui_menu.d.ts +259 -16
- package/types/xrf_plugin.d.ts +44 -14
|
@@ -1,17 +1,47 @@
|
|
|
1
1
|
declare module "xray16" {
|
|
2
2
|
/**
|
|
3
|
+
* Task state and task type constants.
|
|
4
|
+
*
|
|
3
5
|
* @source C++ class task
|
|
4
6
|
* @customConstructor task
|
|
5
7
|
* @group xr_task
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* State and type constants share one native export. Use the matching subset for each API.
|
|
6
11
|
*/
|
|
7
12
|
export class task {
|
|
13
|
+
/**
|
|
14
|
+
* Engine enum value for `task.additional`.
|
|
15
|
+
*/
|
|
8
16
|
public static readonly additional: 1;
|
|
17
|
+
/**
|
|
18
|
+
* Engine enum value for `task.completed`.
|
|
19
|
+
*/
|
|
9
20
|
public static readonly completed: 2;
|
|
21
|
+
/**
|
|
22
|
+
* Engine enum value for `task.fail`.
|
|
23
|
+
*/
|
|
10
24
|
public static readonly fail: 0;
|
|
25
|
+
/**
|
|
26
|
+
* Engine enum value for `task.in_progress`.
|
|
27
|
+
*/
|
|
11
28
|
public static readonly in_progress: 1;
|
|
29
|
+
/**
|
|
30
|
+
* Engine enum value for `task.insignificant`.
|
|
31
|
+
*/
|
|
32
|
+
public static readonly insignificant: 2;
|
|
33
|
+
/**
|
|
34
|
+
* Engine enum value for `task.storyline`.
|
|
35
|
+
*/
|
|
12
36
|
public static readonly storyline: 0;
|
|
37
|
+
/**
|
|
38
|
+
* Engine enum value for `task.task_dummy`.
|
|
39
|
+
*/
|
|
13
40
|
public static readonly task_dummy: 65535;
|
|
14
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Engine-owned task constants.
|
|
44
|
+
*/
|
|
15
45
|
private constructor();
|
|
16
46
|
}
|
|
17
47
|
|
|
@@ -28,49 +58,191 @@ declare module "xray16" {
|
|
|
28
58
|
export type TXR_TaskState = EnumeratedStaticsValues<typeof task>;
|
|
29
59
|
|
|
30
60
|
/**
|
|
61
|
+
* One objective inside a game task.
|
|
62
|
+
*
|
|
31
63
|
* @source C++ class SGameTaskObjective
|
|
32
64
|
* @customConstructor SGameTaskObjective
|
|
33
65
|
* @group xr_task
|
|
66
|
+
*
|
|
67
|
+
* @remarks
|
|
68
|
+
* Objective `0` is the task root objective. Additional objectives start at `1`.
|
|
34
69
|
*/
|
|
35
70
|
export class SGameTaskObjective {
|
|
71
|
+
/**
|
|
72
|
+
* Whether the default map location should be visible for this objective.
|
|
73
|
+
*
|
|
74
|
+
* @remarks
|
|
75
|
+
* This mirrors the native `def_ml_enabled` field used by loaded task objectives.
|
|
76
|
+
*/
|
|
77
|
+
public def_ml_enabled: boolean;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @remarks
|
|
81
|
+
* The objective stores a pointer to `task`; keep the parent task alive while using this objective.
|
|
82
|
+
*
|
|
83
|
+
* @param task - Parent task.
|
|
84
|
+
* @param id - Objective index.
|
|
85
|
+
*/
|
|
36
86
|
public constructor(task: CGameTask, id: i32);
|
|
37
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Get objective index inside the parent task.
|
|
90
|
+
*
|
|
91
|
+
* @returns Objective index.
|
|
92
|
+
*/
|
|
93
|
+
public get_idx(): u16;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Set objective icon texture.
|
|
97
|
+
*
|
|
98
|
+
* @param icon_name - Icon texture or string table id.
|
|
99
|
+
*/
|
|
38
100
|
public set_icon_name(icon_name: string): void;
|
|
39
101
|
|
|
102
|
+
/**
|
|
103
|
+
* @returns Objective icon name, or null when none is set.
|
|
104
|
+
*/
|
|
40
105
|
public get_icon_name<T extends string = string>(): T | null;
|
|
41
106
|
|
|
107
|
+
/**
|
|
108
|
+
* Set objective description text.
|
|
109
|
+
*
|
|
110
|
+
* @param description - Description text or string table id.
|
|
111
|
+
*/
|
|
42
112
|
public set_description(description: string): void;
|
|
43
113
|
|
|
114
|
+
/**
|
|
115
|
+
* @returns Objective description text or string table id.
|
|
116
|
+
*/
|
|
44
117
|
public get_description(): string;
|
|
45
118
|
|
|
119
|
+
/**
|
|
120
|
+
* Set objective title.
|
|
121
|
+
*
|
|
122
|
+
* @param title - Title text or string table id.
|
|
123
|
+
*/
|
|
46
124
|
public set_title(title: string): void;
|
|
47
125
|
|
|
126
|
+
/**
|
|
127
|
+
* @returns Objective title.
|
|
128
|
+
*/
|
|
48
129
|
public get_title(): string;
|
|
49
130
|
|
|
131
|
+
/**
|
|
132
|
+
* Set encyclopedia article id unlocked with this objective.
|
|
133
|
+
*
|
|
134
|
+
* @param id - Encyclopedia article id.
|
|
135
|
+
*/
|
|
136
|
+
public set_article_id(id: string): void;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Set encyclopedia article key for this objective.
|
|
140
|
+
*
|
|
141
|
+
* @param key - Article key.
|
|
142
|
+
*/
|
|
143
|
+
public set_article_key(key: string): void;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Set map spot type used by this objective.
|
|
147
|
+
*
|
|
148
|
+
* @param location - Map location type.
|
|
149
|
+
*/
|
|
50
150
|
public set_map_location(location: string): void;
|
|
51
151
|
|
|
152
|
+
/**
|
|
153
|
+
* Add a script function called after objective completion.
|
|
154
|
+
*
|
|
155
|
+
* @remarks
|
|
156
|
+
* Function names are resolved when a script-created objective is added to a task. Missing functions are logged and
|
|
157
|
+
* then skipped by the engine.
|
|
158
|
+
*
|
|
159
|
+
* @param function_name - Script function name.
|
|
160
|
+
*/
|
|
52
161
|
public add_on_complete_func(function_name: string): void;
|
|
53
162
|
|
|
163
|
+
/**
|
|
164
|
+
* Require an info portion for objective completion.
|
|
165
|
+
*
|
|
166
|
+
* @param value - Info portion id.
|
|
167
|
+
*/
|
|
54
168
|
public add_complete_info(value: string): void;
|
|
55
169
|
|
|
170
|
+
/**
|
|
171
|
+
* Give an info portion when objective fails.
|
|
172
|
+
*
|
|
173
|
+
* @param value - Info portion id.
|
|
174
|
+
*/
|
|
56
175
|
public add_on_fail_info(value: string): void;
|
|
57
176
|
|
|
177
|
+
/**
|
|
178
|
+
* Add a script function called after objective failure.
|
|
179
|
+
*
|
|
180
|
+
* @remarks
|
|
181
|
+
* Function names are resolved when a script-created objective is added to a task. Missing functions are logged and
|
|
182
|
+
* then skipped by the engine.
|
|
183
|
+
*
|
|
184
|
+
* @param function_name - Script function name.
|
|
185
|
+
*/
|
|
58
186
|
public add_on_fail_func(function_name: string): void;
|
|
59
187
|
|
|
188
|
+
/**
|
|
189
|
+
* Give an info portion when objective completes.
|
|
190
|
+
*
|
|
191
|
+
* @param value - Info portion id.
|
|
192
|
+
*/
|
|
60
193
|
public add_on_complete_info(value: string): void;
|
|
61
194
|
|
|
195
|
+
/**
|
|
196
|
+
* Add a script predicate used to decide objective completion.
|
|
197
|
+
*
|
|
198
|
+
* @remarks
|
|
199
|
+
* Function names are resolved when a script-created objective is added to a task. Missing functions are logged and
|
|
200
|
+
* then skipped by the engine.
|
|
201
|
+
*
|
|
202
|
+
* @param function_name - Script function name.
|
|
203
|
+
*/
|
|
62
204
|
public add_complete_func(function_name: string): void;
|
|
63
205
|
|
|
206
|
+
/**
|
|
207
|
+
* Add a script predicate used to decide objective failure.
|
|
208
|
+
*
|
|
209
|
+
* @remarks
|
|
210
|
+
* Function names are resolved when a script-created objective is added to a task. Missing functions are logged and
|
|
211
|
+
* then skipped by the engine.
|
|
212
|
+
*
|
|
213
|
+
* @param function_name - Script function name.
|
|
214
|
+
*/
|
|
64
215
|
public add_fail_func(function_name: string): void;
|
|
65
216
|
|
|
217
|
+
/**
|
|
218
|
+
* Require an info portion for objective failure.
|
|
219
|
+
*
|
|
220
|
+
* @param value - Info portion id.
|
|
221
|
+
*/
|
|
66
222
|
public add_fail_info(value: string): void;
|
|
67
223
|
|
|
224
|
+
/**
|
|
225
|
+
* @returns Current objective state.
|
|
226
|
+
*/
|
|
68
227
|
public get_state(): TXR_TaskState;
|
|
69
228
|
|
|
229
|
+
/**
|
|
230
|
+
* @returns Task type, such as `task.storyline` or `task.additional`.
|
|
231
|
+
*/
|
|
70
232
|
public get_type(): number; /* ETaskType */
|
|
71
233
|
|
|
234
|
+
/**
|
|
235
|
+
* Set task type.
|
|
236
|
+
*
|
|
237
|
+
* @param type - Task type, such as `task.storyline` or `task.additional`.
|
|
238
|
+
*/
|
|
72
239
|
public set_type(type: i32 /* ETaskType */): void;
|
|
73
240
|
|
|
241
|
+
/**
|
|
242
|
+
* Set hint text for the linked map location.
|
|
243
|
+
*
|
|
244
|
+
* @param hint - Hint text or string table id.
|
|
245
|
+
*/
|
|
74
246
|
public set_map_hint(hint: string): void;
|
|
75
247
|
|
|
76
248
|
/**
|
|
@@ -83,29 +255,134 @@ declare module "xray16" {
|
|
|
83
255
|
*/
|
|
84
256
|
public get_map_object_id(): u16;
|
|
85
257
|
|
|
258
|
+
/**
|
|
259
|
+
* Replace linked map location data and recreate the spot.
|
|
260
|
+
*
|
|
261
|
+
* @remarks
|
|
262
|
+
* Removes the current linked spot, sets the objective back to `task.in_progress`, then creates a new map spot.
|
|
263
|
+
*
|
|
264
|
+
* @param new_map_location - New map location type.
|
|
265
|
+
* @param new_map_object_id - New target object id.
|
|
266
|
+
*/
|
|
86
267
|
public change_map_location(new_map_location: string, new_map_object_id: u16): void;
|
|
87
268
|
|
|
269
|
+
/**
|
|
270
|
+
* Remove linked map locations.
|
|
271
|
+
*
|
|
272
|
+
* @remarks
|
|
273
|
+
* When `notify` is `false`, the linked map location is removed from the level map manager. The objective then clears
|
|
274
|
+
* its stored location type and object id.
|
|
275
|
+
*
|
|
276
|
+
* @param notify - Whether to notify task manager that the location was released.
|
|
277
|
+
*/
|
|
88
278
|
public remove_map_locations(notify: boolean): void;
|
|
89
279
|
|
|
280
|
+
/**
|
|
281
|
+
* Create the linked map location if the objective has a spot type and object id.
|
|
282
|
+
*
|
|
283
|
+
* @remarks
|
|
284
|
+
* During load, the objective tries to reattach to an existing serializable spot owned by the task. During normal
|
|
285
|
+
* creation, it creates a new serializable spot and disables its pointer. The objective must already have a map
|
|
286
|
+
* location type and a valid game object id.
|
|
287
|
+
*
|
|
288
|
+
* @param on_load - Whether creation happens during save loading.
|
|
289
|
+
*/
|
|
90
290
|
public create_map_location(on_load: boolean): void;
|
|
91
291
|
|
|
292
|
+
/**
|
|
293
|
+
* Set object id tracked by the objective map spot.
|
|
294
|
+
*
|
|
295
|
+
* @param id - Game object id.
|
|
296
|
+
*/
|
|
92
297
|
public set_map_object_id(id: i32): void;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Shadow of Chernobyl alias for `set_map_object_id`.
|
|
301
|
+
*
|
|
302
|
+
* @param id - Game object id.
|
|
303
|
+
*/
|
|
304
|
+
public set_object_id(id: i32): void;
|
|
93
305
|
}
|
|
94
306
|
|
|
95
307
|
/**
|
|
308
|
+
* Game task with one or more objectives.
|
|
309
|
+
*
|
|
96
310
|
* @source C++ class CGameTask : SGameTaskObjective
|
|
97
311
|
* @customConstructor CGameTask
|
|
98
312
|
* @group xr_task
|
|
313
|
+
*
|
|
314
|
+
* @remarks
|
|
315
|
+
* A task is also its root objective. Methods inherited from `SGameTaskObjective` operate on that root objective.
|
|
99
316
|
*/
|
|
100
317
|
export class CGameTask extends SGameTaskObjective {
|
|
318
|
+
/**
|
|
319
|
+
* Create an empty game task.
|
|
320
|
+
*/
|
|
101
321
|
public constructor();
|
|
102
322
|
|
|
323
|
+
/**
|
|
324
|
+
* Load task data from configs.
|
|
325
|
+
*
|
|
326
|
+
* @remarks
|
|
327
|
+
* Reads from `gameplay/game_tasks.xml`. Task XML function names are resolved immediately.
|
|
328
|
+
*
|
|
329
|
+
* @throws If the task id is missing from `game_tasks.xml` or a referenced task function cannot be resolved.
|
|
330
|
+
*
|
|
331
|
+
* @param id - Task id.
|
|
332
|
+
*/
|
|
333
|
+
public load(id: string): void;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* @returns Task id.
|
|
337
|
+
*/
|
|
103
338
|
public get_id(): string;
|
|
104
339
|
|
|
340
|
+
/**
|
|
341
|
+
* Set task priority used by task UI ordering.
|
|
342
|
+
*
|
|
343
|
+
* @param priority - New priority.
|
|
344
|
+
*/
|
|
105
345
|
public set_priority(priority: i32): void;
|
|
106
346
|
|
|
347
|
+
/**
|
|
348
|
+
* Set task id.
|
|
349
|
+
*
|
|
350
|
+
* @param id - Task id.
|
|
351
|
+
*/
|
|
107
352
|
public set_id(id: string): void;
|
|
108
353
|
|
|
354
|
+
/**
|
|
355
|
+
* @returns Task priority.
|
|
356
|
+
*/
|
|
109
357
|
public get_priority(): u32;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Add an objective to this task.
|
|
361
|
+
*
|
|
362
|
+
* @remarks
|
|
363
|
+
* The native binding adopts the objective and copies its current data into the task objective list. Mutating the
|
|
364
|
+
* original objective after this call does not update the stored copy.
|
|
365
|
+
*
|
|
366
|
+
* @param objective - Objective to adopt into the task.
|
|
367
|
+
*/
|
|
368
|
+
public add_objective(objective: SGameTaskObjective): void;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Get objective by index.
|
|
372
|
+
*
|
|
373
|
+
* @remarks
|
|
374
|
+
* Index `0` returns the root objective. Other indices access native storage without a bounds check.
|
|
375
|
+
*
|
|
376
|
+
* @param objective_id - Objective index.
|
|
377
|
+
* @returns Objective instance.
|
|
378
|
+
*/
|
|
379
|
+
public get_objective(objective_id: i32): SGameTaskObjective;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Count task objectives including the root objective.
|
|
383
|
+
*
|
|
384
|
+
* @returns Objective count.
|
|
385
|
+
*/
|
|
386
|
+
public get_objectives_cnt(): u32;
|
|
110
387
|
}
|
|
111
388
|
}
|
|
@@ -7,6 +7,8 @@ declare module "xray16" {
|
|
|
7
7
|
* @source C++ class CTime
|
|
8
8
|
* @customConstructor CTime
|
|
9
9
|
* @group xr_time
|
|
10
|
+
* @remarks
|
|
11
|
+
* Methods such as `add`, `sub`, `set`, and `setHMS` mutate the current instance.
|
|
10
12
|
*/
|
|
11
13
|
export class CTime extends EngineBinding {
|
|
12
14
|
/**
|
|
@@ -131,6 +133,9 @@ declare module "xray16" {
|
|
|
131
133
|
/**
|
|
132
134
|
* Subtract another time value from this one.
|
|
133
135
|
*
|
|
136
|
+
* @remarks
|
|
137
|
+
* The result is clamped at zero when `time` is greater than the current value.
|
|
138
|
+
*
|
|
134
139
|
* @param time - Time span to subtract.
|
|
135
140
|
*/
|
|
136
141
|
public sub(time: CTime): void;
|
|
@@ -149,6 +154,9 @@ declare module "xray16" {
|
|
|
149
154
|
*
|
|
150
155
|
* @group xr_time
|
|
151
156
|
*
|
|
157
|
+
* @remarks
|
|
158
|
+
* Reads `Device.dwTimeGlobal`, the frame-updated engine clock.
|
|
159
|
+
*
|
|
152
160
|
* @example 0, 1000, 60000
|
|
153
161
|
*
|
|
154
162
|
* @returns Milliseconds from game executable start.
|
|
@@ -160,6 +168,9 @@ declare module "xray16" {
|
|
|
160
168
|
*
|
|
161
169
|
* @group xr_time
|
|
162
170
|
*
|
|
171
|
+
* @remarks
|
|
172
|
+
* Reads the asynchronous multimedia timer, so it can advance outside the frame-updated `time_global` value.
|
|
173
|
+
*
|
|
163
174
|
* @returns Milliseconds from game executable start.
|
|
164
175
|
*/
|
|
165
176
|
export function time_global_async(this: void): u32;
|
|
@@ -1,19 +1,31 @@
|
|
|
1
1
|
declare module "xray16" {
|
|
2
2
|
/**
|
|
3
|
+
* Client object binding for `CMosquitoBald` anomaly objects.
|
|
4
|
+
*
|
|
3
5
|
* @source C++ class CMosquitoBald : CGameObject
|
|
4
6
|
* @customConstructor CMosquitoBald
|
|
5
7
|
* @group xr_anomaly
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* Concrete anomaly wrapper. Generic anomaly helpers are usually available through `CCustomZone`/`game_object`.
|
|
6
11
|
*/
|
|
7
12
|
export class CMosquitoBald extends CGameObject {}
|
|
8
13
|
|
|
9
14
|
/**
|
|
15
|
+
* Client object binding for torch items.
|
|
16
|
+
*
|
|
10
17
|
* @source C++ class CTorch : CGameObject
|
|
11
18
|
* @customConstructor CTorch
|
|
12
19
|
* @group xr_anomaly
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Torch-specific night-vision helpers on `game_object` require this runtime object.
|
|
13
23
|
*/
|
|
14
24
|
export class CTorch extends CGameObject {}
|
|
15
25
|
|
|
16
26
|
/**
|
|
27
|
+
* Client object binding for `CTorridZone` anomaly objects.
|
|
28
|
+
*
|
|
17
29
|
* @source C++ class CTorridZone : CGameObject
|
|
18
30
|
* @customConstructor CTorridZone
|
|
19
31
|
* @group xr_anomaly
|
|
@@ -21,6 +33,8 @@ declare module "xray16" {
|
|
|
21
33
|
export class CTorridZone extends CGameObject {}
|
|
22
34
|
|
|
23
35
|
/**
|
|
36
|
+
* Client object binding for `CRadioactiveZone` anomaly objects.
|
|
37
|
+
*
|
|
24
38
|
* @source C++ class CRadioactiveZone : CGameObject
|
|
25
39
|
* @customConstructor CRadioactiveZone
|
|
26
40
|
* @group xr_anomaly
|
|
@@ -28,6 +42,8 @@ declare module "xray16" {
|
|
|
28
42
|
export class CRadioactiveZone extends CGameObject {}
|
|
29
43
|
|
|
30
44
|
/**
|
|
45
|
+
* Client object binding for `CMincer` anomaly objects.
|
|
46
|
+
*
|
|
31
47
|
* @source C++ class CMincer : CGameObject
|
|
32
48
|
* @customConstructor CMincer
|
|
33
49
|
* @group xr_anomaly
|
|
@@ -35,6 +51,8 @@ declare module "xray16" {
|
|
|
35
51
|
export class CMincer extends CGameObject {}
|
|
36
52
|
|
|
37
53
|
/**
|
|
54
|
+
* Client object binding for `CFracture` anomaly objects.
|
|
55
|
+
*
|
|
38
56
|
* @source C++ class CFracture : CGameObject
|
|
39
57
|
* @customConstructor CFracture
|
|
40
58
|
* @group xr_anomaly
|
|
@@ -42,6 +60,8 @@ declare module "xray16" {
|
|
|
42
60
|
export class CFracture extends CGameObject {}
|
|
43
61
|
|
|
44
62
|
/**
|
|
63
|
+
* Client object binding for `CHairsZone` anomaly objects.
|
|
64
|
+
*
|
|
45
65
|
* @source C++ class CHairsZone : CGameObject
|
|
46
66
|
* @customConstructor CHairsZone
|
|
47
67
|
* @group xr_anomaly
|
|
@@ -1,18 +1,51 @@
|
|
|
1
1
|
declare module "xray16" {
|
|
2
2
|
/**
|
|
3
|
+
* Client-side artefact object.
|
|
4
|
+
*
|
|
3
5
|
* @source C++ class CArtefact : CGameObject
|
|
4
6
|
* @customConstructor CArtefact
|
|
5
7
|
* @group xr_artefact
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* Scripts usually reach this wrapper through `game_object.cast_Artefact()` after checking `is_artefact()`.
|
|
6
11
|
*/
|
|
7
12
|
export class CArtefact extends CGameObject {
|
|
13
|
+
/**
|
|
14
|
+
* Create an artefact object wrapper.
|
|
15
|
+
*/
|
|
8
16
|
public constructor();
|
|
9
17
|
|
|
10
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Move the artefact along a patrol path.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Requires a patrol path with the given name. The point index must refer to an existing path point.
|
|
23
|
+
*
|
|
24
|
+
* @param path_name - Patrol path name.
|
|
25
|
+
* @param point_index - Starting path point index.
|
|
26
|
+
* @param position - Initial position.
|
|
27
|
+
*/
|
|
28
|
+
public FollowByPath(path_name: string, point_index: i32, position: vector): void;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @returns Artefact rank used by detectors and inventory UI.
|
|
32
|
+
*/
|
|
11
33
|
public GetAfRank(): u8;
|
|
12
|
-
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Show or hide the artefact.
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* This changes the artefact's client visibility; it does not spawn or destroy the object.
|
|
40
|
+
*
|
|
41
|
+
* @param is_visible - New visibility state.
|
|
42
|
+
*/
|
|
43
|
+
public SwitchVisibility(is_visible: boolean): void;
|
|
13
44
|
}
|
|
14
45
|
|
|
15
46
|
/**
|
|
47
|
+
* Client object binding for `CZudaArtefact` artefacts.
|
|
48
|
+
*
|
|
16
49
|
* @source C++ class CZudaArtefact : CArtefact
|
|
17
50
|
* @customConstructor CZudaArtefact
|
|
18
51
|
* @group xr_artefact
|
|
@@ -20,6 +53,8 @@ declare module "xray16" {
|
|
|
20
53
|
export class CZudaArtefact extends CArtefact {}
|
|
21
54
|
|
|
22
55
|
/**
|
|
56
|
+
* Client object binding for `CThornArtefact` artefacts.
|
|
57
|
+
*
|
|
23
58
|
* @source C++ class CThornArtefact : CArtefact
|
|
24
59
|
* @customConstructor CThornArtefact
|
|
25
60
|
* @group xr_artefact
|
|
@@ -27,6 +62,8 @@ declare module "xray16" {
|
|
|
27
62
|
export class CThornArtefact extends CArtefact {}
|
|
28
63
|
|
|
29
64
|
/**
|
|
65
|
+
* Client object binding for `CBastArtefact` artefacts.
|
|
66
|
+
*
|
|
30
67
|
* @source C++ class CBastArtefact : CArtefact
|
|
31
68
|
* @customConstructor CBastArtefact
|
|
32
69
|
* @group xr_artefact
|
|
@@ -34,6 +71,8 @@ declare module "xray16" {
|
|
|
34
71
|
export class CBastArtefact extends CArtefact {}
|
|
35
72
|
|
|
36
73
|
/**
|
|
74
|
+
* Client object binding for `CBlackDrops` artefacts.
|
|
75
|
+
*
|
|
37
76
|
* @source C++ class CBlackDrops : CArtefact
|
|
38
77
|
* @customConstructor CBlackDrops
|
|
39
78
|
* @group xr_artefact
|
|
@@ -41,6 +80,8 @@ declare module "xray16" {
|
|
|
41
80
|
export class CBlackDrops extends CArtefact {}
|
|
42
81
|
|
|
43
82
|
/**
|
|
83
|
+
* Client object binding for `CBlackGraviArtefact` artefacts.
|
|
84
|
+
*
|
|
44
85
|
* @source C++ class CBlackGraviArtefact : CArtefact
|
|
45
86
|
* @customConstructor CBlackGraviArtefact
|
|
46
87
|
* @group xr_artefact
|
|
@@ -48,6 +89,8 @@ declare module "xray16" {
|
|
|
48
89
|
export class CBlackGraviArtefact extends CArtefact {}
|
|
49
90
|
|
|
50
91
|
/**
|
|
92
|
+
* Client object binding for `CDummyArtefact` artefacts.
|
|
93
|
+
*
|
|
51
94
|
* @source C++ class CDummyArtefact : CArtefact
|
|
52
95
|
* @customConstructor CDummyArtefact
|
|
53
96
|
* @group xr_artefact
|
|
@@ -55,6 +98,8 @@ declare module "xray16" {
|
|
|
55
98
|
export class CDummyArtefact extends CArtefact {}
|
|
56
99
|
|
|
57
100
|
/**
|
|
101
|
+
* Client object binding for `CElectricBall` artefacts.
|
|
102
|
+
*
|
|
58
103
|
* @source C++ class CElectricBall : CArtefact
|
|
59
104
|
* @customConstructor CElectricBall
|
|
60
105
|
* @group xr_artefact
|
|
@@ -62,6 +107,8 @@ declare module "xray16" {
|
|
|
62
107
|
export class CElectricBall extends CArtefact {}
|
|
63
108
|
|
|
64
109
|
/**
|
|
110
|
+
* Client object binding for `CFadedBall` artefacts.
|
|
111
|
+
*
|
|
65
112
|
* @source C++ class CFadedBall : CArtefact
|
|
66
113
|
* @customConstructor CFadedBall
|
|
67
114
|
* @group xr_artefact
|
|
@@ -69,6 +116,8 @@ declare module "xray16" {
|
|
|
69
116
|
export class CFadedBall extends CArtefact {}
|
|
70
117
|
|
|
71
118
|
/**
|
|
119
|
+
* Client object binding for `CGalantineArtefact` artefacts.
|
|
120
|
+
*
|
|
72
121
|
* @source C++ class CGalantineArtefact : CArtefact
|
|
73
122
|
* @customConstructor CGalantineArtefact
|
|
74
123
|
* @group xr_artefact
|
|
@@ -76,6 +125,8 @@ declare module "xray16" {
|
|
|
76
125
|
export class CGalantineArtefact extends CArtefact {}
|
|
77
126
|
|
|
78
127
|
/**
|
|
128
|
+
* Client object binding for `CGraviArtefact` artefacts.
|
|
129
|
+
*
|
|
79
130
|
* @source C++ class CGraviArtefact : CArtefact
|
|
80
131
|
* @customConstructor CGraviArtefact
|
|
81
132
|
* @group xr_artefact
|
|
@@ -83,6 +134,8 @@ declare module "xray16" {
|
|
|
83
134
|
export class CGraviArtefact extends CArtefact {}
|
|
84
135
|
|
|
85
136
|
/**
|
|
137
|
+
* Client object binding for `CMercuryBall` artefacts.
|
|
138
|
+
*
|
|
86
139
|
* @source C++ class CMercuryBall : CArtefact
|
|
87
140
|
* @customConstructor CMercuryBall
|
|
88
141
|
* @group xr_artefact
|
|
@@ -90,6 +143,8 @@ declare module "xray16" {
|
|
|
90
143
|
export class CMercuryBall extends CArtefact {}
|
|
91
144
|
|
|
92
145
|
/**
|
|
146
|
+
* Client object binding for `CRustyHairArtefact` artefacts.
|
|
147
|
+
*
|
|
93
148
|
* @source C++ class CRustyHairArtefact : CArtefact
|
|
94
149
|
* @customConstructor CRustyHairArtefact
|
|
95
150
|
* @group xr_artefact
|