xray16 1.3.4 → 1.4.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 +510 -510
- package/types/xr_ai/xr_alife.d.ts +566 -566
- package/types/xr_ai/xr_enemy_evaluation.d.ts +41 -41
- package/types/xr_ai/xr_goap.d.ts +669 -668
- package/types/xr_ai/xr_graph.d.ts +47 -47
- package/types/xr_ai/xr_memory.d.ts +148 -148
- package/types/xr_lib/xr_animation.d.ts +81 -81
- package/types/xr_lib/xr_bitwise.d.ts +32 -21
- package/types/xr_lib/xr_color.d.ts +45 -40
- package/types/xr_lib/xr_debug.d.ts +83 -77
- package/types/xr_lib/xr_dialog.d.ts +40 -40
- package/types/xr_lib/xr_flags.d.ts +529 -148
- package/types/xr_lib/xr_fs.d.ts +149 -148
- package/types/xr_lib/xr_game.d.ts +261 -158
- package/types/xr_lib/xr_hit.d.ts +41 -41
- package/types/xr_lib/xr_ini.d.ts +415 -188
- package/types/xr_lib/xr_level.d.ts +652 -225
- package/types/xr_lib/xr_luabind.d.ts +64 -59
- package/types/xr_lib/xr_map.d.ts +61 -61
- package/types/xr_lib/xr_math.d.ts +815 -233
- package/types/xr_lib/xr_multiplayer.d.ts +351 -351
- package/types/xr_lib/xr_profile.d.ts +192 -160
- package/types/xr_lib/xr_properties.d.ts +455 -166
- package/types/xr_lib/xr_relation.d.ts +84 -84
- package/types/xr_lib/xr_render.d.ts +71 -69
- package/types/xr_lib/xr_save.d.ts +727 -223
- package/types/xr_lib/xr_sound.d.ts +151 -151
- package/types/xr_lib/xr_stats.ts +20 -20
- package/types/xr_lib/xr_task.d.ts +111 -111
- package/types/xr_lib/xr_time.d.ts +166 -61
- package/types/xr_lib/xr_type.d.ts +75 -75
- package/types/xr_object/client/xr_anomaly.d.ts +50 -50
- package/types/xr_object/client/xr_artefact.d.ts +98 -98
- package/types/xr_object/client/xr_client_object.d.ts +76 -76
- package/types/xr_object/client/xr_creature.d.ts +164 -164
- package/types/xr_object/client/xr_item.d.ts +264 -264
- package/types/xr_object/client/xr_level.d.ts +285 -285
- package/types/xr_object/client/xr_physic.d.ts +214 -214
- package/types/xr_object/client/xr_zone.d.ts +47 -47
- package/types/xr_object/script/xr_script_interface.d.ts +584 -584
- package/types/xr_object/script/xr_script_object.d.ts +2408 -1390
- package/types/xr_object/script/xr_script_trade.d.ts +41 -26
- package/types/xr_object/server/xr_server_object.d.ts +794 -792
- package/types/xr_ui/xr_ui_asset.d.ts +129 -123
- package/types/xr_ui/xr_ui_core.d.ts +106 -97
- package/types/xr_ui/xr_ui_event.d.ts +383 -381
- package/types/xr_ui/xr_ui_interface.d.ts +901 -903
- package/types/xr_ui/xr_ui_menu.d.ts +142 -142
- package/types/xrf_plugin.d.ts +59 -51
|
@@ -1,510 +1,510 @@
|
|
|
1
|
-
declare module "xray16" {
|
|
2
|
-
/**
|
|
3
|
-
* @source C++ class MonsterSpace
|
|
4
|
-
* @customConstructor MonsterSpace
|
|
5
|
-
* @group xr_action
|
|
6
|
-
*/
|
|
7
|
-
export class MonsterSpace {
|
|
8
|
-
public static readonly head_anim_angry: 1;
|
|
9
|
-
public static readonly head_anim_glad: 2;
|
|
10
|
-
public static readonly head_anim_kind: 3;
|
|
11
|
-
public static readonly head_anim_normal: 0;
|
|
12
|
-
public static readonly sound_script: 128;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @group xr_action
|
|
17
|
-
*/
|
|
18
|
-
export type TXR_MonsterBodyStateKey = EnumeratedStaticsKeys<typeof MonsterSpace>;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @group xr_action
|
|
22
|
-
*/
|
|
23
|
-
export type TXR_MonsterBodyState = EnumeratedStaticsValues<typeof MonsterSpace>;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @source C++ class entity_action
|
|
27
|
-
* @customConstructor entity_action
|
|
28
|
-
* @group xr_action
|
|
29
|
-
*/
|
|
30
|
-
export class entity_action extends EngineBinding {
|
|
31
|
-
public constructor();
|
|
32
|
-
public constructor(action: entity_action);
|
|
33
|
-
|
|
34
|
-
public set_action(move: move): void;
|
|
35
|
-
|
|
36
|
-
public set_action(look: look): void;
|
|
37
|
-
|
|
38
|
-
public set_action(anim: anim): void;
|
|
39
|
-
|
|
40
|
-
public set_action(sound: sound): void;
|
|
41
|
-
|
|
42
|
-
public set_action(particle: particle): void;
|
|
43
|
-
|
|
44
|
-
public set_action(objec: XR_object): void;
|
|
45
|
-
|
|
46
|
-
public set_action(cond: cond): void;
|
|
47
|
-
|
|
48
|
-
public move(): boolean;
|
|
49
|
-
|
|
50
|
-
public particle(): boolean;
|
|
51
|
-
|
|
52
|
-
public completed(): boolean;
|
|
53
|
-
|
|
54
|
-
public object(): boolean;
|
|
55
|
-
|
|
56
|
-
public all(): boolean;
|
|
57
|
-
|
|
58
|
-
public time(): boolean;
|
|
59
|
-
|
|
60
|
-
public look(): boolean;
|
|
61
|
-
|
|
62
|
-
public sound(): boolean;
|
|
63
|
-
|
|
64
|
-
public anim(): boolean;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @group xr_action
|
|
69
|
-
*/
|
|
70
|
-
export type TXR_entity_action = move | look | anim | sound | particle | XR_object | cond;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @source C++ class object
|
|
74
|
-
* @customConstructor object
|
|
75
|
-
* @group xr_action
|
|
76
|
-
*/
|
|
77
|
-
export class XR_object extends EngineBinding {
|
|
78
|
-
public static readonly activate: 16;
|
|
79
|
-
public static readonly aim1: 4;
|
|
80
|
-
public static readonly aim2: 5;
|
|
81
|
-
public static readonly deactivate: 17;
|
|
82
|
-
public static readonly drop: 11;
|
|
83
|
-
public static readonly dummy: -1;
|
|
84
|
-
public static readonly fire1: 6;
|
|
85
|
-
public static readonly fire2: 8;
|
|
86
|
-
public static readonly hide: 22;
|
|
87
|
-
public static readonly idle: 9;
|
|
88
|
-
public static readonly reload: 2;
|
|
89
|
-
public static readonly reload1: 2;
|
|
90
|
-
public static readonly reload2: 3;
|
|
91
|
-
public static readonly show: 21;
|
|
92
|
-
public static readonly strap: 10;
|
|
93
|
-
public static readonly switch1: 0;
|
|
94
|
-
public static readonly switch2: 1;
|
|
95
|
-
public static readonly take: 23;
|
|
96
|
-
public static readonly turn_off: 20;
|
|
97
|
-
public static readonly turn_on: 19;
|
|
98
|
-
public static readonly use: 18;
|
|
99
|
-
|
|
100
|
-
public constructor(value: string);
|
|
101
|
-
public constructor(value: string, type: number /* MonsterSpace::EObjectAction */
|
|
102
|
-
public constructor(game_object: game_object);
|
|
103
|
-
|
|
104
|
-
public action(space: unknown /**
|
|
105
|
-
|
|
106
|
-
public completed(): boolean;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* @group xr_action
|
|
111
|
-
*/
|
|
112
|
-
export type TXR_object_action = EnumeratedStaticsValues<typeof XR_object>;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Note: typescript workaround since global type `object` is reserved.
|
|
116
|
-
*
|
|
117
|
-
* @group xr_global_declaration
|
|
118
|
-
*/
|
|
119
|
-
export const object: typeof XR_object;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* @source C++ class move
|
|
123
|
-
* @customConstructor move
|
|
124
|
-
* @group xr_action
|
|
125
|
-
*/
|
|
126
|
-
export class move extends EngineBinding {
|
|
127
|
-
//
|
|
128
|
-
public static readonly crouch: 0;
|
|
129
|
-
|
|
130
|
-
public static readonly back: 4;
|
|
131
|
-
public static readonly criteria: 2;
|
|
132
|
-
|
|
133
|
-
public static readonly curve: 0;
|
|
134
|
-
public static readonly curve_criteria: 2;
|
|
135
|
-
|
|
136
|
-
public static readonly default: 0;
|
|
137
|
-
public static readonly dodge: 1;
|
|
138
|
-
public static readonly down: 64;
|
|
139
|
-
public static readonly drag: 3;
|
|
140
|
-
public static readonly force: 1;
|
|
141
|
-
public static readonly fwd: 2;
|
|
142
|
-
public static readonly handbrake: 128;
|
|
143
|
-
public static readonly jump: 4;
|
|
144
|
-
public static readonly left: 8;
|
|
145
|
-
|
|
146
|
-
public static readonly line: 0;
|
|
147
|
-
public static readonly none: 1;
|
|
148
|
-
public static readonly off: 512;
|
|
149
|
-
public static readonly on: 256;
|
|
150
|
-
public static readonly right: 16;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Fast run movement type, not sprint but generic fast movement.
|
|
154
|
-
*/
|
|
155
|
-
public static readonly run: 1;
|
|
156
|
-
public static readonly run_fwd: 2;
|
|
157
|
-
public static readonly run_with_leader: 7;
|
|
158
|
-
public static readonly stand: 2;
|
|
159
|
-
public static readonly standing: 1;
|
|
160
|
-
public static readonly steal: 5;
|
|
161
|
-
public static readonly up: 32;
|
|
162
|
-
/**
|
|
163
|
-
* Normal walk movement type, generic movement type used in most cases.
|
|
164
|
-
*/
|
|
165
|
-
public static readonly walk: 0;
|
|
166
|
-
|
|
167
|
-
public static readonly walk_fwd: 0;
|
|
168
|
-
public static readonly walk_bkwd: 1;
|
|
169
|
-
public static readonly walk_with_leader: 6;
|
|
170
|
-
|
|
171
|
-
public constructor();
|
|
172
|
-
public constructor(action: unknown);
|
|
173
|
-
public constructor(action: unknown, value: number);
|
|
174
|
-
public constructor(bodyState: number, movementType: TXR_move, pathType: unknown, game_object: game_object);
|
|
175
|
-
public constructor(
|
|
176
|
-
bodyState: number,
|
|
177
|
-
movementType: TXR_move,
|
|
178
|
-
pathType: unknown,
|
|
179
|
-
game_object: game_object,
|
|
180
|
-
value: f32
|
|
181
|
-
);
|
|
182
|
-
public constructor(bodyState: number, movementType: TXR_move, pathType: unknown, patrol: patrol);
|
|
183
|
-
public constructor(bodyState: number, movementType: TXR_move, pathType: unknown, patrol: patrol, value: f32);
|
|
184
|
-
public constructor(bodyState: number, movementType: TXR_move, pathType: unknown, vector: vector);
|
|
185
|
-
public constructor(bodyState: number, movementType: TXR_move, pathType: unknown, vector: vector, value: f32);
|
|
186
|
-
public constructor(vector: vector, value: number);
|
|
187
|
-
public constructor(moveAction: TXR_move, vector: vector);
|
|
188
|
-
public constructor(moveAction: TXR_move, patrol: patrol);
|
|
189
|
-
public constructor(moveAction: TXR_move, game_object: game_object);
|
|
190
|
-
public constructor(moveAction: TXR_move, vector: vector, value: number);
|
|
191
|
-
public constructor(moveAction: TXR_move, value: number, vector: vector);
|
|
192
|
-
public constructor(moveAction: TXR_move, value: number, vector: vector, value2: number);
|
|
193
|
-
public constructor(moveAction: TXR_move, patrol: patrol, value: number);
|
|
194
|
-
public constructor(moveAction: TXR_move, game_object: game_object, value: f32);
|
|
195
|
-
public constructor(moveAction: TXR_move, vector: vector, value: f32, speedParam: number);
|
|
196
|
-
public constructor(moveAction: TXR_move, patrol: patrol, value: f32, speedParam: number);
|
|
197
|
-
public constructor(moveAction: TXR_move, game_object: game_object, value: number, speedParam: unknown);
|
|
198
|
-
|
|
199
|
-
public completed(): boolean;
|
|
200
|
-
|
|
201
|
-
public path(EDetailPathType: number): void;
|
|
202
|
-
|
|
203
|
-
public move(EMovementType: number): void;
|
|
204
|
-
|
|
205
|
-
public position(vector: vector): void;
|
|
206
|
-
|
|
207
|
-
public input(EInputKeys: number): void;
|
|
208
|
-
|
|
209
|
-
public patrol(patrolPath: unknown, shared_str: string): void;
|
|
210
|
-
|
|
211
|
-
public object(game_object: game_object): void;
|
|
212
|
-
|
|
213
|
-
public body(EBodyState: number): void;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* @group xr_action
|
|
218
|
-
*/
|
|
219
|
-
export type TXR_move = EnumeratedStaticsValues<typeof move>;
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* @source C++ class patrol
|
|
223
|
-
* @customConstructor patrol
|
|
224
|
-
* @group xr_action
|
|
225
|
-
*/
|
|
226
|
-
export class patrol extends EngineBinding {
|
|
227
|
-
// EPatrolRouteType:
|
|
228
|
-
public static readonly stop: 0;
|
|
229
|
-
//
|
|
230
|
-
|
|
231
|
-
// EPatrolStartType:
|
|
232
|
-
public static readonly start: 0;
|
|
233
|
-
public static readonly continue: 1;
|
|
234
|
-
public static readonly nearest: 2;
|
|
235
|
-
public static readonly custom: 3;
|
|
236
|
-
public static readonly next: 4;
|
|
237
|
-
public static readonly dummy: -1;
|
|
238
|
-
|
|
239
|
-
public constructor(
|
|
240
|
-
name?: string,
|
|
241
|
-
startType?: TXR_patrol_type,
|
|
242
|
-
routeType?: TXR_patrol_type,
|
|
243
|
-
bool?: boolean,
|
|
244
|
-
int?: u32
|
|
245
|
-
);
|
|
246
|
-
|
|
247
|
-
public count(): u32;
|
|
248
|
-
public flag(value1: u32, value2: u8): boolean;
|
|
249
|
-
public flag(value1: u32, value2: string): boolean;
|
|
250
|
-
public flags(point_index: u32): flags32;
|
|
251
|
-
public game_vertex_id(value: u32): u16;
|
|
252
|
-
public get_nearest(vector: vector): u32;
|
|
253
|
-
public index(value: string): u32;
|
|
254
|
-
public level_vertex_id(value: u32): u32;
|
|
255
|
-
public name(point_index: u32): string;
|
|
256
|
-
public point(index: u32): vector;
|
|
257
|
-
public terminal(point_index: u32): boolean;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* @group xr_action
|
|
262
|
-
*/
|
|
263
|
-
export type TXR_patrol_type = EnumeratedStaticsValues<typeof patrol>;
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* @source C++ class CSightParams
|
|
267
|
-
* @customConstructor XR_CSightParams
|
|
268
|
-
* @group xr_action
|
|
269
|
-
*/
|
|
270
|
-
export class CSightParams {
|
|
271
|
-
public static readonly eSightTypeDummy: -1;
|
|
272
|
-
public static readonly eSightTypeCurrentDirection: 0;
|
|
273
|
-
public static readonly eSightTypePathDirection: 1;
|
|
274
|
-
public static readonly eSightTypeDirection: 2;
|
|
275
|
-
public static readonly eSightTypePosition: 3;
|
|
276
|
-
public static readonly eSightTypeObject: 4;
|
|
277
|
-
public static readonly eSightTypeCover: 5;
|
|
278
|
-
public static readonly eSightTypeSearch: 6;
|
|
279
|
-
public static readonly eSightTypeLookOver: 7;
|
|
280
|
-
public static readonly eSightTypeCoverLookOver: 8;
|
|
281
|
-
public static readonly eSightTypeFireObject: 9;
|
|
282
|
-
public static readonly eSightTypeFirePosition: 10;
|
|
283
|
-
public static readonly eSightTypeAnimationDirection: 11;
|
|
284
|
-
|
|
285
|
-
public readonly m_object: game_object;
|
|
286
|
-
public readonly m_sight_type: TXR_SightType;
|
|
287
|
-
public readonly m_vector: vector;
|
|
288
|
-
|
|
289
|
-
public constructor();
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* @group xr_action
|
|
294
|
-
*/
|
|
295
|
-
export type TXR_SightType = EnumeratedStaticsValues<typeof CSightParams>;
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* @source C++ class look
|
|
299
|
-
* @customConstructor look
|
|
300
|
-
* @group xr_action
|
|
301
|
-
*/
|
|
302
|
-
export class look extends EngineBinding {
|
|
303
|
-
public static readonly cur_dir: 0;
|
|
304
|
-
public static readonly danger: 5;
|
|
305
|
-
public static readonly direction: 2;
|
|
306
|
-
public static readonly fire_point: 10;
|
|
307
|
-
public static readonly path_dir: 1;
|
|
308
|
-
public static readonly point: 3;
|
|
309
|
-
public static readonly search: 6;
|
|
310
|
-
|
|
311
|
-
public constructor();
|
|
312
|
-
public constructor(sight_type: TXR_SightType);
|
|
313
|
-
public constructor(sight_type: TXR_SightType, vector: vector);
|
|
314
|
-
public constructor(sight_type: TXR_SightType, game_object: game_object);
|
|
315
|
-
public constructor(sight_type: TXR_SightType, game_object: game_object, value: string);
|
|
316
|
-
public constructor(vector: vector, value1: f32, value2: f32);
|
|
317
|
-
public constructor(game_object: game_object, value1: f32, value2: f32);
|
|
318
|
-
|
|
319
|
-
public completed(): boolean;
|
|
320
|
-
public type(sight_type: TXR_SightType): void;
|
|
321
|
-
public object(game_object: game_object): void;
|
|
322
|
-
public bone(bode_id: string): void;
|
|
323
|
-
public direct(vector: Readonly<vector>): void;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* @group xr_action
|
|
328
|
-
*/
|
|
329
|
-
export type TXR_look = EnumeratedStaticsValues<typeof look>;
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* @source C++ class anim
|
|
333
|
-
* @customConstructor anim
|
|
334
|
-
* @group xr_action
|
|
335
|
-
*/
|
|
336
|
-
export class anim extends EngineBinding {
|
|
337
|
-
// Mental state:
|
|
338
|
-
public static readonly danger: 0;
|
|
339
|
-
public static readonly free: 1;
|
|
340
|
-
public static readonly panic: 2;
|
|
341
|
-
|
|
342
|
-
// Animation state:
|
|
343
|
-
public static readonly stand_idle: 0;
|
|
344
|
-
public static readonly capture_prepare: 1;
|
|
345
|
-
public static readonly sit_idle: 2;
|
|
346
|
-
public static readonly lie_idle: 3;
|
|
347
|
-
public static readonly eat: 4;
|
|
348
|
-
public static readonly sleep: 5;
|
|
349
|
-
public static readonly rest: 6;
|
|
350
|
-
public static readonly attack: 7;
|
|
351
|
-
public static readonly look_around: 8;
|
|
352
|
-
public static readonly turn: 9;
|
|
353
|
-
|
|
354
|
-
public constructor();
|
|
355
|
-
public constructor(value: string);
|
|
356
|
-
public constructor(value1: string, value2: boolean);
|
|
357
|
-
public constructor(state: number /*
|
|
358
|
-
public constructor(state: number /*
|
|
359
|
-
|
|
360
|
-
public completed(): boolean;
|
|
361
|
-
public type(state: number /*
|
|
362
|
-
public anim(value: string): void;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* @group xr_action
|
|
367
|
-
*/
|
|
368
|
-
export type TXR_animation_key = EnumeratedStaticsKeys<typeof anim>;
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* @group xr_action
|
|
372
|
-
*/
|
|
373
|
-
export type TXR_animation = EnumeratedStaticsValues<typeof anim>;
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* @source C++ class sound
|
|
377
|
-
* @customConstructor sound
|
|
378
|
-
* @group xr_action
|
|
379
|
-
*/
|
|
380
|
-
export class sound extends EngineBinding {
|
|
381
|
-
public static readonly attack: 3;
|
|
382
|
-
public static readonly attack_hit: 4;
|
|
383
|
-
public static readonly die: 7;
|
|
384
|
-
public static readonly eat: 2;
|
|
385
|
-
public static readonly idle: 1;
|
|
386
|
-
public static readonly panic: 11;
|
|
387
|
-
public static readonly steal: 10;
|
|
388
|
-
public static readonly take_damage: 5;
|
|
389
|
-
public static readonly threaten: 9;
|
|
390
|
-
|
|
391
|
-
public constructor();
|
|
392
|
-
public constructor(value1: string, value2: string);
|
|
393
|
-
public constructor(value1: string, value2: string, vector: vector);
|
|
394
|
-
public constructor(value1: string, value2: string, vector: vector, vector2: vector);
|
|
395
|
-
public constructor(value1: string, value2: string, vector: vector, vector2: vector, value3: boolean);
|
|
396
|
-
public constructor(value1: string, vector: vector);
|
|
397
|
-
public constructor(value1: string, vector: vector, vector2: vector);
|
|
398
|
-
public constructor(value1: string, vector: vector, vector2: vector, value3: boolean);
|
|
399
|
-
public constructor(sound_object: sound_object, value1: string, vector: vector);
|
|
400
|
-
public constructor(sound_object: sound_object, value1: string, vector: vector, vector2: vector);
|
|
401
|
-
public constructor(sound_object: sound_object, value1: string, vector: vector, vector2: vector, value: boolean);
|
|
402
|
-
public constructor(sound_object: sound_object, vector1: vector);
|
|
403
|
-
public constructor(sound_object: sound_object, vector1: vector, vector2: vector);
|
|
404
|
-
public constructor(sound_object: sound_object, vector1: vector, vector2: vector, value: boolean);
|
|
405
|
-
public constructor(type: unknown /* MonsterSound::EType */
|
|
406
|
-
public constructor(type: unknown /*
|
|
407
|
-
public constructor(value1: string, value2: string, type: unknown /*
|
|
408
|
-
|
|
409
|
-
public set_sound(value: string): void;
|
|
410
|
-
|
|
411
|
-
public set_sound(sound_object: sound_object): void;
|
|
412
|
-
|
|
413
|
-
public set_position(vector: vector): void;
|
|
414
|
-
|
|
415
|
-
public set_bone(value: string): void;
|
|
416
|
-
|
|
417
|
-
public set_angles(vector: vector): void;
|
|
418
|
-
|
|
419
|
-
public set_sound_type(type: unknown /* ESoundTypes */): void;
|
|
420
|
-
|
|
421
|
-
public completed(): boolean;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* @group xr_action
|
|
426
|
-
*/
|
|
427
|
-
export type TXR_sound_key = EnumeratedStaticsKeys<typeof sound>;
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* @group xr_action
|
|
431
|
-
*/
|
|
432
|
-
export type TXR_sound_type = EnumeratedStaticsValues<typeof sound>;
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* @source C++ class cond
|
|
436
|
-
* @customConstructor cond
|
|
437
|
-
* @group xr_action
|
|
438
|
-
*/
|
|
439
|
-
export class cond extends EngineBinding {
|
|
440
|
-
public static readonly move_end: 1;
|
|
441
|
-
public static readonly look_end: 2;
|
|
442
|
-
public static readonly anim_end: 4;
|
|
443
|
-
public static readonly sound_end: 8;
|
|
444
|
-
public static readonly object_end: 32;
|
|
445
|
-
public static readonly time_end: 64;
|
|
446
|
-
public static readonly act_end: 128;
|
|
447
|
-
|
|
448
|
-
public constructor();
|
|
449
|
-
public constructor(value: u32);
|
|
450
|
-
public constructor(value1: u32, value2: f64);
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* @group xr_action
|
|
455
|
-
*/
|
|
456
|
-
export type TXR_cond = EnumeratedStaticsValues<typeof cond>;
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* @source C++ class act
|
|
460
|
-
* @customConstructor act
|
|
461
|
-
* @group xr_action
|
|
462
|
-
*/
|
|
463
|
-
export class act {
|
|
464
|
-
public static readonly attack: 2;
|
|
465
|
-
public static readonly eat: 1;
|
|
466
|
-
public static readonly panic: 3;
|
|
467
|
-
public static readonly rest: 0;
|
|
468
|
-
|
|
469
|
-
public constructor();
|
|
470
|
-
public constructor(EScriptMonsterGlobalAction: number);
|
|
471
|
-
public constructor(EScriptMonsterGlobalAction: number, game_object: game_object);
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* @source C++ class particle_params
|
|
476
|
-
* @customConstructor particle_params
|
|
477
|
-
* @group xr_action
|
|
478
|
-
*/
|
|
479
|
-
export class particle_params {
|
|
480
|
-
public constructor();
|
|
481
|
-
public constructor(first?: vector, second?: vector, third?: vector);
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* @source C++ class particle
|
|
486
|
-
* @customConstructor particle
|
|
487
|
-
* @group xr_action
|
|
488
|
-
*/
|
|
489
|
-
export class particle extends EngineBinding {
|
|
490
|
-
public constructor(particle_to_run: string, particle_params?: particle_params, auto_remove?: boolean);
|
|
491
|
-
public constructor(
|
|
492
|
-
particle_to_run: string,
|
|
493
|
-
bone_name: string,
|
|
494
|
-
particle_params: particle_params,
|
|
495
|
-
auto_remove: boolean
|
|
496
|
-
);
|
|
497
|
-
|
|
498
|
-
public completed(): boolean;
|
|
499
|
-
|
|
500
|
-
public set_angles(vector: vector): void;
|
|
501
|
-
|
|
502
|
-
public set_bone(bone_id: string): void;
|
|
503
|
-
|
|
504
|
-
public set_particle(value1: string, value2: boolean): void;
|
|
505
|
-
|
|
506
|
-
public set_position(vector: vector): void;
|
|
507
|
-
|
|
508
|
-
public set_velocity(vector: vector): void;
|
|
509
|
-
}
|
|
510
|
-
}
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @source C++ class MonsterSpace
|
|
4
|
+
* @customConstructor MonsterSpace
|
|
5
|
+
* @group xr_action
|
|
6
|
+
*/
|
|
7
|
+
export class MonsterSpace {
|
|
8
|
+
public static readonly head_anim_angry: 1;
|
|
9
|
+
public static readonly head_anim_glad: 2;
|
|
10
|
+
public static readonly head_anim_kind: 3;
|
|
11
|
+
public static readonly head_anim_normal: 0;
|
|
12
|
+
public static readonly sound_script: 128;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @group xr_action
|
|
17
|
+
*/
|
|
18
|
+
export type TXR_MonsterBodyStateKey = EnumeratedStaticsKeys<typeof MonsterSpace>;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @group xr_action
|
|
22
|
+
*/
|
|
23
|
+
export type TXR_MonsterBodyState = EnumeratedStaticsValues<typeof MonsterSpace>;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @source C++ class entity_action
|
|
27
|
+
* @customConstructor entity_action
|
|
28
|
+
* @group xr_action
|
|
29
|
+
*/
|
|
30
|
+
export class entity_action extends EngineBinding {
|
|
31
|
+
public constructor();
|
|
32
|
+
public constructor(action: entity_action);
|
|
33
|
+
|
|
34
|
+
public set_action(move: move): void;
|
|
35
|
+
|
|
36
|
+
public set_action(look: look): void;
|
|
37
|
+
|
|
38
|
+
public set_action(anim: anim): void;
|
|
39
|
+
|
|
40
|
+
public set_action(sound: sound): void;
|
|
41
|
+
|
|
42
|
+
public set_action(particle: particle): void;
|
|
43
|
+
|
|
44
|
+
public set_action(objec: XR_object): void;
|
|
45
|
+
|
|
46
|
+
public set_action(cond: cond): void;
|
|
47
|
+
|
|
48
|
+
public move(): boolean;
|
|
49
|
+
|
|
50
|
+
public particle(): boolean;
|
|
51
|
+
|
|
52
|
+
public completed(): boolean;
|
|
53
|
+
|
|
54
|
+
public object(): boolean;
|
|
55
|
+
|
|
56
|
+
public all(): boolean;
|
|
57
|
+
|
|
58
|
+
public time(): boolean;
|
|
59
|
+
|
|
60
|
+
public look(): boolean;
|
|
61
|
+
|
|
62
|
+
public sound(): boolean;
|
|
63
|
+
|
|
64
|
+
public anim(): boolean;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @group xr_action
|
|
69
|
+
*/
|
|
70
|
+
export type TXR_entity_action = move | look | anim | sound | particle | XR_object | cond;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @source C++ class object
|
|
74
|
+
* @customConstructor object
|
|
75
|
+
* @group xr_action
|
|
76
|
+
*/
|
|
77
|
+
export class XR_object extends EngineBinding {
|
|
78
|
+
public static readonly activate: 16;
|
|
79
|
+
public static readonly aim1: 4;
|
|
80
|
+
public static readonly aim2: 5;
|
|
81
|
+
public static readonly deactivate: 17;
|
|
82
|
+
public static readonly drop: 11;
|
|
83
|
+
public static readonly dummy: -1;
|
|
84
|
+
public static readonly fire1: 6;
|
|
85
|
+
public static readonly fire2: 8;
|
|
86
|
+
public static readonly hide: 22;
|
|
87
|
+
public static readonly idle: 9;
|
|
88
|
+
public static readonly reload: 2;
|
|
89
|
+
public static readonly reload1: 2;
|
|
90
|
+
public static readonly reload2: 3;
|
|
91
|
+
public static readonly show: 21;
|
|
92
|
+
public static readonly strap: 10;
|
|
93
|
+
public static readonly switch1: 0;
|
|
94
|
+
public static readonly switch2: 1;
|
|
95
|
+
public static readonly take: 23;
|
|
96
|
+
public static readonly turn_off: 20;
|
|
97
|
+
public static readonly turn_on: 19;
|
|
98
|
+
public static readonly use: 18;
|
|
99
|
+
|
|
100
|
+
public constructor(value: string);
|
|
101
|
+
public constructor(value: string, type: number); /* MonsterSpace::EObjectAction */
|
|
102
|
+
public constructor(game_object: game_object);
|
|
103
|
+
|
|
104
|
+
public action(space: unknown /** Enum MonsterSpace::EObjectAction */): void;
|
|
105
|
+
|
|
106
|
+
public completed(): boolean;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @group xr_action
|
|
111
|
+
*/
|
|
112
|
+
export type TXR_object_action = EnumeratedStaticsValues<typeof XR_object>;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Note: typescript workaround since global type `object` is reserved.
|
|
116
|
+
*
|
|
117
|
+
* @group xr_global_declaration
|
|
118
|
+
*/
|
|
119
|
+
export const object: typeof XR_object;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @source C++ class move
|
|
123
|
+
* @customConstructor move
|
|
124
|
+
* @group xr_action
|
|
125
|
+
*/
|
|
126
|
+
export class move extends EngineBinding {
|
|
127
|
+
// Todo: All enums are in one static, probably should declare few parent interfaces / classes with enums
|
|
128
|
+
public static readonly crouch: 0;
|
|
129
|
+
|
|
130
|
+
public static readonly back: 4;
|
|
131
|
+
public static readonly criteria: 2;
|
|
132
|
+
|
|
133
|
+
public static readonly curve: 0;
|
|
134
|
+
public static readonly curve_criteria: 2;
|
|
135
|
+
|
|
136
|
+
public static readonly default: 0;
|
|
137
|
+
public static readonly dodge: 1;
|
|
138
|
+
public static readonly down: 64;
|
|
139
|
+
public static readonly drag: 3;
|
|
140
|
+
public static readonly force: 1;
|
|
141
|
+
public static readonly fwd: 2;
|
|
142
|
+
public static readonly handbrake: 128;
|
|
143
|
+
public static readonly jump: 4;
|
|
144
|
+
public static readonly left: 8;
|
|
145
|
+
|
|
146
|
+
public static readonly line: 0;
|
|
147
|
+
public static readonly none: 1;
|
|
148
|
+
public static readonly off: 512;
|
|
149
|
+
public static readonly on: 256;
|
|
150
|
+
public static readonly right: 16;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Fast run movement type, not sprint but generic fast movement.
|
|
154
|
+
*/
|
|
155
|
+
public static readonly run: 1;
|
|
156
|
+
public static readonly run_fwd: 2;
|
|
157
|
+
public static readonly run_with_leader: 7;
|
|
158
|
+
public static readonly stand: 2;
|
|
159
|
+
public static readonly standing: 1;
|
|
160
|
+
public static readonly steal: 5;
|
|
161
|
+
public static readonly up: 32;
|
|
162
|
+
/**
|
|
163
|
+
* Normal walk movement type, generic movement type used in most cases.
|
|
164
|
+
*/
|
|
165
|
+
public static readonly walk: 0;
|
|
166
|
+
|
|
167
|
+
public static readonly walk_fwd: 0;
|
|
168
|
+
public static readonly walk_bkwd: 1;
|
|
169
|
+
public static readonly walk_with_leader: 6;
|
|
170
|
+
|
|
171
|
+
public constructor();
|
|
172
|
+
public constructor(action: unknown);
|
|
173
|
+
public constructor(action: unknown, value: number);
|
|
174
|
+
public constructor(bodyState: number, movementType: TXR_move, pathType: unknown, game_object: game_object);
|
|
175
|
+
public constructor(
|
|
176
|
+
bodyState: number,
|
|
177
|
+
movementType: TXR_move,
|
|
178
|
+
pathType: unknown,
|
|
179
|
+
game_object: game_object,
|
|
180
|
+
value: f32
|
|
181
|
+
);
|
|
182
|
+
public constructor(bodyState: number, movementType: TXR_move, pathType: unknown, patrol: patrol);
|
|
183
|
+
public constructor(bodyState: number, movementType: TXR_move, pathType: unknown, patrol: patrol, value: f32);
|
|
184
|
+
public constructor(bodyState: number, movementType: TXR_move, pathType: unknown, vector: vector);
|
|
185
|
+
public constructor(bodyState: number, movementType: TXR_move, pathType: unknown, vector: vector, value: f32);
|
|
186
|
+
public constructor(vector: vector, value: number);
|
|
187
|
+
public constructor(moveAction: TXR_move, vector: vector);
|
|
188
|
+
public constructor(moveAction: TXR_move, patrol: patrol);
|
|
189
|
+
public constructor(moveAction: TXR_move, game_object: game_object);
|
|
190
|
+
public constructor(moveAction: TXR_move, vector: vector, value: number);
|
|
191
|
+
public constructor(moveAction: TXR_move, value: number, vector: vector);
|
|
192
|
+
public constructor(moveAction: TXR_move, value: number, vector: vector, value2: number);
|
|
193
|
+
public constructor(moveAction: TXR_move, patrol: patrol, value: number);
|
|
194
|
+
public constructor(moveAction: TXR_move, game_object: game_object, value: f32);
|
|
195
|
+
public constructor(moveAction: TXR_move, vector: vector, value: f32, speedParam: number);
|
|
196
|
+
public constructor(moveAction: TXR_move, patrol: patrol, value: f32, speedParam: number);
|
|
197
|
+
public constructor(moveAction: TXR_move, game_object: game_object, value: number, speedParam: unknown);
|
|
198
|
+
|
|
199
|
+
public completed(): boolean;
|
|
200
|
+
|
|
201
|
+
public path(EDetailPathType: number): void;
|
|
202
|
+
|
|
203
|
+
public move(EMovementType: number): void;
|
|
204
|
+
|
|
205
|
+
public position(vector: vector): void;
|
|
206
|
+
|
|
207
|
+
public input(EInputKeys: number): void;
|
|
208
|
+
|
|
209
|
+
public patrol(patrolPath: unknown, shared_str: string): void;
|
|
210
|
+
|
|
211
|
+
public object(game_object: game_object): void;
|
|
212
|
+
|
|
213
|
+
public body(EBodyState: number): void;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* @group xr_action
|
|
218
|
+
*/
|
|
219
|
+
export type TXR_move = EnumeratedStaticsValues<typeof move>;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @source C++ class patrol
|
|
223
|
+
* @customConstructor patrol
|
|
224
|
+
* @group xr_action
|
|
225
|
+
*/
|
|
226
|
+
export class patrol extends EngineBinding {
|
|
227
|
+
// EPatrolRouteType:
|
|
228
|
+
public static readonly stop: 0;
|
|
229
|
+
// Public static readonly stop: 1;
|
|
230
|
+
|
|
231
|
+
// EPatrolStartType:
|
|
232
|
+
public static readonly start: 0;
|
|
233
|
+
public static readonly continue: 1;
|
|
234
|
+
public static readonly nearest: 2;
|
|
235
|
+
public static readonly custom: 3;
|
|
236
|
+
public static readonly next: 4;
|
|
237
|
+
public static readonly dummy: -1;
|
|
238
|
+
|
|
239
|
+
public constructor(
|
|
240
|
+
name?: string,
|
|
241
|
+
startType?: TXR_patrol_type,
|
|
242
|
+
routeType?: TXR_patrol_type,
|
|
243
|
+
bool?: boolean,
|
|
244
|
+
int?: u32
|
|
245
|
+
);
|
|
246
|
+
|
|
247
|
+
public count(): u32;
|
|
248
|
+
public flag(value1: u32, value2: u8): boolean;
|
|
249
|
+
public flag(value1: u32, value2: string): boolean;
|
|
250
|
+
public flags(point_index: u32): flags32;
|
|
251
|
+
public game_vertex_id(value: u32): u16;
|
|
252
|
+
public get_nearest(vector: vector): u32;
|
|
253
|
+
public index(value: string): u32;
|
|
254
|
+
public level_vertex_id(value: u32): u32;
|
|
255
|
+
public name(point_index: u32): string;
|
|
256
|
+
public point(index: u32): vector;
|
|
257
|
+
public terminal(point_index: u32): boolean;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* @group xr_action
|
|
262
|
+
*/
|
|
263
|
+
export type TXR_patrol_type = EnumeratedStaticsValues<typeof patrol>;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @source C++ class CSightParams
|
|
267
|
+
* @customConstructor XR_CSightParams
|
|
268
|
+
* @group xr_action
|
|
269
|
+
*/
|
|
270
|
+
export class CSightParams {
|
|
271
|
+
public static readonly eSightTypeDummy: -1;
|
|
272
|
+
public static readonly eSightTypeCurrentDirection: 0;
|
|
273
|
+
public static readonly eSightTypePathDirection: 1;
|
|
274
|
+
public static readonly eSightTypeDirection: 2;
|
|
275
|
+
public static readonly eSightTypePosition: 3;
|
|
276
|
+
public static readonly eSightTypeObject: 4;
|
|
277
|
+
public static readonly eSightTypeCover: 5;
|
|
278
|
+
public static readonly eSightTypeSearch: 6;
|
|
279
|
+
public static readonly eSightTypeLookOver: 7;
|
|
280
|
+
public static readonly eSightTypeCoverLookOver: 8;
|
|
281
|
+
public static readonly eSightTypeFireObject: 9;
|
|
282
|
+
public static readonly eSightTypeFirePosition: 10;
|
|
283
|
+
public static readonly eSightTypeAnimationDirection: 11;
|
|
284
|
+
|
|
285
|
+
public readonly m_object: game_object;
|
|
286
|
+
public readonly m_sight_type: TXR_SightType;
|
|
287
|
+
public readonly m_vector: vector;
|
|
288
|
+
|
|
289
|
+
public constructor();
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* @group xr_action
|
|
294
|
+
*/
|
|
295
|
+
export type TXR_SightType = EnumeratedStaticsValues<typeof CSightParams>;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* @source C++ class look
|
|
299
|
+
* @customConstructor look
|
|
300
|
+
* @group xr_action
|
|
301
|
+
*/
|
|
302
|
+
export class look extends EngineBinding {
|
|
303
|
+
public static readonly cur_dir: 0;
|
|
304
|
+
public static readonly danger: 5;
|
|
305
|
+
public static readonly direction: 2;
|
|
306
|
+
public static readonly fire_point: 10;
|
|
307
|
+
public static readonly path_dir: 1;
|
|
308
|
+
public static readonly point: 3;
|
|
309
|
+
public static readonly search: 6;
|
|
310
|
+
|
|
311
|
+
public constructor();
|
|
312
|
+
public constructor(sight_type: TXR_SightType);
|
|
313
|
+
public constructor(sight_type: TXR_SightType, vector: vector);
|
|
314
|
+
public constructor(sight_type: TXR_SightType, game_object: game_object);
|
|
315
|
+
public constructor(sight_type: TXR_SightType, game_object: game_object, value: string);
|
|
316
|
+
public constructor(vector: vector, value1: f32, value2: f32);
|
|
317
|
+
public constructor(game_object: game_object, value1: f32, value2: f32);
|
|
318
|
+
|
|
319
|
+
public completed(): boolean;
|
|
320
|
+
public type(sight_type: TXR_SightType): void;
|
|
321
|
+
public object(game_object: game_object): void;
|
|
322
|
+
public bone(bode_id: string): void;
|
|
323
|
+
public direct(vector: Readonly<vector>): void;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* @group xr_action
|
|
328
|
+
*/
|
|
329
|
+
export type TXR_look = EnumeratedStaticsValues<typeof look>;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* @source C++ class anim
|
|
333
|
+
* @customConstructor anim
|
|
334
|
+
* @group xr_action
|
|
335
|
+
*/
|
|
336
|
+
export class anim extends EngineBinding {
|
|
337
|
+
// Mental state:
|
|
338
|
+
public static readonly danger: 0;
|
|
339
|
+
public static readonly free: 1;
|
|
340
|
+
public static readonly panic: 2;
|
|
341
|
+
|
|
342
|
+
// Animation state:
|
|
343
|
+
public static readonly stand_idle: 0;
|
|
344
|
+
public static readonly capture_prepare: 1;
|
|
345
|
+
public static readonly sit_idle: 2;
|
|
346
|
+
public static readonly lie_idle: 3;
|
|
347
|
+
public static readonly eat: 4;
|
|
348
|
+
public static readonly sleep: 5;
|
|
349
|
+
public static readonly rest: 6;
|
|
350
|
+
public static readonly attack: 7;
|
|
351
|
+
public static readonly look_around: 8;
|
|
352
|
+
public static readonly turn: 9;
|
|
353
|
+
|
|
354
|
+
public constructor();
|
|
355
|
+
public constructor(value: string);
|
|
356
|
+
public constructor(value1: string, value2: boolean);
|
|
357
|
+
public constructor(state: number); /* Enum MonsterSpace::EMentalState */
|
|
358
|
+
public constructor(state: number /* Enum MonsterSpace::EMentalState */, value: i32);
|
|
359
|
+
|
|
360
|
+
public completed(): boolean;
|
|
361
|
+
public type(state: number /* Enum MonsterSpace::EMentalState */): void;
|
|
362
|
+
public anim(value: string): void;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* @group xr_action
|
|
367
|
+
*/
|
|
368
|
+
export type TXR_animation_key = EnumeratedStaticsKeys<typeof anim>;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* @group xr_action
|
|
372
|
+
*/
|
|
373
|
+
export type TXR_animation = EnumeratedStaticsValues<typeof anim>;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* @source C++ class sound
|
|
377
|
+
* @customConstructor sound
|
|
378
|
+
* @group xr_action
|
|
379
|
+
*/
|
|
380
|
+
export class sound extends EngineBinding {
|
|
381
|
+
public static readonly attack: 3;
|
|
382
|
+
public static readonly attack_hit: 4;
|
|
383
|
+
public static readonly die: 7;
|
|
384
|
+
public static readonly eat: 2;
|
|
385
|
+
public static readonly idle: 1;
|
|
386
|
+
public static readonly panic: 11;
|
|
387
|
+
public static readonly steal: 10;
|
|
388
|
+
public static readonly take_damage: 5;
|
|
389
|
+
public static readonly threaten: 9;
|
|
390
|
+
|
|
391
|
+
public constructor();
|
|
392
|
+
public constructor(value1: string, value2: string);
|
|
393
|
+
public constructor(value1: string, value2: string, vector: vector);
|
|
394
|
+
public constructor(value1: string, value2: string, vector: vector, vector2: vector);
|
|
395
|
+
public constructor(value1: string, value2: string, vector: vector, vector2: vector, value3: boolean);
|
|
396
|
+
public constructor(value1: string, vector: vector);
|
|
397
|
+
public constructor(value1: string, vector: vector, vector2: vector);
|
|
398
|
+
public constructor(value1: string, vector: vector, vector2: vector, value3: boolean);
|
|
399
|
+
public constructor(sound_object: sound_object, value1: string, vector: vector);
|
|
400
|
+
public constructor(sound_object: sound_object, value1: string, vector: vector, vector2: vector);
|
|
401
|
+
public constructor(sound_object: sound_object, value1: string, vector: vector, vector2: vector, value: boolean);
|
|
402
|
+
public constructor(sound_object: sound_object, vector1: vector);
|
|
403
|
+
public constructor(sound_object: sound_object, vector1: vector, vector2: vector);
|
|
404
|
+
public constructor(sound_object: sound_object, vector1: vector, vector2: vector, value: boolean);
|
|
405
|
+
public constructor(type: unknown); /* MonsterSound::EType */
|
|
406
|
+
public constructor(type: unknown /* Enum MonsterSound::EType*/, value: number);
|
|
407
|
+
public constructor(value1: string, value2: string, type: unknown); /* Enum MonsterSpace::EMonsterHeadAnimType */
|
|
408
|
+
|
|
409
|
+
public set_sound(value: string): void;
|
|
410
|
+
|
|
411
|
+
public set_sound(sound_object: sound_object): void;
|
|
412
|
+
|
|
413
|
+
public set_position(vector: vector): void;
|
|
414
|
+
|
|
415
|
+
public set_bone(value: string): void;
|
|
416
|
+
|
|
417
|
+
public set_angles(vector: vector): void;
|
|
418
|
+
|
|
419
|
+
public set_sound_type(type: unknown /* ESoundTypes */): void;
|
|
420
|
+
|
|
421
|
+
public completed(): boolean;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* @group xr_action
|
|
426
|
+
*/
|
|
427
|
+
export type TXR_sound_key = EnumeratedStaticsKeys<typeof sound>;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* @group xr_action
|
|
431
|
+
*/
|
|
432
|
+
export type TXR_sound_type = EnumeratedStaticsValues<typeof sound>;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* @source C++ class cond
|
|
436
|
+
* @customConstructor cond
|
|
437
|
+
* @group xr_action
|
|
438
|
+
*/
|
|
439
|
+
export class cond extends EngineBinding {
|
|
440
|
+
public static readonly move_end: 1;
|
|
441
|
+
public static readonly look_end: 2;
|
|
442
|
+
public static readonly anim_end: 4;
|
|
443
|
+
public static readonly sound_end: 8;
|
|
444
|
+
public static readonly object_end: 32;
|
|
445
|
+
public static readonly time_end: 64;
|
|
446
|
+
public static readonly act_end: 128;
|
|
447
|
+
|
|
448
|
+
public constructor();
|
|
449
|
+
public constructor(value: u32);
|
|
450
|
+
public constructor(value1: u32, value2: f64);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* @group xr_action
|
|
455
|
+
*/
|
|
456
|
+
export type TXR_cond = EnumeratedStaticsValues<typeof cond>;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @source C++ class act
|
|
460
|
+
* @customConstructor act
|
|
461
|
+
* @group xr_action
|
|
462
|
+
*/
|
|
463
|
+
export class act {
|
|
464
|
+
public static readonly attack: 2;
|
|
465
|
+
public static readonly eat: 1;
|
|
466
|
+
public static readonly panic: 3;
|
|
467
|
+
public static readonly rest: 0;
|
|
468
|
+
|
|
469
|
+
public constructor();
|
|
470
|
+
public constructor(EScriptMonsterGlobalAction: number);
|
|
471
|
+
public constructor(EScriptMonsterGlobalAction: number, game_object: game_object);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* @source C++ class particle_params
|
|
476
|
+
* @customConstructor particle_params
|
|
477
|
+
* @group xr_action
|
|
478
|
+
*/
|
|
479
|
+
export class particle_params {
|
|
480
|
+
public constructor();
|
|
481
|
+
public constructor(first?: vector, second?: vector, third?: vector);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* @source C++ class particle
|
|
486
|
+
* @customConstructor particle
|
|
487
|
+
* @group xr_action
|
|
488
|
+
*/
|
|
489
|
+
export class particle extends EngineBinding {
|
|
490
|
+
public constructor(particle_to_run: string, particle_params?: particle_params, auto_remove?: boolean);
|
|
491
|
+
public constructor(
|
|
492
|
+
particle_to_run: string,
|
|
493
|
+
bone_name: string,
|
|
494
|
+
particle_params: particle_params,
|
|
495
|
+
auto_remove: boolean
|
|
496
|
+
);
|
|
497
|
+
|
|
498
|
+
public completed(): boolean;
|
|
499
|
+
|
|
500
|
+
public set_angles(vector: vector): void;
|
|
501
|
+
|
|
502
|
+
public set_bone(bone_id: string): void;
|
|
503
|
+
|
|
504
|
+
public set_particle(value1: string, value2: boolean): void;
|
|
505
|
+
|
|
506
|
+
public set_position(vector: vector): void;
|
|
507
|
+
|
|
508
|
+
public set_velocity(vector: vector): void;
|
|
509
|
+
}
|
|
510
|
+
}
|