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
package/types/xr_ai/xr_goap.d.ts
CHANGED
|
@@ -1,109 +1,360 @@
|
|
|
1
1
|
declare module "xray16" {
|
|
2
2
|
/**
|
|
3
|
+
* GOAP property and action id constants for stalker AI.
|
|
4
|
+
*
|
|
3
5
|
* @source C++ class stalker_ids
|
|
4
6
|
* @customConstructor stalker_ids
|
|
5
7
|
* @group xr_goap
|
|
6
8
|
*/
|
|
7
9
|
export class stalker_ids {
|
|
10
|
+
/**
|
|
11
|
+
* Engine enum value for `stalker_ids.action_accomplish_task`.
|
|
12
|
+
*/
|
|
8
13
|
public static readonly action_accomplish_task: 7;
|
|
14
|
+
/**
|
|
15
|
+
* Engine enum value for `stalker_ids.action_aim_enemy`.
|
|
16
|
+
*/
|
|
9
17
|
public static readonly action_aim_enemy: 16;
|
|
18
|
+
/**
|
|
19
|
+
* Engine enum value for `stalker_ids.action_alife_planner`.
|
|
20
|
+
*/
|
|
10
21
|
public static readonly action_alife_planner: 88;
|
|
22
|
+
/**
|
|
23
|
+
* Engine enum value for `stalker_ids.action_anomaly_planner`.
|
|
24
|
+
*/
|
|
11
25
|
public static readonly action_anomaly_planner: 90;
|
|
26
|
+
/**
|
|
27
|
+
* Engine enum value for `stalker_ids.action_combat_planner`.
|
|
28
|
+
*/
|
|
12
29
|
public static readonly action_combat_planner: 89;
|
|
30
|
+
/**
|
|
31
|
+
* Engine enum value for `stalker_ids.action_communicate_with_customer`.
|
|
32
|
+
*/
|
|
13
33
|
public static readonly action_communicate_with_customer: 9;
|
|
34
|
+
/**
|
|
35
|
+
* Engine enum value for `stalker_ids.action_critically_wounded`.
|
|
36
|
+
*/
|
|
14
37
|
public static readonly action_critically_wounded: 36;
|
|
38
|
+
/**
|
|
39
|
+
* Engine enum value for `stalker_ids.action_danger_by_sound_planner`.
|
|
40
|
+
*/
|
|
15
41
|
public static readonly action_danger_by_sound_planner: 73;
|
|
42
|
+
/**
|
|
43
|
+
* Engine enum value for `stalker_ids.action_danger_grenade_look_around`.
|
|
44
|
+
*/
|
|
16
45
|
public static readonly action_danger_grenade_look_around: 85;
|
|
46
|
+
/**
|
|
47
|
+
* Engine enum value for `stalker_ids.action_danger_grenade_planner`.
|
|
48
|
+
*/
|
|
17
49
|
public static readonly action_danger_grenade_planner: 72;
|
|
50
|
+
/**
|
|
51
|
+
* Engine enum value for `stalker_ids.action_danger_grenade_search`.
|
|
52
|
+
*/
|
|
18
53
|
public static readonly action_danger_grenade_search: 86;
|
|
54
|
+
/**
|
|
55
|
+
* Engine enum value for `stalker_ids.action_danger_grenade_take_cover`.
|
|
56
|
+
*/
|
|
19
57
|
public static readonly action_danger_grenade_take_cover: 82;
|
|
58
|
+
/**
|
|
59
|
+
* Engine enum value for `stalker_ids.action_danger_grenade_take_cover_after_explosion`.
|
|
60
|
+
*/
|
|
20
61
|
public static readonly action_danger_grenade_take_cover_after_explosion: 84;
|
|
62
|
+
/**
|
|
63
|
+
* Engine enum value for `stalker_ids.action_danger_grenade_wait_for_explosion`.
|
|
64
|
+
*/
|
|
21
65
|
public static readonly action_danger_grenade_wait_for_explosion: 83;
|
|
66
|
+
/**
|
|
67
|
+
* Engine enum value for `stalker_ids.action_danger_in_direction_detour`.
|
|
68
|
+
*/
|
|
22
69
|
public static readonly action_danger_in_direction_detour: 80;
|
|
70
|
+
/**
|
|
71
|
+
* Engine enum value for `stalker_ids.action_danger_in_direction_hold_position`.
|
|
72
|
+
*/
|
|
23
73
|
public static readonly action_danger_in_direction_hold_position: 79;
|
|
74
|
+
/**
|
|
75
|
+
* Engine enum value for `stalker_ids.action_danger_in_direction_look_out`.
|
|
76
|
+
*/
|
|
24
77
|
public static readonly action_danger_in_direction_look_out: 78;
|
|
78
|
+
/**
|
|
79
|
+
* Engine enum value for `stalker_ids.action_danger_in_direction_planner`.
|
|
80
|
+
*/
|
|
25
81
|
public static readonly action_danger_in_direction_planner: 71;
|
|
82
|
+
/**
|
|
83
|
+
* Engine enum value for `stalker_ids.action_danger_in_direction_search`.
|
|
84
|
+
*/
|
|
26
85
|
public static readonly action_danger_in_direction_search: 81;
|
|
86
|
+
/**
|
|
87
|
+
* Engine enum value for `stalker_ids.action_danger_in_direction_take_cover`.
|
|
88
|
+
*/
|
|
27
89
|
public static readonly action_danger_in_direction_take_cover: 77;
|
|
90
|
+
/**
|
|
91
|
+
* Engine enum value for `stalker_ids.action_danger_planner`.
|
|
92
|
+
*/
|
|
28
93
|
public static readonly action_danger_planner: 91;
|
|
94
|
+
/**
|
|
95
|
+
* Engine enum value for `stalker_ids.action_danger_unknown_look_around`.
|
|
96
|
+
*/
|
|
29
97
|
public static readonly action_danger_unknown_look_around: 75;
|
|
98
|
+
/**
|
|
99
|
+
* Engine enum value for `stalker_ids.action_danger_unknown_planner`.
|
|
100
|
+
*/
|
|
30
101
|
public static readonly action_danger_unknown_planner: 70;
|
|
102
|
+
/**
|
|
103
|
+
* Engine enum value for `stalker_ids.action_danger_unknown_search`.
|
|
104
|
+
*/
|
|
31
105
|
public static readonly action_danger_unknown_search: 76;
|
|
106
|
+
/**
|
|
107
|
+
* Engine enum value for `stalker_ids.action_danger_unknown_take_cover`.
|
|
108
|
+
*/
|
|
32
109
|
public static readonly action_danger_unknown_take_cover: 74;
|
|
110
|
+
/**
|
|
111
|
+
* Engine enum value for `stalker_ids.action_dead`.
|
|
112
|
+
*/
|
|
33
113
|
public static readonly action_dead: 0;
|
|
114
|
+
/**
|
|
115
|
+
* Engine enum value for `stalker_ids.action_death_planner`.
|
|
116
|
+
*/
|
|
34
117
|
public static readonly action_death_planner: 87;
|
|
118
|
+
/**
|
|
119
|
+
* Engine enum value for `stalker_ids.action_detour_enemy`.
|
|
120
|
+
*/
|
|
35
121
|
public static readonly action_detour_enemy: 25;
|
|
122
|
+
/**
|
|
123
|
+
* Engine enum value for `stalker_ids.action_dying`.
|
|
124
|
+
*/
|
|
36
125
|
public static readonly action_dying: 1;
|
|
126
|
+
/**
|
|
127
|
+
* Engine enum value for `stalker_ids.action_find_ammo`.
|
|
128
|
+
*/
|
|
37
129
|
public static readonly action_find_ammo: 15;
|
|
130
|
+
/**
|
|
131
|
+
* Engine enum value for `stalker_ids.action_find_item_to_kill`.
|
|
132
|
+
*/
|
|
38
133
|
public static readonly action_find_item_to_kill: 13;
|
|
134
|
+
/**
|
|
135
|
+
* Engine enum value for `stalker_ids.action_gather_items`.
|
|
136
|
+
*/
|
|
39
137
|
public static readonly action_gather_items: 2;
|
|
138
|
+
/**
|
|
139
|
+
* Engine enum value for `stalker_ids.action_get_distance`.
|
|
140
|
+
*/
|
|
40
141
|
public static readonly action_get_distance: 24;
|
|
142
|
+
/**
|
|
143
|
+
* Engine enum value for `stalker_ids.action_get_item_to_kill`.
|
|
144
|
+
*/
|
|
41
145
|
public static readonly action_get_item_to_kill: 12;
|
|
146
|
+
/**
|
|
147
|
+
* Engine enum value for `stalker_ids.action_get_ready_to_kill`.
|
|
148
|
+
*/
|
|
42
149
|
public static readonly action_get_ready_to_kill: 17;
|
|
150
|
+
/**
|
|
151
|
+
* Engine enum value for `stalker_ids.action_hold_position`.
|
|
152
|
+
*/
|
|
43
153
|
public static readonly action_hold_position: 23;
|
|
154
|
+
/**
|
|
155
|
+
* Engine enum value for `stalker_ids.action_kill_enemy`.
|
|
156
|
+
*/
|
|
44
157
|
public static readonly action_kill_enemy: 19;
|
|
158
|
+
/**
|
|
159
|
+
* Engine enum value for `stalker_ids.action_kill_enemy_if_not_visible`.
|
|
160
|
+
*/
|
|
45
161
|
public static readonly action_kill_enemy_if_not_visible: 29;
|
|
162
|
+
/**
|
|
163
|
+
* Engine enum value for `stalker_ids.action_kill_if_enemy_critically_wounded`.
|
|
164
|
+
*/
|
|
46
165
|
public static readonly action_kill_if_enemy_critically_wounded: 37;
|
|
166
|
+
/**
|
|
167
|
+
* Engine enum value for `stalker_ids.action_kill_if_player_on_the_path`.
|
|
168
|
+
*/
|
|
47
169
|
public static readonly action_kill_if_player_on_the_path: 35;
|
|
170
|
+
/**
|
|
171
|
+
* Engine enum value for `stalker_ids.action_kill_wounded_enemy`.
|
|
172
|
+
*/
|
|
48
173
|
public static readonly action_kill_wounded_enemy: 33;
|
|
174
|
+
/**
|
|
175
|
+
* Engine enum value for `stalker_ids.action_look_out`.
|
|
176
|
+
*/
|
|
49
177
|
public static readonly action_look_out: 22;
|
|
178
|
+
/**
|
|
179
|
+
* Engine enum value for `stalker_ids.action_make_item_killing`.
|
|
180
|
+
*/
|
|
50
181
|
public static readonly action_make_item_killing: 14;
|
|
182
|
+
/**
|
|
183
|
+
* Engine enum value for `stalker_ids.action_no_alife`.
|
|
184
|
+
*/
|
|
51
185
|
public static readonly action_no_alife: 3;
|
|
186
|
+
/**
|
|
187
|
+
* Engine enum value for `stalker_ids.action_post_combat_wait`.
|
|
188
|
+
*/
|
|
52
189
|
public static readonly action_post_combat_wait: 34;
|
|
190
|
+
/**
|
|
191
|
+
* Engine enum value for `stalker_ids.action_prepare_wounded_enemy`.
|
|
192
|
+
*/
|
|
53
193
|
public static readonly action_prepare_wounded_enemy: 32;
|
|
194
|
+
/**
|
|
195
|
+
* Engine enum value for `stalker_ids.action_reach_customer_location`.
|
|
196
|
+
*/
|
|
54
197
|
public static readonly action_reach_customer_location: 8;
|
|
198
|
+
/**
|
|
199
|
+
* Engine enum value for `stalker_ids.action_reach_task_location`.
|
|
200
|
+
*/
|
|
55
201
|
public static readonly action_reach_task_location: 6;
|
|
202
|
+
/**
|
|
203
|
+
* Engine enum value for `stalker_ids.action_reach_wounded_enemy`.
|
|
204
|
+
*/
|
|
56
205
|
public static readonly action_reach_wounded_enemy: 30;
|
|
206
|
+
/**
|
|
207
|
+
* Engine enum value for `stalker_ids.action_retreat_from_enemy`.
|
|
208
|
+
*/
|
|
57
209
|
public static readonly action_retreat_from_enemy: 20;
|
|
210
|
+
/**
|
|
211
|
+
* Engine enum value for `stalker_ids.action_script`.
|
|
212
|
+
*/
|
|
58
213
|
public static readonly action_script: 92;
|
|
214
|
+
/**
|
|
215
|
+
* Engine enum value for `stalker_ids.action_search_enemy`.
|
|
216
|
+
*/
|
|
59
217
|
public static readonly action_search_enemy: 26;
|
|
218
|
+
/**
|
|
219
|
+
* Engine enum value for `stalker_ids.action_smart_terrain_task`.
|
|
220
|
+
*/
|
|
60
221
|
public static readonly action_smart_terrain_task: 4;
|
|
222
|
+
/**
|
|
223
|
+
* Engine enum value for `stalker_ids.action_solve_zone_puzzle`.
|
|
224
|
+
*/
|
|
61
225
|
public static readonly action_solve_zone_puzzle: 5;
|
|
226
|
+
/**
|
|
227
|
+
* Engine enum value for `stalker_ids.action_sudden_attack`.
|
|
228
|
+
*/
|
|
62
229
|
public static readonly action_sudden_attack: 28;
|
|
230
|
+
/**
|
|
231
|
+
* Engine enum value for `stalker_ids.action_take_cover`.
|
|
232
|
+
*/
|
|
63
233
|
public static readonly action_take_cover: 21;
|
|
234
|
+
/**
|
|
235
|
+
* Engine enum value for `stalker_ids.detect_anomaly`.
|
|
236
|
+
*/
|
|
64
237
|
public static readonly detect_anomaly: 11;
|
|
238
|
+
/**
|
|
239
|
+
* Engine enum value for `stalker_ids.get_out_of_anomaly`.
|
|
240
|
+
*/
|
|
65
241
|
public static readonly get_out_of_anomaly: 10;
|
|
66
242
|
|
|
243
|
+
/**
|
|
244
|
+
* Engine enum value for `stalker_ids.property_alife`.
|
|
245
|
+
*/
|
|
67
246
|
public static readonly property_alife: 3;
|
|
68
247
|
/**
|
|
69
248
|
* Whether object is alive.
|
|
70
249
|
*/
|
|
71
250
|
public static readonly property_alive: 0;
|
|
251
|
+
/**
|
|
252
|
+
* Engine enum value for `stalker_ids.property_already_dead`.
|
|
253
|
+
*/
|
|
72
254
|
public static readonly property_already_dead: 2;
|
|
255
|
+
/**
|
|
256
|
+
* Engine enum value for `stalker_ids.property_anomaly`.
|
|
257
|
+
*/
|
|
73
258
|
public static readonly property_anomaly: 46;
|
|
259
|
+
/**
|
|
260
|
+
* Engine enum value for `stalker_ids.property_cover_actual`.
|
|
261
|
+
*/
|
|
74
262
|
public static readonly property_cover_actual: 42;
|
|
263
|
+
/**
|
|
264
|
+
* Engine enum value for `stalker_ids.property_cover_reached`.
|
|
265
|
+
*/
|
|
75
266
|
public static readonly property_cover_reached: 43;
|
|
267
|
+
/**
|
|
268
|
+
* Engine enum value for `stalker_ids.property_critically_wounded`.
|
|
269
|
+
*/
|
|
76
270
|
public static readonly property_critically_wounded: 29;
|
|
271
|
+
/**
|
|
272
|
+
* Engine enum value for `stalker_ids.property_danger`.
|
|
273
|
+
*/
|
|
77
274
|
public static readonly property_danger: 8;
|
|
275
|
+
/**
|
|
276
|
+
* Engine enum value for `stalker_ids.property_danger_by_sound`.
|
|
277
|
+
*/
|
|
78
278
|
public static readonly property_danger_by_sound: 41;
|
|
279
|
+
/**
|
|
280
|
+
* Engine enum value for `stalker_ids.property_danger_grenade`.
|
|
281
|
+
*/
|
|
79
282
|
public static readonly property_danger_grenade: 40;
|
|
283
|
+
/**
|
|
284
|
+
* Engine enum value for `stalker_ids.property_danger_in_direction`.
|
|
285
|
+
*/
|
|
80
286
|
public static readonly property_danger_in_direction: 39;
|
|
287
|
+
/**
|
|
288
|
+
* Engine enum value for `stalker_ids.property_danger_unknown`.
|
|
289
|
+
*/
|
|
81
290
|
public static readonly property_danger_unknown: 38;
|
|
291
|
+
/**
|
|
292
|
+
* Engine enum value for `stalker_ids.property_dead`.
|
|
293
|
+
*/
|
|
82
294
|
public static readonly property_dead: 1;
|
|
83
295
|
/**
|
|
84
296
|
* Whether object has any enemy.
|
|
85
297
|
*/
|
|
86
298
|
public static readonly property_enemy: 7;
|
|
299
|
+
/**
|
|
300
|
+
* Engine enum value for `stalker_ids.property_enemy_critically_wounded`.
|
|
301
|
+
*/
|
|
87
302
|
public static readonly property_enemy_critically_wounded: 30;
|
|
303
|
+
/**
|
|
304
|
+
* Engine enum value for `stalker_ids.property_enemy_detoured`.
|
|
305
|
+
*/
|
|
88
306
|
public static readonly property_enemy_detoured: 21;
|
|
307
|
+
/**
|
|
308
|
+
* Engine enum value for `stalker_ids.property_found_ammo`.
|
|
309
|
+
*/
|
|
89
310
|
public static readonly property_found_ammo: 12;
|
|
311
|
+
/**
|
|
312
|
+
* Engine enum value for `stalker_ids.property_found_item_to_kill`.
|
|
313
|
+
*/
|
|
90
314
|
public static readonly property_found_item_to_kill: 10;
|
|
315
|
+
/**
|
|
316
|
+
* Engine enum value for `stalker_ids.property_grenade_exploded`.
|
|
317
|
+
*/
|
|
91
318
|
public static readonly property_grenade_exploded: 45;
|
|
319
|
+
/**
|
|
320
|
+
* Engine enum value for `stalker_ids.property_in_cover`.
|
|
321
|
+
*/
|
|
92
322
|
public static readonly property_in_cover: 18;
|
|
323
|
+
/**
|
|
324
|
+
* Engine enum value for `stalker_ids.property_inside_anomaly`.
|
|
325
|
+
*/
|
|
93
326
|
public static readonly property_inside_anomaly: 47;
|
|
327
|
+
/**
|
|
328
|
+
* Engine enum value for `stalker_ids.property_item_can_kill`.
|
|
329
|
+
*/
|
|
94
330
|
public static readonly property_item_can_kill: 11;
|
|
331
|
+
/**
|
|
332
|
+
* Engine enum value for `stalker_ids.property_item_to_kill`.
|
|
333
|
+
*/
|
|
95
334
|
public static readonly property_item_to_kill: 9;
|
|
96
335
|
/**
|
|
97
336
|
* Whether object has valuable items to be looted after death.
|
|
98
337
|
*/
|
|
99
338
|
public static readonly property_items: 6;
|
|
339
|
+
/**
|
|
340
|
+
* Engine enum value for `stalker_ids.property_looked_around`.
|
|
341
|
+
*/
|
|
100
342
|
public static readonly property_looked_around: 44;
|
|
343
|
+
/**
|
|
344
|
+
* Engine enum value for `stalker_ids.property_looked_out`.
|
|
345
|
+
*/
|
|
101
346
|
public static readonly property_looked_out: 19;
|
|
102
347
|
/**
|
|
103
348
|
* Whether object should panic.
|
|
104
349
|
*/
|
|
105
350
|
public static readonly property_panic: 17;
|
|
351
|
+
/**
|
|
352
|
+
* Engine enum value for `stalker_ids.property_position_holded`.
|
|
353
|
+
*/
|
|
106
354
|
public static readonly property_position_holded: 20;
|
|
355
|
+
/**
|
|
356
|
+
* Engine enum value for `stalker_ids.property_pure_enemy`.
|
|
357
|
+
*/
|
|
107
358
|
public static readonly property_pure_enemy: 23;
|
|
108
359
|
/**
|
|
109
360
|
* Whether object has solved zone puzzle.
|
|
@@ -111,45 +362,147 @@ declare module "xray16" {
|
|
|
111
362
|
* To solve zone puzzle stalkers collected artefacts, did quests etc.
|
|
112
363
|
*/
|
|
113
364
|
public static readonly property_puzzle_solved: 4;
|
|
365
|
+
/**
|
|
366
|
+
* Engine enum value for `stalker_ids.property_ready_to_detour`.
|
|
367
|
+
*/
|
|
114
368
|
public static readonly property_ready_to_detour: 14;
|
|
369
|
+
/**
|
|
370
|
+
* Engine enum value for `stalker_ids.property_ready_to_kill`.
|
|
371
|
+
*/
|
|
115
372
|
public static readonly property_ready_to_kill: 13;
|
|
373
|
+
/**
|
|
374
|
+
* Engine enum value for `stalker_ids.property_script`.
|
|
375
|
+
*/
|
|
116
376
|
public static readonly property_script: 74;
|
|
117
377
|
/**
|
|
118
378
|
* Whether object see enemy.
|
|
119
379
|
*/
|
|
120
380
|
public static readonly property_see_enemy: 15;
|
|
381
|
+
/**
|
|
382
|
+
* Engine enum value for `stalker_ids.property_smart_terrain_task`.
|
|
383
|
+
*/
|
|
121
384
|
public static readonly property_smart_terrain_task: 5;
|
|
385
|
+
/**
|
|
386
|
+
* Engine enum value for `stalker_ids.property_use_crouch_to_look_out`.
|
|
387
|
+
*/
|
|
122
388
|
public static readonly property_use_crouch_to_look_out: 24;
|
|
389
|
+
/**
|
|
390
|
+
* Engine enum value for `stalker_ids.property_use_suddenness`.
|
|
391
|
+
*/
|
|
123
392
|
public static readonly property_use_suddenness: 22;
|
|
124
393
|
|
|
394
|
+
/**
|
|
395
|
+
* Engine enum value for `stalker_ids.sound_alarm`.
|
|
396
|
+
*/
|
|
125
397
|
public static readonly sound_alarm: 4;
|
|
398
|
+
/**
|
|
399
|
+
* Engine enum value for `stalker_ids.sound_attack_allies_several_enemies`.
|
|
400
|
+
*/
|
|
126
401
|
public static readonly sound_attack_allies_several_enemies: 7;
|
|
402
|
+
/**
|
|
403
|
+
* Engine enum value for `stalker_ids.sound_attack_allies_single_enemy`.
|
|
404
|
+
*/
|
|
127
405
|
public static readonly sound_attack_allies_single_enemy: 6;
|
|
406
|
+
/**
|
|
407
|
+
* Engine enum value for `stalker_ids.sound_attack_no_allies`.
|
|
408
|
+
*/
|
|
128
409
|
public static readonly sound_attack_no_allies: 5;
|
|
410
|
+
/**
|
|
411
|
+
* Engine enum value for `stalker_ids.sound_backup`.
|
|
412
|
+
*/
|
|
129
413
|
public static readonly sound_backup: 8;
|
|
414
|
+
/**
|
|
415
|
+
* Engine enum value for `stalker_ids.sound_detour`.
|
|
416
|
+
*/
|
|
130
417
|
public static readonly sound_detour: 9;
|
|
418
|
+
/**
|
|
419
|
+
* Engine enum value for `stalker_ids.sound_die`.
|
|
420
|
+
*/
|
|
131
421
|
public static readonly sound_die: 0;
|
|
422
|
+
/**
|
|
423
|
+
* Engine enum value for `stalker_ids.sound_die_in_anomaly`.
|
|
424
|
+
*/
|
|
132
425
|
public static readonly sound_die_in_anomaly: 1;
|
|
426
|
+
/**
|
|
427
|
+
* Engine enum value for `stalker_ids.sound_enemy_critically_wounded`.
|
|
428
|
+
*/
|
|
133
429
|
public static readonly sound_enemy_critically_wounded: 24;
|
|
430
|
+
/**
|
|
431
|
+
* Engine enum value for `stalker_ids.sound_enemy_killed_or_wounded`.
|
|
432
|
+
*/
|
|
134
433
|
public static readonly sound_enemy_killed_or_wounded = -805289984;
|
|
434
|
+
/**
|
|
435
|
+
* Engine enum value for `stalker_ids.sound_enemy_lost_no_allies`.
|
|
436
|
+
*/
|
|
135
437
|
public static readonly sound_enemy_lost_no_allies: 12;
|
|
438
|
+
/**
|
|
439
|
+
* Engine enum value for `stalker_ids.sound_enemy_lost_with_allies`.
|
|
440
|
+
*/
|
|
136
441
|
public static readonly sound_enemy_lost_with_allies: 13;
|
|
442
|
+
/**
|
|
443
|
+
* Engine enum value for `stalker_ids.sound_friendly_grenade_alarm`.
|
|
444
|
+
*/
|
|
137
445
|
public static readonly sound_friendly_grenade_alarm: 20;
|
|
446
|
+
/**
|
|
447
|
+
* Engine enum value for `stalker_ids.sound_grenade_alarm`.
|
|
448
|
+
*/
|
|
138
449
|
public static readonly sound_grenade_alarm: 19;
|
|
450
|
+
/**
|
|
451
|
+
* Engine enum value for `stalker_ids.sound_humming`.
|
|
452
|
+
*/
|
|
139
453
|
public static readonly sound_humming: 3;
|
|
454
|
+
/**
|
|
455
|
+
* Engine enum value for `stalker_ids.sound_injuring`.
|
|
456
|
+
*/
|
|
140
457
|
public static readonly sound_injuring: 2;
|
|
458
|
+
/**
|
|
459
|
+
* Engine enum value for `stalker_ids.sound_injuring_by_friend`.
|
|
460
|
+
*/
|
|
141
461
|
public static readonly sound_injuring_by_friend: 14;
|
|
462
|
+
/**
|
|
463
|
+
* Engine enum value for `stalker_ids.sound_kill_wounded`.
|
|
464
|
+
*/
|
|
142
465
|
public static readonly sound_kill_wounded: 23;
|
|
466
|
+
/**
|
|
467
|
+
* Engine enum value for `stalker_ids.sound_need_backup`.
|
|
468
|
+
*/
|
|
143
469
|
public static readonly sound_need_backup: 21;
|
|
470
|
+
/**
|
|
471
|
+
* Engine enum value for `stalker_ids.sound_panic_human`.
|
|
472
|
+
*/
|
|
144
473
|
public static readonly sound_panic_human: 15;
|
|
474
|
+
/**
|
|
475
|
+
* Engine enum value for `stalker_ids.sound_panic_monster`.
|
|
476
|
+
*/
|
|
145
477
|
public static readonly sound_panic_monster: 16;
|
|
478
|
+
/**
|
|
479
|
+
* Engine enum value for `stalker_ids.sound_running_in_danger`.
|
|
480
|
+
*/
|
|
146
481
|
public static readonly sound_running_in_danger: 22;
|
|
482
|
+
/**
|
|
483
|
+
* Engine enum value for `stalker_ids.sound_script`.
|
|
484
|
+
*/
|
|
147
485
|
public static readonly sound_script: 27;
|
|
486
|
+
/**
|
|
487
|
+
* Engine enum value for `stalker_ids.sound_search1_no_allies`.
|
|
488
|
+
*/
|
|
148
489
|
public static readonly sound_search1_no_allies: 11;
|
|
490
|
+
/**
|
|
491
|
+
* Engine enum value for `stalker_ids.sound_search1_with_allies`.
|
|
492
|
+
*/
|
|
149
493
|
public static readonly sound_search1_with_allies: 10;
|
|
494
|
+
/**
|
|
495
|
+
* Engine enum value for `stalker_ids.sound_tolls`.
|
|
496
|
+
*/
|
|
150
497
|
public static readonly sound_tolls: 17;
|
|
498
|
+
/**
|
|
499
|
+
* Engine enum value for `stalker_ids.sound_wounded`.
|
|
500
|
+
*/
|
|
151
501
|
public static readonly sound_wounded: 18;
|
|
152
502
|
|
|
503
|
+
/**
|
|
504
|
+
* Create an ids constants wrapper.
|
|
505
|
+
*/
|
|
153
506
|
public constructor();
|
|
154
507
|
}
|
|
155
508
|
|
|
@@ -304,6 +657,9 @@ declare module "xray16" {
|
|
|
304
657
|
/**
|
|
305
658
|
* Handle setup of the evaluator and binding to a specific object.
|
|
306
659
|
*
|
|
660
|
+
* @remarks
|
|
661
|
+
* Called by the planner when the evaluator is registered. Call it manually only for standalone evaluator tests.
|
|
662
|
+
*
|
|
307
663
|
* @param object - Target client object to work with.
|
|
308
664
|
* @param storage - Action instance storage with preconditions and state.
|
|
309
665
|
*/
|
|
@@ -312,6 +668,8 @@ declare module "xray16" {
|
|
|
312
668
|
/**
|
|
313
669
|
* Main evaluator lifecycle method.
|
|
314
670
|
* Called every time to get world property up-to-date state.
|
|
671
|
+
*
|
|
672
|
+
* @returns Current evaluator value.
|
|
315
673
|
*/
|
|
316
674
|
public evaluate(): boolean;
|
|
317
675
|
}
|
|
@@ -368,6 +726,9 @@ declare module "xray16" {
|
|
|
368
726
|
/**
|
|
369
727
|
* Handle setup of the action and binding to a specific object.
|
|
370
728
|
*
|
|
729
|
+
* @remarks
|
|
730
|
+
* Called by the planner when the action is registered. Call it manually only for standalone action tests.
|
|
731
|
+
*
|
|
371
732
|
* @param object - Target client object to work with.
|
|
372
733
|
* @param storage - Action instance storage with preconditions and state.
|
|
373
734
|
*/
|
|
@@ -376,18 +737,27 @@ declare module "xray16" {
|
|
|
376
737
|
/**
|
|
377
738
|
* Lifecycle method called once on action execution start.
|
|
378
739
|
* Means that lifecycle of the action begun.
|
|
740
|
+
*
|
|
741
|
+
* @remarks
|
|
742
|
+
* Called by the owning planner. Direct calls are only useful when driving an action manually in tests or tools.
|
|
379
743
|
*/
|
|
380
744
|
public initialize(): void;
|
|
381
745
|
|
|
382
746
|
/**
|
|
383
747
|
* Lifecycle method.
|
|
384
748
|
* Execution tick of the action, called from object logics update cycle when current action is active.
|
|
749
|
+
*
|
|
750
|
+
* @remarks
|
|
751
|
+
* Called by the owning planner after `initialize`. Direct calls bypass planner state.
|
|
385
752
|
*/
|
|
386
753
|
public execute(): void;
|
|
387
754
|
|
|
388
755
|
/**
|
|
389
756
|
* Lifecycle method called once on action execution stop.
|
|
390
757
|
* Means that action is finished / preconditions are not met anymore.
|
|
758
|
+
*
|
|
759
|
+
* @remarks
|
|
760
|
+
* Called by the owning planner. Direct calls are only useful when driving an action manually in tests or tools.
|
|
391
761
|
*/
|
|
392
762
|
public finalize(): void;
|
|
393
763
|
|
|
@@ -402,6 +772,9 @@ declare module "xray16" {
|
|
|
402
772
|
* Add action effect.
|
|
403
773
|
* Describes what target world state is expected to be if action is completed.
|
|
404
774
|
*
|
|
775
|
+
* @remarks
|
|
776
|
+
* Do not mutate effects while the owner planner is updating; the engine asserts on graph changes during solving.
|
|
777
|
+
*
|
|
405
778
|
* @param property - World state property describing a pair of evaluator ID and value.
|
|
406
779
|
*/
|
|
407
780
|
public add_effect(property: world_property): void;
|
|
@@ -410,6 +783,9 @@ declare module "xray16" {
|
|
|
410
783
|
* Remove action effect.
|
|
411
784
|
* Action will be not considered as property changing for `id` anymore.
|
|
412
785
|
*
|
|
786
|
+
* @remarks
|
|
787
|
+
* Do not mutate effects while the owner planner is updating; the engine asserts on graph changes during solving.
|
|
788
|
+
*
|
|
413
789
|
* @param id - World state property id.
|
|
414
790
|
*/
|
|
415
791
|
public remove_effect(id: u32): void;
|
|
@@ -418,6 +794,10 @@ declare module "xray16" {
|
|
|
418
794
|
* Add action execution precondition.
|
|
419
795
|
* When building logics graph, action will be considered blocked by some preconditions.
|
|
420
796
|
*
|
|
797
|
+
* @remarks
|
|
798
|
+
* Do not mutate preconditions while the owner planner is updating; the engine asserts on graph changes during
|
|
799
|
+
* solving.
|
|
800
|
+
*
|
|
421
801
|
* @param property - World state property describing a pair of evaluator ID and value.
|
|
422
802
|
*/
|
|
423
803
|
public add_precondition(property: world_property): void;
|
|
@@ -426,6 +806,10 @@ declare module "xray16" {
|
|
|
426
806
|
* Remove precondition for action.
|
|
427
807
|
* When building logics graph, action will not be considered blocked by evaluator `id` states.
|
|
428
808
|
*
|
|
809
|
+
* @remarks
|
|
810
|
+
* Do not mutate preconditions while the owner planner is updating; the engine asserts on graph changes during
|
|
811
|
+
* solving.
|
|
812
|
+
*
|
|
429
813
|
* @param id - World state property id.
|
|
430
814
|
*/
|
|
431
815
|
public remove_precondition(id: u32): void;
|
|
@@ -443,6 +827,8 @@ declare module "xray16" {
|
|
|
443
827
|
}
|
|
444
828
|
|
|
445
829
|
/**
|
|
830
|
+
* Script action planner binding for GOAP evaluators and actions.
|
|
831
|
+
*
|
|
446
832
|
* @source C++ class action_planner
|
|
447
833
|
* @customConstructor action_planner
|
|
448
834
|
* @group xr_goap
|
|
@@ -476,6 +862,8 @@ declare module "xray16" {
|
|
|
476
862
|
/**
|
|
477
863
|
* Setup planner for game object.
|
|
478
864
|
*
|
|
865
|
+
* @throws If `object` is missing.
|
|
866
|
+
*
|
|
479
867
|
* @param object - Client game object to setup planner for.
|
|
480
868
|
*/
|
|
481
869
|
public setup(object: game_object): void;
|
|
@@ -487,12 +875,18 @@ declare module "xray16" {
|
|
|
487
875
|
|
|
488
876
|
/**
|
|
489
877
|
* Lifecycle method to handle generic game loop updates.
|
|
878
|
+
*
|
|
879
|
+
* @throws If the planner cannot build a non-empty action sequence to the target world state.
|
|
490
880
|
*/
|
|
491
881
|
public update(): void;
|
|
492
882
|
|
|
493
883
|
/**
|
|
494
884
|
* Add generic action by `id` for planner execution.
|
|
495
885
|
*
|
|
886
|
+
* @remarks
|
|
887
|
+
* Do not add actions from evaluator/action callbacks running inside `update`; the engine asserts on planner graph
|
|
888
|
+
* changes during solving.
|
|
889
|
+
*
|
|
496
890
|
* @param id - Unique identifier of new action.
|
|
497
891
|
* @param action - Action implementation containing preconditions, logics, effects and other meta infos.
|
|
498
892
|
*/
|
|
@@ -501,6 +895,10 @@ declare module "xray16" {
|
|
|
501
895
|
/**
|
|
502
896
|
* Remove action by unique `id`.
|
|
503
897
|
*
|
|
898
|
+
* @remarks
|
|
899
|
+
* Do not remove actions from evaluator/action callbacks running inside `update`; the engine asserts on planner
|
|
900
|
+
* graph changes during solving.
|
|
901
|
+
*
|
|
504
902
|
* @param id - Unique identifier of the action to remove.
|
|
505
903
|
*/
|
|
506
904
|
public remove_action(id: u32): void;
|
|
@@ -509,12 +907,16 @@ declare module "xray16" {
|
|
|
509
907
|
* Get action instance by unique `id`.
|
|
510
908
|
*
|
|
511
909
|
* @param id - Unique identifier of the action to get.
|
|
910
|
+
* @returns Registered action instance.
|
|
512
911
|
*/
|
|
513
912
|
public action(id: u32): action_base;
|
|
514
913
|
|
|
515
914
|
/**
|
|
516
915
|
* Get currently active action being executed.
|
|
517
916
|
*
|
|
917
|
+
* @remarks
|
|
918
|
+
* Requires the planner to be initialized, usually after a successful `update`.
|
|
919
|
+
*
|
|
518
920
|
* @returns Current action instance reference.
|
|
519
921
|
*/
|
|
520
922
|
public current_action(): action_base;
|
|
@@ -522,6 +924,8 @@ declare module "xray16" {
|
|
|
522
924
|
/**
|
|
523
925
|
* Get currently active action identifier.
|
|
524
926
|
*
|
|
927
|
+
* @throws If the planner is not initialized yet.
|
|
928
|
+
*
|
|
525
929
|
* @returns Unique identifier of current action.
|
|
526
930
|
*/
|
|
527
931
|
public current_action_id(): u32;
|
|
@@ -537,13 +941,21 @@ declare module "xray16" {
|
|
|
537
941
|
/**
|
|
538
942
|
* Add evaluator instance for current action planner.
|
|
539
943
|
*
|
|
944
|
+
* @remarks
|
|
945
|
+
* Do not add evaluators from evaluator/action callbacks running inside `update`; the engine asserts on planner
|
|
946
|
+
* graph changes during solving.
|
|
947
|
+
*
|
|
540
948
|
* @param id - Unique identifier of the evaluator.
|
|
541
949
|
* @param evaluator - Instance of evaluator linked to the `id`.
|
|
542
950
|
*/
|
|
543
951
|
public add_evaluator(id: u32, evaluator: property_evaluator): void;
|
|
544
952
|
|
|
545
953
|
/**
|
|
546
|
-
*
|
|
954
|
+
* Remove evaluator instance from current action planner.
|
|
955
|
+
*
|
|
956
|
+
* @remarks
|
|
957
|
+
* Do not remove evaluators from evaluator/action callbacks running inside `update`; the engine asserts on planner
|
|
958
|
+
* graph changes during solving.
|
|
547
959
|
*
|
|
548
960
|
* @param id - Unique identifier of the evaluator for removal.
|
|
549
961
|
*/
|
|
@@ -553,6 +965,7 @@ declare module "xray16" {
|
|
|
553
965
|
* Get evaluator instance by `id`.
|
|
554
966
|
*
|
|
555
967
|
* @param id - Unique identifier of the evaluator to get.
|
|
968
|
+
* @returns Registered property evaluator.
|
|
556
969
|
*/
|
|
557
970
|
public evaluator(id: u32): property_evaluator;
|
|
558
971
|
|
|
@@ -598,18 +1011,29 @@ declare module "xray16" {
|
|
|
598
1011
|
/**
|
|
599
1012
|
* Lifecycle method called once on action execution start.
|
|
600
1013
|
* Means that lifecycle of the action begun.
|
|
1014
|
+
*
|
|
1015
|
+
* @remarks
|
|
1016
|
+
* Called by the owning outer planner. Direct calls are only useful when driving the planner action manually in
|
|
1017
|
+
* tests or tools.
|
|
601
1018
|
*/
|
|
602
1019
|
public initialize(): void;
|
|
603
1020
|
|
|
604
1021
|
/**
|
|
605
1022
|
* Lifecycle method called once on action execution stop.
|
|
606
1023
|
* Means that action is finished / preconditions are not met anymore.
|
|
1024
|
+
*
|
|
1025
|
+
* @remarks
|
|
1026
|
+
* Called by the owning outer planner. Direct calls are only useful when driving the planner action manually in
|
|
1027
|
+
* tests or tools.
|
|
607
1028
|
*/
|
|
608
1029
|
public finalize(): void;
|
|
609
1030
|
|
|
610
1031
|
/**
|
|
611
1032
|
* Lifecycle method.
|
|
612
1033
|
* Execution tick of the action, called from object logics update cycle when current action is active.
|
|
1034
|
+
*
|
|
1035
|
+
* @remarks
|
|
1036
|
+
* Called by the owning outer planner after `initialize`. Direct calls bypass planner state.
|
|
613
1037
|
*/
|
|
614
1038
|
public execute(): void;
|
|
615
1039
|
|
|
@@ -617,14 +1041,20 @@ declare module "xray16" {
|
|
|
617
1041
|
* Add action effect.
|
|
618
1042
|
* Describes what target world state is expected to be if action is completed.
|
|
619
1043
|
*
|
|
1044
|
+
* @remarks
|
|
1045
|
+
* Do not mutate effects while the owner planner is updating; the engine asserts on graph changes during solving.
|
|
1046
|
+
*
|
|
620
1047
|
* @param property - World state property describing a pair of evaluator ID and value.
|
|
621
1048
|
*/
|
|
622
|
-
public add_effect(property: world_property):
|
|
1049
|
+
public add_effect(property: world_property): void;
|
|
623
1050
|
|
|
624
1051
|
/**
|
|
625
1052
|
* Remove action effect.
|
|
626
1053
|
* Action will be not considered as property changing for `id` anymore.
|
|
627
1054
|
*
|
|
1055
|
+
* @remarks
|
|
1056
|
+
* Do not mutate effects while the owner planner is updating; the engine asserts on graph changes during solving.
|
|
1057
|
+
*
|
|
628
1058
|
* @param id - World state property id.
|
|
629
1059
|
*/
|
|
630
1060
|
public remove_effect(id: u32): void;
|
|
@@ -633,6 +1063,10 @@ declare module "xray16" {
|
|
|
633
1063
|
* Add action execution precondition.
|
|
634
1064
|
* When building logics graph, action will be considered blocked by some preconditions.
|
|
635
1065
|
*
|
|
1066
|
+
* @remarks
|
|
1067
|
+
* Do not mutate preconditions while the owner planner is updating; the engine asserts on graph changes during
|
|
1068
|
+
* solving.
|
|
1069
|
+
*
|
|
636
1070
|
* @param property - World state property describing a pair of evaluator ID and value.
|
|
637
1071
|
*/
|
|
638
1072
|
public add_precondition(property: world_property): void;
|
|
@@ -641,6 +1075,10 @@ declare module "xray16" {
|
|
|
641
1075
|
* Remove precondition for action.
|
|
642
1076
|
* When building logics graph, action will not be considered blocked by evaluator `id` states.
|
|
643
1077
|
*
|
|
1078
|
+
* @remarks
|
|
1079
|
+
* Do not mutate preconditions while the owner planner is updating; the engine asserts on graph changes during
|
|
1080
|
+
* solving.
|
|
1081
|
+
*
|
|
644
1082
|
* @param id - World state property id.
|
|
645
1083
|
*/
|
|
646
1084
|
public remove_precondition(id: u32): void;
|
|
@@ -657,13 +1095,22 @@ declare module "xray16" {
|
|
|
657
1095
|
*
|
|
658
1096
|
* @param first - First state.
|
|
659
1097
|
* @param second - Second state.
|
|
1098
|
+
* @returns Transition weight.
|
|
660
1099
|
*/
|
|
661
1100
|
public weight(first: world_state, second: world_state): u16;
|
|
662
1101
|
}
|
|
663
1102
|
|
|
664
1103
|
/**
|
|
1104
|
+
* Cast a base action to an action planner when it is implemented as a planner action.
|
|
1105
|
+
*
|
|
665
1106
|
* @group xr_global_declaration
|
|
666
|
-
*
|
|
1107
|
+
*
|
|
1108
|
+
* @remarks
|
|
1109
|
+
* Returns the planner interface only for actions implemented by `planner_action`; other action instances are not
|
|
1110
|
+
* planner-backed.
|
|
1111
|
+
*
|
|
1112
|
+
* @param base_action - Action to cast.
|
|
1113
|
+
* @returns Planner interface for the action, or `null` when the action is not planner-backed.
|
|
667
1114
|
*/
|
|
668
1115
|
export function cast_planner(this: void, base_action: action_base): action_planner;
|
|
669
1116
|
}
|