xray16 1.6.0 → 1.6.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 +12 -6
- package/xray16.d.ts +30847 -0
- package/types/index.d.ts +0 -55
- package/types/internal.d.ts +0 -6
- package/types/xr_ai/xr_action.d.ts +0 -1803
- package/types/xr_ai/xr_alife.d.ts +0 -1872
- package/types/xr_ai/xr_enemy_evaluation.d.ts +0 -134
- package/types/xr_ai/xr_goap.d.ts +0 -1118
- package/types/xr_ai/xr_graph.d.ts +0 -135
- package/types/xr_ai/xr_memory.d.ts +0 -384
- package/types/xr_lib/xr_animation.d.ts +0 -252
- package/types/xr_lib/xr_bitwise.d.ts +0 -44
- package/types/xr_lib/xr_color.d.ts +0 -142
- package/types/xr_lib/xr_debug.d.ts +0 -183
- package/types/xr_lib/xr_dialog.d.ts +0 -132
- package/types/xr_lib/xr_flags.d.ts +0 -592
- package/types/xr_lib/xr_fs.d.ts +0 -617
- package/types/xr_lib/xr_game.d.ts +0 -362
- package/types/xr_lib/xr_hit.d.ts +0 -127
- package/types/xr_lib/xr_ini.d.ts +0 -475
- package/types/xr_lib/xr_level.d.ts +0 -797
- package/types/xr_lib/xr_luabind.d.ts +0 -90
- package/types/xr_lib/xr_map.d.ts +0 -194
- package/types/xr_lib/xr_math.d.ts +0 -871
- package/types/xr_lib/xr_multiplayer.d.ts +0 -1081
- package/types/xr_lib/xr_profile.d.ts +0 -272
- package/types/xr_lib/xr_properties.d.ts +0 -612
- package/types/xr_lib/xr_relation.d.ts +0 -231
- package/types/xr_lib/xr_render.d.ts +0 -167
- package/types/xr_lib/xr_save.d.ts +0 -835
- package/types/xr_lib/xr_sound.d.ts +0 -517
- package/types/xr_lib/xr_stats.ts +0 -51
- package/types/xr_lib/xr_task.d.ts +0 -390
- package/types/xr_lib/xr_time.d.ts +0 -177
- package/types/xr_lib/xr_type.d.ts +0 -70
- package/types/xr_object/client/xr_anomaly.d.ts +0 -70
- package/types/xr_object/client/xr_artefact.d.ts +0 -153
- package/types/xr_object/client/xr_client_object.d.ts +0 -207
- package/types/xr_object/client/xr_creature.d.ts +0 -243
- package/types/xr_object/client/xr_item.d.ts +0 -370
- package/types/xr_object/client/xr_level.d.ts +0 -755
- package/types/xr_object/client/xr_physic.d.ts +0 -644
- package/types/xr_object/client/xr_zone.d.ts +0 -85
- package/types/xr_object/script/xr_script_interface.d.ts +0 -1142
- package/types/xr_object/script/xr_script_object.d.ts +0 -5702
- package/types/xr_object/script/xr_script_trade.d.ts +0 -51
- package/types/xr_object/server/xr_server_object.d.ts +0 -1488
- package/types/xr_ui/xr_ui_asset.d.ts +0 -364
- package/types/xr_ui/xr_ui_core.d.ts +0 -426
- package/types/xr_ui/xr_ui_event.d.ts +0 -1449
- package/types/xr_ui/xr_ui_interface.d.ts +0 -2449
- package/types/xr_ui/xr_ui_menu.d.ts +0 -401
- package/types/xrf_plugin.d.ts +0 -111
|
@@ -1,362 +0,0 @@
|
|
|
1
|
-
declare module "xray16" {
|
|
2
|
-
/**
|
|
3
|
-
* Bitmask values returned by `level.game_id()`.
|
|
4
|
-
*
|
|
5
|
-
* Enumeration with possible game types:
|
|
6
|
-
* - eGameIDNoGame = u32(0),
|
|
7
|
-
* - eGameIDSingle = u32(1) << 0,
|
|
8
|
-
* - eGameIDDeathmatch = u32(1) << 1,
|
|
9
|
-
* - eGameIDTeamDeathmatch = u32(1) << 2,
|
|
10
|
-
* - eGameIDArtefactHunt = u32(1) << 3,
|
|
11
|
-
* - eGameIDCaptureTheArtefact = u32(1) << 4,
|
|
12
|
-
* - eGameIDDominationZone = u32(1) << 5,
|
|
13
|
-
* - eGameIDTeamDominationZone = u32(1) << 6,.
|
|
14
|
-
*
|
|
15
|
-
* @source C++ enum EGameIDs
|
|
16
|
-
* @group xr_game
|
|
17
|
-
*/
|
|
18
|
-
export type TXR_EGameID = 0 | 1 | 2 | 8 | 16 | 32 | 64;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Game type constants used by menu and multiplayer scripts.
|
|
22
|
-
*
|
|
23
|
-
* @source C++ class GAME_TYPE
|
|
24
|
-
* @customConstructor GAME_TYPE
|
|
25
|
-
* @group xr_game
|
|
26
|
-
*/
|
|
27
|
-
export class GAME_TYPE {
|
|
28
|
-
/**
|
|
29
|
-
* Engine enum value for `GAME_TYPE.eGameIDArtefactHunt`.
|
|
30
|
-
*/
|
|
31
|
-
public static readonly eGameIDArtefactHunt: 8;
|
|
32
|
-
/**
|
|
33
|
-
* Engine enum value for `GAME_TYPE.eGameIDCaptureTheArtefact`.
|
|
34
|
-
*/
|
|
35
|
-
public static readonly eGameIDCaptureTheArtefact: 16;
|
|
36
|
-
/**
|
|
37
|
-
* Engine enum value for `GAME_TYPE.eGameIDDeathmatch`.
|
|
38
|
-
*/
|
|
39
|
-
public static readonly eGameIDDeathmatch: 2;
|
|
40
|
-
/**
|
|
41
|
-
* Engine enum value for `GAME_TYPE.eGameIDTeamDeathmatch`.
|
|
42
|
-
*/
|
|
43
|
-
public static readonly eGameIDTeamDeathmatch: 4;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Engine enum value for `GAME_TYPE.GAME_UNKNOWN`.
|
|
47
|
-
*/
|
|
48
|
-
public static readonly GAME_UNKNOWN: -1;
|
|
49
|
-
/**
|
|
50
|
-
* Engine enum value for `GAME_TYPE.GAME_ANY`.
|
|
51
|
-
*/
|
|
52
|
-
public static readonly GAME_ANY: 0;
|
|
53
|
-
/**
|
|
54
|
-
* Engine enum value for `GAME_TYPE.GAME_SINGLE`.
|
|
55
|
-
*/
|
|
56
|
-
public static readonly GAME_SINGLE: 1;
|
|
57
|
-
/**
|
|
58
|
-
* Engine enum value for `GAME_TYPE.GAME_DEATHMATCH`.
|
|
59
|
-
*/
|
|
60
|
-
public static readonly GAME_DEATHMATCH: 2;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Engine enum value for `GAME_TYPE.GAME_CS`.
|
|
64
|
-
*/
|
|
65
|
-
public static readonly GAME_CS: 5;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Engine enum value for `GAME_TYPE.GAME_TEAMDEATHMATCH`.
|
|
69
|
-
*/
|
|
70
|
-
public static readonly GAME_TEAMDEATHMATCH: 6;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Engine enum value for `GAME_TYPE.GAME_ARTEFACTHUNT`.
|
|
74
|
-
*/
|
|
75
|
-
public static readonly GAME_ARTEFACTHUNT: 7;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Engine enum value for `GAME_TYPE.GAME_CAPTURETHEARTEFACT`.
|
|
79
|
-
*/
|
|
80
|
-
public static readonly GAME_CAPTURETHEARTEFACT: 8;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Engine enum value for `GAME_TYPE.GAME_DUMMY`.
|
|
84
|
-
*/
|
|
85
|
-
public static readonly GAME_DUMMY: 255; // Temporary g
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* @group xr_game
|
|
90
|
-
*/
|
|
91
|
-
type TXR_GAME_TYPE = EnumeratedStaticsValues<typeof GAME_TYPE>;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Single-player difficulty constants.
|
|
95
|
-
*
|
|
96
|
-
* @source C++ class game_difficulty
|
|
97
|
-
* @customConstructor game_difficulty
|
|
98
|
-
* @group xr_game
|
|
99
|
-
*/
|
|
100
|
-
export class game_difficulty {
|
|
101
|
-
/**
|
|
102
|
-
* Engine enum value for `game_difficulty.novice`.
|
|
103
|
-
*/
|
|
104
|
-
public static readonly novice: 0;
|
|
105
|
-
/**
|
|
106
|
-
* Engine enum value for `game_difficulty.stalker`.
|
|
107
|
-
*/
|
|
108
|
-
public static readonly stalker: 1;
|
|
109
|
-
/**
|
|
110
|
-
* Engine enum value for `game_difficulty.veteran`.
|
|
111
|
-
*/
|
|
112
|
-
public static readonly veteran: 2;
|
|
113
|
-
/**
|
|
114
|
-
* Engine enum value for `game_difficulty.master`.
|
|
115
|
-
*/
|
|
116
|
-
public static readonly master: 3;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @group xr_game
|
|
121
|
-
*/
|
|
122
|
-
export type TXR_game_difficulty_name = EnumeratedStaticsKeys<typeof game_difficulty>;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @group xr_game
|
|
126
|
-
*/
|
|
127
|
-
export type TXR_game_difficulty = EnumeratedStaticsValues<typeof game_difficulty>;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Global helpers exposed by the engine `game` namespace.
|
|
131
|
-
*
|
|
132
|
-
* @source namespace game
|
|
133
|
-
* @group xr_game
|
|
134
|
-
*/
|
|
135
|
-
export interface IXR_game {
|
|
136
|
-
/**
|
|
137
|
-
* Create a new game time value.
|
|
138
|
-
*
|
|
139
|
-
* @remarks
|
|
140
|
-
* This is the same constructor exported as `CTime`.
|
|
141
|
-
*
|
|
142
|
-
* @returns Empty `CTime` instance.
|
|
143
|
-
*/
|
|
144
|
-
CTime: (this: void) => CTime;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Resolve a string table key for the current language.
|
|
148
|
-
*
|
|
149
|
-
* @since OpenXRay 2022-08-09, a2d264fc, PR #1032
|
|
150
|
-
*
|
|
151
|
-
* @param translation_key - String table key to translate.
|
|
152
|
-
* @returns Localized text or the fallback string from the string table.
|
|
153
|
-
*/
|
|
154
|
-
translate_string(this: void, translation_key: string): string;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Get current in-game time as seconds.
|
|
158
|
-
*
|
|
159
|
-
* @remarks
|
|
160
|
-
* Returns the low 32 bits of the current game time counter.
|
|
161
|
-
*
|
|
162
|
-
* @returns Game time counter.
|
|
163
|
-
*/
|
|
164
|
-
time(this: void): u32;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Reload string table data for the active language.
|
|
168
|
-
*
|
|
169
|
-
* @since OpenXRay 2022-08-09, a2d264fc, PR #1032
|
|
170
|
-
*/
|
|
171
|
-
reload_language(this: void): void;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Get current in-game calendar time.
|
|
175
|
-
*
|
|
176
|
-
* @remarks
|
|
177
|
-
* Uses ALife game time when ALife is available, otherwise falls back to the current level game time.
|
|
178
|
-
*
|
|
179
|
-
* @returns Current game time value.
|
|
180
|
-
*/
|
|
181
|
-
get_game_time(this: void): CTime;
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Write the current native stack trace to the engine log.
|
|
185
|
-
*
|
|
186
|
-
* @since OpenXRay 2022-08-09, a2d264fc, PR #1032
|
|
187
|
-
*/
|
|
188
|
-
log_stack_trace(this: void): void;
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Move the actor to another level by level name.
|
|
192
|
-
*
|
|
193
|
-
* @since OpenXRay 2014-12-27, c82669625
|
|
194
|
-
*
|
|
195
|
-
* @remarks
|
|
196
|
-
* If the level name is not present in the game graph, the engine logs a script error and leaves the actor in the
|
|
197
|
-
* current level.
|
|
198
|
-
*
|
|
199
|
-
* @param level_name - Target level name from the game graph.
|
|
200
|
-
*/
|
|
201
|
-
jump_to_level(this: void, level_name: string): void;
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Move the actor to another level graph point.
|
|
205
|
-
*
|
|
206
|
-
* @since OpenXRay 2014-12-27, c82669625
|
|
207
|
-
*
|
|
208
|
-
* @param position - Target position.
|
|
209
|
-
* @param level_vertex_id - Target level vertex.
|
|
210
|
-
* @param game_vertex_id - Target game graph vertex.
|
|
211
|
-
*/
|
|
212
|
-
jump_to_level(this: void, position: vector, level_vertex_id: u32, game_vertex_id: u16): void;
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Move the actor to another level graph point and face a direction.
|
|
216
|
-
*
|
|
217
|
-
* @since OpenXRay 2014-12-27, c82669625
|
|
218
|
-
*
|
|
219
|
-
* @param position - Target position.
|
|
220
|
-
* @param level_vertex_id - Target level vertex.
|
|
221
|
-
* @param game_vertex_id - Target game graph vertex.
|
|
222
|
-
* @param direction - Actor direction after the jump.
|
|
223
|
-
*/
|
|
224
|
-
jump_to_level(this: void, position: vector, level_vertex_id: u32, game_vertex_id: u16, direction: vector): void;
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Start an in-game tutorial sequence.
|
|
228
|
-
*
|
|
229
|
-
* @remarks
|
|
230
|
-
* Does nothing while the load screen is active. Starting a second tutorial stores the previous one as the fallback
|
|
231
|
-
* input receiver.
|
|
232
|
-
*
|
|
233
|
-
* @param tutorial_id - Tutorial identifier.
|
|
234
|
-
*/
|
|
235
|
-
start_tutorial(this: void, tutorial_id: string): void;
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* Check whether a tutorial is currently active.
|
|
239
|
-
*
|
|
240
|
-
* @returns Whether any tutorial is active.
|
|
241
|
-
*/
|
|
242
|
-
has_active_tutorial(this: void): boolean;
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Get the active tutorial identifier.
|
|
246
|
-
*
|
|
247
|
-
* @since OpenXRay 2022-08-09, a2d264fc, PR #1032
|
|
248
|
-
*
|
|
249
|
-
* @remarks
|
|
250
|
-
* Call only after `has_active_tutorial()` returns `true`; the binding dereferences the active tutorial directly.
|
|
251
|
-
*
|
|
252
|
-
* @returns Active tutorial name.
|
|
253
|
-
*/
|
|
254
|
-
active_tutorial_name(this: void): string;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Stop the active tutorial sequence.
|
|
258
|
-
*/
|
|
259
|
-
stop_tutorial(this: void): void;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Global engine `game` namespace.
|
|
264
|
-
*
|
|
265
|
-
* @group xr_game
|
|
266
|
-
*/
|
|
267
|
-
export const game: IXR_game;
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Check whether dynamic music setting is enabled.
|
|
271
|
-
* Dynamic music starts playing different kind of ambient sounds in actor combat.
|
|
272
|
-
*
|
|
273
|
-
* @group xr_game
|
|
274
|
-
*
|
|
275
|
-
* @returns Is dynamic music allowed in game settings.
|
|
276
|
-
*/
|
|
277
|
-
export function IsDynamicMusic(this: void): boolean;
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Whether auto-save on important checkpoints option is turned on.
|
|
281
|
-
*
|
|
282
|
-
* @group xr_game
|
|
283
|
-
*
|
|
284
|
-
* @returns Whether important saves are enabled.
|
|
285
|
-
*/
|
|
286
|
-
export function IsImportantSave(this: void): boolean;
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Check whether the active game mode is single-player.
|
|
290
|
-
*
|
|
291
|
-
* @group xr_game
|
|
292
|
-
*
|
|
293
|
-
* @returns Whether the current game type is single-player.
|
|
294
|
-
*/
|
|
295
|
-
export function IsGameTypeSingle(this: void): boolean;
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* Check whether the in-game editor is active.
|
|
299
|
-
*
|
|
300
|
-
* @group xr_game
|
|
301
|
-
*
|
|
302
|
-
* @returns Whether the editor is currently enabled.
|
|
303
|
-
*/
|
|
304
|
-
export function editor(this: void): boolean;
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* Set the actor start position used by level transition logic.
|
|
308
|
-
*
|
|
309
|
-
* @since OpenXRay 2022-08-22, 33f6da05, PR #1006
|
|
310
|
-
*
|
|
311
|
-
* @group xr_game
|
|
312
|
-
* @remarks
|
|
313
|
-
* Updates the global start position consumed by ALife level-transition code.
|
|
314
|
-
*
|
|
315
|
-
* @param position - Target start position.
|
|
316
|
-
*/
|
|
317
|
-
export function set_start_position(this: void, position: vector): void;
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* Set the actor start game graph vertex.
|
|
321
|
-
*
|
|
322
|
-
* @since OpenXRay 2022-08-22, 33f6da05, PR #1006
|
|
323
|
-
*
|
|
324
|
-
* @group xr_game
|
|
325
|
-
*
|
|
326
|
-
* @remarks
|
|
327
|
-
* Updates the global start game vertex consumed by ALife level-transition code.
|
|
328
|
-
*
|
|
329
|
-
* @param game_vertex_id - Target game graph vertex.
|
|
330
|
-
*/
|
|
331
|
-
export function set_start_game_vertex_id(this: void, game_vertex_id: i32): void;
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* Check whether the process has enough address space for the current game.
|
|
335
|
-
*
|
|
336
|
-
* @group xr_game
|
|
337
|
-
*
|
|
338
|
-
* @remarks
|
|
339
|
-
* On non-Windows builds this always returns `true`.
|
|
340
|
-
*
|
|
341
|
-
* @returns Whether available address space is sufficient.
|
|
342
|
-
*/
|
|
343
|
-
export function is_enough_address_space_available(this: void): boolean;
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* Ask the engine to verify that its watched thread is still running.
|
|
347
|
-
*
|
|
348
|
-
* @group xr_game
|
|
349
|
-
*
|
|
350
|
-
* @throws If called outside the active Lua thread.
|
|
351
|
-
*/
|
|
352
|
-
export function verify_if_thread_is_running(this: void): void;
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* Get server object serialization version used by scripts.
|
|
356
|
-
*
|
|
357
|
-
* @group xr_game
|
|
358
|
-
*
|
|
359
|
-
* @returns Script server object version.
|
|
360
|
-
*/
|
|
361
|
-
export function script_server_object_version(this: void): u16;
|
|
362
|
-
}
|
package/types/xr_lib/xr_hit.d.ts
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import type { Nullable } from "../internal";
|
|
2
|
-
|
|
3
|
-
declare module "xray16" {
|
|
4
|
-
/**
|
|
5
|
-
* Hit packet that can be sent to game objects.
|
|
6
|
-
*
|
|
7
|
-
* @source C++ class hit
|
|
8
|
-
* @customConstructor hit
|
|
9
|
-
* @group xr_hit
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* A new hit defaults to wound damage with power `100`, impulse `100`, direction `(1, 0, 0)`, and no draftsman.
|
|
13
|
-
*/
|
|
14
|
-
export class hit {
|
|
15
|
-
/**
|
|
16
|
-
* Engine enum value for `hit.burn`.
|
|
17
|
-
*/
|
|
18
|
-
public static readonly burn = 0;
|
|
19
|
-
/**
|
|
20
|
-
* Engine enum value for `hit.chemical_burn`.
|
|
21
|
-
*/
|
|
22
|
-
public static readonly chemical_burn = 2;
|
|
23
|
-
/**
|
|
24
|
-
* Engine enum value for `hit.dummy`.
|
|
25
|
-
*/
|
|
26
|
-
public static readonly dummy = 12;
|
|
27
|
-
/**
|
|
28
|
-
* Engine enum value for `hit.explosion`.
|
|
29
|
-
*/
|
|
30
|
-
public static readonly explosion = 7;
|
|
31
|
-
/**
|
|
32
|
-
* Engine enum value for `hit.fire_wound`.
|
|
33
|
-
*/
|
|
34
|
-
public static readonly fire_wound = 8;
|
|
35
|
-
/**
|
|
36
|
-
* Engine enum value for `hit.light_burn`.
|
|
37
|
-
*/
|
|
38
|
-
public static readonly light_burn = 11;
|
|
39
|
-
/**
|
|
40
|
-
* Engine enum value for `hit.physic_strike`.
|
|
41
|
-
*/
|
|
42
|
-
public static readonly physic_strike = 10;
|
|
43
|
-
/**
|
|
44
|
-
* Engine enum value for `hit.radiation`.
|
|
45
|
-
*/
|
|
46
|
-
public static readonly radiation = 3;
|
|
47
|
-
/**
|
|
48
|
-
* Engine enum value for `hit.shock`.
|
|
49
|
-
*/
|
|
50
|
-
public static readonly shock = 1;
|
|
51
|
-
/**
|
|
52
|
-
* Engine enum value for `hit.strike`.
|
|
53
|
-
*/
|
|
54
|
-
public static readonly strike = 5;
|
|
55
|
-
/**
|
|
56
|
-
* Engine enum value for `hit.telepatic`.
|
|
57
|
-
*/
|
|
58
|
-
public static readonly telepatic = 4;
|
|
59
|
-
/**
|
|
60
|
-
* Engine enum value for `hit.wound`.
|
|
61
|
-
*/
|
|
62
|
-
public static readonly wound = 6;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Hit direction.
|
|
66
|
-
*/
|
|
67
|
-
public direction: vector;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Object that caused the hit.
|
|
71
|
-
*
|
|
72
|
-
* @remarks
|
|
73
|
-
* Leave `null` for world or scripted damage that should not be attributed to a game object.
|
|
74
|
-
*/
|
|
75
|
-
public draftsman: Nullable<game_object>;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Physics impulse applied with the hit.
|
|
79
|
-
*/
|
|
80
|
-
public impulse: f32;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Hit damage power.
|
|
84
|
-
*/
|
|
85
|
-
public power: f32;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Hit damage type.
|
|
89
|
-
*/
|
|
90
|
-
public type: TXR_hit_type;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Create an empty hit packet.
|
|
94
|
-
*
|
|
95
|
-
* @remarks
|
|
96
|
-
* Uses the engine default values described on `hit`.
|
|
97
|
-
*/
|
|
98
|
-
public constructor();
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Copy an existing hit packet.
|
|
102
|
-
*
|
|
103
|
-
* @param hit - Source hit.
|
|
104
|
-
*/
|
|
105
|
-
public constructor(hit: hit);
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Target a model bone by name.
|
|
109
|
-
*
|
|
110
|
-
* @remarks
|
|
111
|
-
* Stores the bone name on the hit. The receiving object resolves it against its own model.
|
|
112
|
-
*
|
|
113
|
-
* @param bone - Bone name used by the receiver model.
|
|
114
|
-
*/
|
|
115
|
-
public bone(bone: string): void;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* @group xr_hit
|
|
120
|
-
*/
|
|
121
|
-
export type TXR_hit_types = typeof hit;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* @group xr_hit
|
|
125
|
-
*/
|
|
126
|
-
export type TXR_hit_type = EnumeratedStaticsValues<TXR_hit_types>;
|
|
127
|
-
}
|