xray16 1.0.7 → 1.0.9
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/README.md +4 -1
- package/package.json +4 -3
- package/types/index.d.ts +46 -22
- package/types/{xr_object → xr_ai}/xr_action.d.ts +163 -135
- package/types/xr_ai/xr_alife.d.ts +552 -0
- package/types/xr_ai/xr_enemy_evaluation.d.ts +41 -0
- package/types/xr_ai/xr_goap.d.ts +668 -0
- package/types/xr_ai/xr_graph.d.ts +47 -0
- package/types/xr_ai/xr_memory.d.ts +148 -0
- package/types/xr_lib/xr_animation.d.ts +81 -0
- package/types/xr_lib/xr_bitwise.d.ts +21 -0
- package/types/xr_lib/xr_color.d.ts +40 -0
- package/types/xr_lib/xr_debug.d.ts +100 -0
- package/types/{xr_object → xr_lib}/xr_dialog.d.ts +7 -1
- package/types/xr_lib/xr_flags.d.ts +148 -0
- package/types/xr_lib/xr_fs.d.ts +37 -233
- package/types/xr_lib/xr_game.d.ts +159 -0
- package/types/xr_lib/xr_hit.d.ts +41 -0
- package/types/xr_lib/xr_ini.d.ts +176 -0
- package/types/xr_lib/xr_level.d.ts +225 -0
- package/types/xr_lib/xr_luabind.d.ts +59 -0
- package/types/{xr_map → xr_lib}/xr_map.d.ts +19 -0
- package/types/xr_lib/xr_math.d.ts +65 -0
- package/types/{xr_online → xr_lib}/xr_multiplayer.d.ts +52 -0
- package/types/xr_lib/xr_properties.d.ts +166 -0
- package/types/xr_lib/xr_relation.d.ts +84 -0
- package/types/xr_lib/xr_render.d.ts +70 -0
- package/types/xr_lib/xr_save.d.ts +223 -0
- package/types/{xr_sound → xr_lib}/xr_sound.d.ts +10 -12
- package/types/xr_lib/xr_stats.ts +20 -0
- package/types/{xr_object/xr_quest.d.ts → xr_lib/xr_task.d.ts} +54 -2
- package/types/xr_lib/xr_time.d.ts +61 -0
- package/types/{xr_type → xr_lib}/xr_type.d.ts +18 -13
- package/types/xr_object/client/xr_client_object.d.ts +76 -0
- package/types/xr_object/{xr_level.d.ts → client/xr_level.d.ts} +69 -0
- package/types/xr_object/{xr_physic.d.ts → client/xr_physic.d.ts} +58 -0
- package/types/xr_object/client/xr_zone.d.ts +40 -0
- package/types/xr_object/script/xr_script_interface.d.ts +429 -0
- package/types/xr_object/{xr_client_object.d.ts → script/xr_script_object.d.ts} +425 -518
- package/types/xr_object/script/xr_script_trade.d.ts +26 -0
- package/types/xr_object/{xr_server_object.d.ts → server/xr_server_object.d.ts} +151 -72
- package/types/xr_ui/xr_ui_asset.d.ts +123 -0
- package/types/xr_ui/xr_ui_core.d.ts +33 -123
- package/types/xr_ui/xr_ui_event.d.ts +382 -0
- package/types/xr_ui/xr_ui_interface.d.ts +213 -0
- package/types/xr_ui/xr_ui_menu.d.ts +142 -0
- package/types/xr_constant.d.ts +0 -996
- package/types/xr_core.d.ts +0 -347
- package/types/xr_global.d.ts +0 -663
- package/types/xr_lib/xr_utils.d.ts +0 -412
- package/types/xr_luabind.d.ts +0 -34
- package/types/xr_object/xr_alife.d.ts +0 -213
- package/types/xr_type/xr_enums.d.ts +0 -17
- package/types/xr_ui/README.md +0 -277
- package/types/xr_ui/demo/CServerList.png +0 -0
- package/types/xr_ui/demo/CUI3tButton.png +0 -0
- package/types/xr_ui/demo/CUICheckButton.png +0 -0
- package/types/xr_ui/demo/CUIComboBox.png +0 -0
- package/types/xr_ui/demo/CUICustomEdit.png +0 -0
- package/types/xr_ui/demo/CUIStatic.png +0 -0
- package/types/xr_ui/demo/CUITrackBar.png +0 -0
- /package/types/xr_object/{xr_anomaly.d.ts → client/xr_anomaly.d.ts} +0 -0
- /package/types/xr_object/{xr_artefact.d.ts → client/xr_artefact.d.ts} +0 -0
- /package/types/xr_object/{xr_creature.d.ts → client/xr_creature.d.ts} +0 -0
- /package/types/xr_object/{xr_item.d.ts → client/xr_item.d.ts} +0 -0
|
@@ -296,4 +296,56 @@ declare module "xray16" {
|
|
|
296
296
|
* @group xr_multiplayer
|
|
297
297
|
*/
|
|
298
298
|
export type TXR_game_message = EnumeratedStaticsValues<game_messages>;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* @source C++ class game_GameState : DLL_Pure
|
|
302
|
+
* @customConstructor game_GameState
|
|
303
|
+
* @group xr_multiplayer
|
|
304
|
+
*/
|
|
305
|
+
export class game_GameState extends DLL_Pure {
|
|
306
|
+
public round: i32;
|
|
307
|
+
public start_time: u32;
|
|
308
|
+
public type: number; /* EGameIDs */
|
|
309
|
+
|
|
310
|
+
public constructor();
|
|
311
|
+
|
|
312
|
+
public StartTime(): u32;
|
|
313
|
+
|
|
314
|
+
public Round(): i32;
|
|
315
|
+
|
|
316
|
+
public Phase(): u16;
|
|
317
|
+
|
|
318
|
+
public Type(): number; /* EGameIDs */
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* todo:
|
|
323
|
+
*
|
|
324
|
+
* class_<game_PlayerState, no_bases, default_holder, WrapType>("game_PlayerState")
|
|
325
|
+
* .def(constructor<>())
|
|
326
|
+
* .def_readwrite("team", &BaseType::team)
|
|
327
|
+
* .def_readwrite("kills", &BaseType::m_iRivalKills)
|
|
328
|
+
* .def_readwrite("deaths", &BaseType::m_iDeaths)
|
|
329
|
+
* .def_readwrite("money_for_round", &BaseType::money_for_round)
|
|
330
|
+
* .def_readwrite("flags", &BaseType::flags__)
|
|
331
|
+
* .def_readwrite("ping", &BaseType::ping)
|
|
332
|
+
* .def_readwrite("GameID", &BaseType::GameID)
|
|
333
|
+
* //.def_readwrite("Skip", &BaseType::Skip)
|
|
334
|
+
* .def_readwrite("lasthitter", &BaseType::lasthitter)
|
|
335
|
+
* .def_readwrite("lasthitweapon", &BaseType::lasthitweapon)
|
|
336
|
+
* .def_readwrite("skin", &BaseType::skin)
|
|
337
|
+
* .def_readwrite("RespawnTime", &BaseType::RespawnTime)
|
|
338
|
+
* .def_readwrite("money_delta", &BaseType::money_delta)
|
|
339
|
+
*
|
|
340
|
+
* .def_readwrite("pItemList", &BaseType::pItemList)
|
|
341
|
+
* .def_readwrite("LastBuyAcount", &BaseType::LastBuyAcount)
|
|
342
|
+
* .def("testFlag", &BaseType::testFlag)
|
|
343
|
+
* .def("setFlag", &BaseType::setFlag)
|
|
344
|
+
* .def("resetFlag", &BaseType::resetFlag)
|
|
345
|
+
* .def("getName", &BaseType::getName)
|
|
346
|
+
* .def("setName", &BaseType::setName)
|
|
347
|
+
* .def("clear", &BaseType::clear, &WrapType::clear_static)
|
|
348
|
+
* .def("net_Export", &BaseType::net_Export, &WrapType::net_Export_static)
|
|
349
|
+
* .def("net_Import", &BaseType::net_Import, &WrapType::net_Import_static)
|
|
350
|
+
*/
|
|
299
351
|
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @source C++ class token
|
|
4
|
+
* @customConstructor token
|
|
5
|
+
* @group xr_properties
|
|
6
|
+
*/
|
|
7
|
+
export class token {
|
|
8
|
+
public id: i32;
|
|
9
|
+
public name: string;
|
|
10
|
+
|
|
11
|
+
private constructor();
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @source C++ class rtoken_list
|
|
16
|
+
* @customConstructor rtoken_list
|
|
17
|
+
* @group xr_properties
|
|
18
|
+
*/
|
|
19
|
+
export class rtoken_list {
|
|
20
|
+
public constructor();
|
|
21
|
+
|
|
22
|
+
public remove(index: u32): void;
|
|
23
|
+
|
|
24
|
+
public get(index: u32): string;
|
|
25
|
+
|
|
26
|
+
public count(): u32;
|
|
27
|
+
|
|
28
|
+
public add(token: string): void;
|
|
29
|
+
|
|
30
|
+
public clear(): void;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @source C++ class token_list
|
|
35
|
+
* @customConstructor token_list
|
|
36
|
+
* @group xr_properties
|
|
37
|
+
*/
|
|
38
|
+
export class token_list {
|
|
39
|
+
public constructor();
|
|
40
|
+
|
|
41
|
+
public remove(token: string): void;
|
|
42
|
+
|
|
43
|
+
public id(token: string): i32;
|
|
44
|
+
|
|
45
|
+
public name(int: i32): string;
|
|
46
|
+
|
|
47
|
+
public add(token: string, index: i32): void;
|
|
48
|
+
|
|
49
|
+
public clear(): void;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @source C++ class properties_list_helper
|
|
54
|
+
* @customConstructor properties_list_helper
|
|
55
|
+
* @group xr_properties
|
|
56
|
+
*/
|
|
57
|
+
export class properties_list_helper extends EngineBinding {
|
|
58
|
+
public create_vangle(): unknown;
|
|
59
|
+
|
|
60
|
+
public create_angle(): unknown;
|
|
61
|
+
|
|
62
|
+
public create_time(): unknown;
|
|
63
|
+
|
|
64
|
+
public create_color(): unknown;
|
|
65
|
+
|
|
66
|
+
public create_vcolor(): unknown;
|
|
67
|
+
|
|
68
|
+
public create_fcolor(): unknown;
|
|
69
|
+
|
|
70
|
+
public create_list(): unknown;
|
|
71
|
+
|
|
72
|
+
public create_token8(): unknown;
|
|
73
|
+
|
|
74
|
+
public create_token16(): unknown;
|
|
75
|
+
|
|
76
|
+
public create_token32(): unknown;
|
|
77
|
+
|
|
78
|
+
public create_flag8(): unknown;
|
|
79
|
+
|
|
80
|
+
public create_flag16(): unknown;
|
|
81
|
+
|
|
82
|
+
public create_flag32(): unknown;
|
|
83
|
+
|
|
84
|
+
public create_vector(): unknown;
|
|
85
|
+
|
|
86
|
+
public create_bool(
|
|
87
|
+
items: LuaTable<number>,
|
|
88
|
+
path: string,
|
|
89
|
+
object: cse_abstract,
|
|
90
|
+
value: unknown,
|
|
91
|
+
id: number | string
|
|
92
|
+
): boolean;
|
|
93
|
+
|
|
94
|
+
public create_float(): unknown;
|
|
95
|
+
|
|
96
|
+
public create_u8(): unknown;
|
|
97
|
+
|
|
98
|
+
public create_u16(): unknown;
|
|
99
|
+
|
|
100
|
+
public create_u32(): unknown;
|
|
101
|
+
|
|
102
|
+
public create_s32(): unknown;
|
|
103
|
+
|
|
104
|
+
public create_s16(): unknown;
|
|
105
|
+
|
|
106
|
+
public create_choose(): unknown;
|
|
107
|
+
|
|
108
|
+
public create_button(): unknown;
|
|
109
|
+
|
|
110
|
+
public create_canvas(): unknown;
|
|
111
|
+
|
|
112
|
+
public create_caption(): unknown;
|
|
113
|
+
|
|
114
|
+
public float_on_after_edit(): unknown;
|
|
115
|
+
|
|
116
|
+
public float_on_before_edit(): unknown;
|
|
117
|
+
|
|
118
|
+
public name_after_edit(): unknown;
|
|
119
|
+
|
|
120
|
+
public name_before_edit(): unknown;
|
|
121
|
+
|
|
122
|
+
public vector_on_before_edit(): unknown;
|
|
123
|
+
|
|
124
|
+
public vector_on_after_edit(): unknown;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @source C++ class properties_helper
|
|
129
|
+
* @customConstructor properties_helper
|
|
130
|
+
* @group xr_properties
|
|
131
|
+
*/
|
|
132
|
+
export class properties_helper extends properties_list_helper {}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @source C++ class prop_value
|
|
136
|
+
* @customConstructor prop_value
|
|
137
|
+
* @group xr_properties
|
|
138
|
+
*/
|
|
139
|
+
export class prop_value {
|
|
140
|
+
public token16_value(): unknown;
|
|
141
|
+
|
|
142
|
+
public flag32_value(): unknown;
|
|
143
|
+
|
|
144
|
+
public text_value(): unknown;
|
|
145
|
+
|
|
146
|
+
public bool_value(): unknown;
|
|
147
|
+
|
|
148
|
+
public u16_value(): unknown;
|
|
149
|
+
|
|
150
|
+
public s16_value(): unknown;
|
|
151
|
+
public button_value(): unknown;
|
|
152
|
+
|
|
153
|
+
public caption_value(): unknown;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @source C++ class TEX_INFO
|
|
158
|
+
* @customConstructor TEX_INFO
|
|
159
|
+
* @group xr_properties
|
|
160
|
+
*/
|
|
161
|
+
export class TEX_INFO {
|
|
162
|
+
public get_rect(): Frect;
|
|
163
|
+
|
|
164
|
+
public get_file_name(): string;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @source C++ class FactionState
|
|
4
|
+
* @customConstructor FactionState
|
|
5
|
+
* @group xr_relation
|
|
6
|
+
*/
|
|
7
|
+
export class FactionState {
|
|
8
|
+
public actor_goodwill: i32;
|
|
9
|
+
public bonus: i32;
|
|
10
|
+
public faction_id: string;
|
|
11
|
+
public icon: string;
|
|
12
|
+
public icon_big: string;
|
|
13
|
+
public location: string;
|
|
14
|
+
public member_count: i32;
|
|
15
|
+
public name: string;
|
|
16
|
+
public power: f32;
|
|
17
|
+
public resource: f32;
|
|
18
|
+
public target: string;
|
|
19
|
+
public target_desc: string;
|
|
20
|
+
public war_state1: string;
|
|
21
|
+
public war_state2: string;
|
|
22
|
+
public war_state3: string;
|
|
23
|
+
public war_state4: string;
|
|
24
|
+
public war_state5: string;
|
|
25
|
+
public war_state_hint1: string;
|
|
26
|
+
public war_state_hint2: string;
|
|
27
|
+
public war_state_hint3: string;
|
|
28
|
+
public war_state_hint4: string;
|
|
29
|
+
public war_state_hint5: string;
|
|
30
|
+
|
|
31
|
+
protected constructor();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @source namespace relation_registry
|
|
36
|
+
* @group xr_relation
|
|
37
|
+
*/
|
|
38
|
+
export interface IXR_relation_registry {
|
|
39
|
+
/**
|
|
40
|
+
* Change relation from community to object by `delta_goodwill`.
|
|
41
|
+
*/
|
|
42
|
+
change_community_goodwill(this: void, from_community: string, to_object_id: i32, delta_goodwill: i32): void;
|
|
43
|
+
|
|
44
|
+
community_goodwill(this: void, from_community: string, to_object_id: i32): i32;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @returns relation points between communities, usually between `-5000` and `5000`
|
|
48
|
+
*/
|
|
49
|
+
community_relation(this: void, from_community: string, to_community: string): i32;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Get relation from object to actor.
|
|
53
|
+
* Return formula looks like `personal_goodwill + community_to_obj_goodwill + community_to_community_goodwill`.
|
|
54
|
+
*
|
|
55
|
+
* @param from_object_id - object from
|
|
56
|
+
* @param to_object_id - object to
|
|
57
|
+
* @returns general goodwill from object to another object based on personal and community goodwill
|
|
58
|
+
*/
|
|
59
|
+
get_general_goodwill_between(this: void, from_object_id: u16, to_object_id: u16): i32;
|
|
60
|
+
|
|
61
|
+
set_community_goodwill(this: void, from_community: string, to_object_id: i32, goodwill: i32): void;
|
|
62
|
+
|
|
63
|
+
set_community_relation(this: void, from_community: string, to_community: string, goodwill: i32): void;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @group xr_relation
|
|
68
|
+
*/
|
|
69
|
+
export const relation_registry: IXR_relation_registry;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Enumeration of relations.
|
|
73
|
+
*
|
|
74
|
+
* eRelationTypeFriend - 0
|
|
75
|
+
* eRelationTypeNeutral - 1
|
|
76
|
+
* eRelationTypeEnemy - 2
|
|
77
|
+
* eRelationTypeWorstEnemy - 3
|
|
78
|
+
* eRelationTypeLast - 4
|
|
79
|
+
* eRelationTypeDummy - -1
|
|
80
|
+
*
|
|
81
|
+
* @group xr_relation
|
|
82
|
+
*/
|
|
83
|
+
export type TXR_relation = 0 | 1 | 2 | 3;
|
|
84
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @source C++ class render_device
|
|
4
|
+
* @customConstructor render_device
|
|
5
|
+
* @group xr_render
|
|
6
|
+
*/
|
|
7
|
+
export class render_device {
|
|
8
|
+
private constructor();
|
|
9
|
+
|
|
10
|
+
public readonly cam_dir: vector;
|
|
11
|
+
public readonly cam_pos: vector;
|
|
12
|
+
public readonly cam_right: vector;
|
|
13
|
+
public readonly cam_top: vector;
|
|
14
|
+
public readonly aspect_ratio: f32;
|
|
15
|
+
public readonly fov: f32;
|
|
16
|
+
public readonly precache_frame: u32;
|
|
17
|
+
public readonly frame: u32;
|
|
18
|
+
public readonly height: u32;
|
|
19
|
+
public readonly time_delta: u32;
|
|
20
|
+
public readonly f_time_delta: f32;
|
|
21
|
+
public readonly width: u32;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Get current game timestamp.
|
|
25
|
+
*
|
|
26
|
+
* @example `29319`,`46297`
|
|
27
|
+
* @returns milliseconds from game start
|
|
28
|
+
*/
|
|
29
|
+
public time_global(): u32;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @returns whether game is paused
|
|
33
|
+
*/
|
|
34
|
+
public is_paused(): boolean;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Change game pause state.
|
|
38
|
+
*
|
|
39
|
+
* @param paused - whether game should be paused
|
|
40
|
+
*/
|
|
41
|
+
public pause(paused: boolean): void;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @group xr_render
|
|
46
|
+
*/
|
|
47
|
+
export function device(this: void): render_device;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @group xr_render
|
|
51
|
+
*/
|
|
52
|
+
export function app_ready(this: void): boolean;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @group xr_render
|
|
56
|
+
*/
|
|
57
|
+
export function xrRender_test_r2_hw(this: void): boolean;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @group xr_render
|
|
61
|
+
*/
|
|
62
|
+
export function render_get_dx_level(this: void): number;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @group xr_global_declaration
|
|
66
|
+
* @returns whether renderer setting can be changed
|
|
67
|
+
*/
|
|
68
|
+
export function renderer_allow_override(this: void): boolean;
|
|
69
|
+
|
|
70
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @source C++ class ClientID
|
|
4
|
+
* @customConstructor ClientID
|
|
5
|
+
* @group xr_save
|
|
6
|
+
*/
|
|
7
|
+
export class ClientID extends EngineBinding {
|
|
8
|
+
protected constructor();
|
|
9
|
+
|
|
10
|
+
public value(): u32;
|
|
11
|
+
public set(value: u32): void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @source C++ class net_packet
|
|
16
|
+
* @customConstructor net_packet
|
|
17
|
+
* @group xr_save
|
|
18
|
+
*/
|
|
19
|
+
export class net_packet {
|
|
20
|
+
public r_advance(value: u32): void;
|
|
21
|
+
|
|
22
|
+
public r_angle16(value: f32): void;
|
|
23
|
+
|
|
24
|
+
public r_angle8(value: f32): void;
|
|
25
|
+
|
|
26
|
+
public r_begin(value: u16): u32;
|
|
27
|
+
|
|
28
|
+
public r_bool(): boolean;
|
|
29
|
+
|
|
30
|
+
public r_clientID(): ClientID;
|
|
31
|
+
|
|
32
|
+
public r_dir(vector: vector): void;
|
|
33
|
+
|
|
34
|
+
public r_elapsed(): u32;
|
|
35
|
+
|
|
36
|
+
public r_eof(): boolean;
|
|
37
|
+
|
|
38
|
+
public r_float(): f32;
|
|
39
|
+
|
|
40
|
+
public r_float(value: f32): f32;
|
|
41
|
+
|
|
42
|
+
public r_float_q16(value1: f32, value2: f32, value3: f32): f32;
|
|
43
|
+
|
|
44
|
+
public r_float_q8(value1: f32, value2: f32, value3: f32): f32;
|
|
45
|
+
|
|
46
|
+
public r_matrix(matrix: matrix): matrix;
|
|
47
|
+
|
|
48
|
+
public r_s16(): i16;
|
|
49
|
+
|
|
50
|
+
public r_s16(value: u16): u16;
|
|
51
|
+
|
|
52
|
+
public r_s32(): i32;
|
|
53
|
+
|
|
54
|
+
public r_s32(value: i32): i32;
|
|
55
|
+
|
|
56
|
+
public r_s64(): i64;
|
|
57
|
+
|
|
58
|
+
public r_s64(value: i64): i64;
|
|
59
|
+
|
|
60
|
+
public r_s8(): i8;
|
|
61
|
+
|
|
62
|
+
public r_s8(value: i8): i8;
|
|
63
|
+
|
|
64
|
+
public r_sdir(vector: vector): void;
|
|
65
|
+
|
|
66
|
+
public r_seek(value: u32): void;
|
|
67
|
+
|
|
68
|
+
public r_stringZ<T extends string>(): T;
|
|
69
|
+
|
|
70
|
+
public r_tell(): u32;
|
|
71
|
+
|
|
72
|
+
public r_u16(): u16;
|
|
73
|
+
|
|
74
|
+
public r_u16(value: u16): u16;
|
|
75
|
+
|
|
76
|
+
public r_u32(): u32;
|
|
77
|
+
|
|
78
|
+
public r_u32(value: u32): u32;
|
|
79
|
+
|
|
80
|
+
public r_u64(): u64;
|
|
81
|
+
|
|
82
|
+
public r_u64(value: u64): u64;
|
|
83
|
+
|
|
84
|
+
public r_u8(): u8;
|
|
85
|
+
|
|
86
|
+
public r_u8(value: u8): u8;
|
|
87
|
+
|
|
88
|
+
public r_vec3(vector: vector): void;
|
|
89
|
+
|
|
90
|
+
public w_angle16(value: f32): void;
|
|
91
|
+
|
|
92
|
+
public w_angle8(value: f32): void;
|
|
93
|
+
|
|
94
|
+
public w_begin(value: u16): void;
|
|
95
|
+
|
|
96
|
+
public w_bool(value: boolean): void;
|
|
97
|
+
|
|
98
|
+
public w_chunk_close16(value: u32): void;
|
|
99
|
+
|
|
100
|
+
public w_chunk_close8(value: u32): void;
|
|
101
|
+
|
|
102
|
+
public w_chunk_open16(value: u32): void;
|
|
103
|
+
|
|
104
|
+
public w_chunk_open8(value: u32): void;
|
|
105
|
+
|
|
106
|
+
public w_clientID(ClientID: ClientID): void;
|
|
107
|
+
|
|
108
|
+
public w_dir(vector: vector): void;
|
|
109
|
+
|
|
110
|
+
public w_float(value: f32): void;
|
|
111
|
+
|
|
112
|
+
public w_float_q16(value1: f32, value2: f32, value3: f32): void;
|
|
113
|
+
|
|
114
|
+
public w_float_q8(value1: f32, value2: f32, value3: f32): void;
|
|
115
|
+
|
|
116
|
+
public w_matrix(matrix: matrix): void;
|
|
117
|
+
|
|
118
|
+
public w_s16(value: i16): void;
|
|
119
|
+
|
|
120
|
+
public w_s32(value: i32): void;
|
|
121
|
+
|
|
122
|
+
public w_s64(value: i64): void;
|
|
123
|
+
|
|
124
|
+
public w_sdir(vector: vector): void;
|
|
125
|
+
|
|
126
|
+
public w_stringZ(value: string | null): void;
|
|
127
|
+
|
|
128
|
+
public w_tell(): u32;
|
|
129
|
+
|
|
130
|
+
public w_u16(value: u16): void;
|
|
131
|
+
|
|
132
|
+
public w_u32(value: u32): void;
|
|
133
|
+
|
|
134
|
+
public w_u64(value: u64): void;
|
|
135
|
+
|
|
136
|
+
public w_u8(value: u8): void;
|
|
137
|
+
|
|
138
|
+
public w_vec3(vector: vector): void;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @source C++ class reader
|
|
143
|
+
* @customConstructor reader
|
|
144
|
+
* @group xr_save
|
|
145
|
+
*/
|
|
146
|
+
export class reader {
|
|
147
|
+
public r_advance(value: u64): void;
|
|
148
|
+
|
|
149
|
+
public r_elapsed(): i64;
|
|
150
|
+
|
|
151
|
+
public r_eof(): boolean;
|
|
152
|
+
|
|
153
|
+
public r_sdir(vector: vector): void;
|
|
154
|
+
|
|
155
|
+
public r_seek(value: u64): void;
|
|
156
|
+
|
|
157
|
+
public r_tell(): u64;
|
|
158
|
+
|
|
159
|
+
public r_dir(vector: vector): void;
|
|
160
|
+
|
|
161
|
+
public r_vec3(vector: vector): void;
|
|
162
|
+
|
|
163
|
+
public r_angle16(): f32;
|
|
164
|
+
|
|
165
|
+
public r_angle8(): f32;
|
|
166
|
+
|
|
167
|
+
public r_bool(): boolean;
|
|
168
|
+
|
|
169
|
+
public r_stringZ<T extends string>(): T;
|
|
170
|
+
|
|
171
|
+
public r_float<T extends f32>(value?: T): T;
|
|
172
|
+
|
|
173
|
+
public r_float_q16<T extends f32>(value1: T, value2: T): T;
|
|
174
|
+
|
|
175
|
+
public r_float_q8<T extends f32>(value1: T, value2: T): T;
|
|
176
|
+
|
|
177
|
+
public r_s16<T extends i16 = i16>(value?: T): T;
|
|
178
|
+
|
|
179
|
+
public r_s32<T extends i32 = i32>(value?: T): T;
|
|
180
|
+
|
|
181
|
+
public r_s64<T extends i64 = i64>(value?: T): T;
|
|
182
|
+
|
|
183
|
+
public r_s8<T extends i8 = i8>(value?: T): T;
|
|
184
|
+
|
|
185
|
+
public r_u16<T extends u16 = u16>(value?: T): T;
|
|
186
|
+
|
|
187
|
+
public r_u32<T extends u32 = u32>(value?: T): T;
|
|
188
|
+
|
|
189
|
+
public r_u64<T extends u64 = u64>(value?: T): T;
|
|
190
|
+
|
|
191
|
+
public r_u8<T extends u8 = u8>(value?: T): T;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @group xr_save
|
|
196
|
+
*/
|
|
197
|
+
export type TXR_net_processor = reader | net_packet;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @source C++ class CSavedGameWrapper
|
|
201
|
+
* @customConstructor CSavedGameWrapper
|
|
202
|
+
* @group xr_save
|
|
203
|
+
*/
|
|
204
|
+
export class CSavedGameWrapper extends EngineBinding {
|
|
205
|
+
public constructor(name: string);
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @returns active level name from current save file
|
|
209
|
+
*/
|
|
210
|
+
public level_name(): string;
|
|
211
|
+
|
|
212
|
+
public level_id(): u8;
|
|
213
|
+
|
|
214
|
+
public game_time(): CTime;
|
|
215
|
+
|
|
216
|
+
public actor_health(): f32;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @group xr_save
|
|
221
|
+
*/
|
|
222
|
+
export function valid_saved_game(this: void, filename: string): boolean;
|
|
223
|
+
}
|
|
@@ -40,21 +40,31 @@ declare module "xray16" {
|
|
|
40
40
|
public constructor(sound_path: string, type: TXR_snd_type);
|
|
41
41
|
|
|
42
42
|
public length(): u32;
|
|
43
|
+
|
|
43
44
|
public playing(): boolean;
|
|
45
|
+
|
|
44
46
|
public get_position(): vector;
|
|
45
47
|
|
|
46
48
|
public set_position(vector: vector): void;
|
|
49
|
+
|
|
47
50
|
public attach_tail(sound_path: string): void;
|
|
48
51
|
|
|
49
52
|
public play(object: game_object | null): void;
|
|
53
|
+
|
|
50
54
|
public play(object: game_object | null, delay: f32): void;
|
|
55
|
+
|
|
51
56
|
public play(object: game_object | null, delay: f32, type: i32): void;
|
|
57
|
+
|
|
52
58
|
public play_at_pos(object: game_object, position: vector): void;
|
|
59
|
+
|
|
53
60
|
public play_at_pos(object: game_object, position: vector, delay: f32): void;
|
|
61
|
+
|
|
54
62
|
public play_at_pos(object: game_object, position: vector, delay: f32, type: i32): void;
|
|
63
|
+
|
|
55
64
|
public play_no_feedback(object: game_object, type: i32, value1: f32, position: vector, value2: f32): void;
|
|
56
65
|
|
|
57
66
|
public stop(): void;
|
|
67
|
+
|
|
58
68
|
public stop_deffered(): void;
|
|
59
69
|
}
|
|
60
70
|
|
|
@@ -138,16 +148,4 @@ declare module "xray16" {
|
|
|
138
148
|
|
|
139
149
|
private constructor();
|
|
140
150
|
}
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* @source C++ class sound_memory_object : game_memory_object
|
|
144
|
-
* @customConstructor sound_memory_object
|
|
145
|
-
* @group xr_sound
|
|
146
|
-
*/
|
|
147
|
-
export class sound_memory_object extends game_memory_object {
|
|
148
|
-
public readonly power: f32;
|
|
149
|
-
public type(): i32;
|
|
150
|
-
|
|
151
|
-
protected constructor();
|
|
152
|
-
}
|
|
153
151
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @source namespace actor_stats
|
|
4
|
+
* @group xr_stats
|
|
5
|
+
*/
|
|
6
|
+
export interface IXR_actor_stats {
|
|
7
|
+
add_points_str(this: void, value1: string, value2: string, value3: string): void;
|
|
8
|
+
|
|
9
|
+
get_points(this: void, value: string): i32;
|
|
10
|
+
|
|
11
|
+
add_points(this: void, value1: string, value2: string, value3: i32, value4: i32): void;
|
|
12
|
+
|
|
13
|
+
remove_from_ranking(this: void, object_id: number): void | null;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @group xr_stats
|
|
18
|
+
*/
|
|
19
|
+
export const actor_stats: IXR_actor_stats;
|
|
20
|
+
}
|