xray16 1.0.5 → 1.0.8

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.
Files changed (65) hide show
  1. package/README.md +4 -1
  2. package/package.json +4 -3
  3. package/types/index.d.ts +46 -22
  4. package/types/{xr_object → xr_ai}/xr_action.d.ts +163 -135
  5. package/types/xr_ai/xr_alife.d.ts +552 -0
  6. package/types/xr_ai/xr_enemy_evaluation.d.ts +41 -0
  7. package/types/xr_ai/xr_goap.d.ts +668 -0
  8. package/types/xr_ai/xr_graph.d.ts +47 -0
  9. package/types/xr_ai/xr_memory.d.ts +148 -0
  10. package/types/xr_lib/xr_animation.d.ts +81 -0
  11. package/types/xr_lib/xr_bitwise.d.ts +21 -0
  12. package/types/xr_lib/xr_color.d.ts +40 -0
  13. package/types/xr_lib/xr_debug.d.ts +100 -0
  14. package/types/{xr_object → xr_lib}/xr_dialog.d.ts +7 -1
  15. package/types/xr_lib/xr_flags.d.ts +148 -0
  16. package/types/xr_lib/xr_fs.d.ts +37 -229
  17. package/types/xr_lib/xr_game.d.ts +159 -0
  18. package/types/xr_lib/xr_hit.d.ts +41 -0
  19. package/types/xr_lib/xr_ini.d.ts +176 -0
  20. package/types/xr_lib/xr_level.d.ts +225 -0
  21. package/types/xr_lib/xr_luabind.d.ts +59 -0
  22. package/types/{xr_map → xr_lib}/xr_map.d.ts +19 -0
  23. package/types/xr_lib/xr_math.d.ts +65 -0
  24. package/types/{xr_online → xr_lib}/xr_multiplayer.d.ts +52 -0
  25. package/types/xr_lib/xr_properties.d.ts +166 -0
  26. package/types/xr_lib/xr_relation.d.ts +84 -0
  27. package/types/xr_lib/xr_render.d.ts +70 -0
  28. package/types/xr_lib/xr_save.d.ts +223 -0
  29. package/types/{xr_sound → xr_lib}/xr_sound.d.ts +10 -12
  30. package/types/xr_lib/xr_stats.ts +20 -0
  31. package/types/{xr_object/xr_quest.d.ts → xr_lib/xr_task.d.ts} +54 -2
  32. package/types/xr_lib/xr_time.d.ts +61 -0
  33. package/types/{xr_type → xr_lib}/xr_type.d.ts +13 -13
  34. package/types/xr_object/client/xr_client_object.d.ts +76 -0
  35. package/types/xr_object/{xr_level.d.ts → client/xr_level.d.ts} +69 -0
  36. package/types/xr_object/{xr_physic.d.ts → client/xr_physic.d.ts} +58 -0
  37. package/types/xr_object/client/xr_zone.d.ts +40 -0
  38. package/types/xr_object/script/xr_script_interface.d.ts +429 -0
  39. package/types/xr_object/{xr_client_object.d.ts → script/xr_script_object.d.ts} +449 -522
  40. package/types/xr_object/script/xr_script_trade.d.ts +26 -0
  41. package/types/xr_object/{xr_server_object.d.ts → server/xr_server_object.d.ts} +152 -73
  42. package/types/xr_ui/xr_ui_asset.d.ts +123 -0
  43. package/types/xr_ui/xr_ui_core.d.ts +33 -123
  44. package/types/xr_ui/xr_ui_event.d.ts +382 -0
  45. package/types/xr_ui/xr_ui_interface.d.ts +213 -0
  46. package/types/xr_ui/xr_ui_menu.d.ts +142 -0
  47. package/types/xr_constant.d.ts +0 -976
  48. package/types/xr_core.d.ts +0 -347
  49. package/types/xr_global.d.ts +0 -648
  50. package/types/xr_lib/xr_utils.d.ts +0 -407
  51. package/types/xr_luabind.d.ts +0 -34
  52. package/types/xr_object/xr_alife.d.ts +0 -206
  53. package/types/xr_type/xr_enums.d.ts +0 -17
  54. package/types/xr_ui/README.md +0 -277
  55. package/types/xr_ui/demo/CServerList.png +0 -0
  56. package/types/xr_ui/demo/CUI3tButton.png +0 -0
  57. package/types/xr_ui/demo/CUICheckButton.png +0 -0
  58. package/types/xr_ui/demo/CUIComboBox.png +0 -0
  59. package/types/xr_ui/demo/CUICustomEdit.png +0 -0
  60. package/types/xr_ui/demo/CUIStatic.png +0 -0
  61. package/types/xr_ui/demo/CUITrackBar.png +0 -0
  62. /package/types/xr_object/{xr_anomaly.d.ts → client/xr_anomaly.d.ts} +0 -0
  63. /package/types/xr_object/{xr_artefact.d.ts → client/xr_artefact.d.ts} +0 -0
  64. /package/types/xr_object/{xr_creature.d.ts → client/xr_creature.d.ts} +0 -0
  65. /package/types/xr_object/{xr_item.d.ts → client/xr_item.d.ts} +0 -0
@@ -0,0 +1,225 @@
1
+ declare module "xray16" {
2
+ /**
3
+ * @source namespace level
4
+ * @group xr_level
5
+ */
6
+ export interface IXR_level {
7
+ add_call(this: void, cb1: (this: void) => boolean, cb2: (this: void) => boolean): void;
8
+
9
+ add_call(this: void, object: object, cb1: (this: void) => boolean, cb2: (this: void) => boolean): void;
10
+
11
+ add_call(this: void, object: object, str1: string, str2: string): void;
12
+
13
+ add_cam_effector(this: void, effect: string, id: i32, is_cyclic: boolean, callback: string): void;
14
+
15
+ add_cam_effector2(this: void, effect: string, id: i32, is_cyclic: boolean, callback: string, camera_fov: f32): void;
16
+
17
+ add_complex_effector(this: void, section: string, id: i32): void;
18
+
19
+ add_dialog_to_render(this: void, window: CUIDialogWnd): void;
20
+
21
+ add_pp_effector(this: void, fn: string, id: i32, is_cyclic: boolean): void;
22
+
23
+ /**
24
+ * Move time forward based on provided parameters.
25
+ *
26
+ * @param days - days to move forward
27
+ * @param hours - hours to move forward
28
+ * @param minutes - minutes to move forward
29
+ */
30
+ change_game_time(this: void, days: u32, hours: u32, minutes: u32): void;
31
+
32
+ check_object(this: void, object: game_object): void;
33
+
34
+ client_spawn_manager(this: void): client_spawn_manager;
35
+
36
+ debug_actor(this: void): game_object;
37
+
38
+ debug_object(this: void, str: string): game_object;
39
+
40
+ disable_input(this: void): void;
41
+
42
+ enable_input(this: void): void;
43
+
44
+ environment(this: void): unknown /* XR_CEnvironment */;
45
+
46
+ /**
47
+ * @returns current game state ID.
48
+ */
49
+ game_id(this: void): TXR_EGameID;
50
+
51
+ get_active_cam(this: void): u8;
52
+
53
+ get_bounding_volume(this: void): Fbox;
54
+
55
+ get_game_difficulty(this: void): TXR_game_difficulty;
56
+
57
+ get_snd_volume(this: void): f32;
58
+
59
+ /**
60
+ * Get object target distance aimed by crosshair.
61
+ */
62
+ get_target_dist(this: void): f32;
63
+
64
+ get_target_element(this: void): u32;
65
+
66
+ /**
67
+ * Get object target aimed by crosshair.
68
+ */
69
+ get_target_obj(this: void): game_object | null;
70
+
71
+ get_time_days(this: void): u32;
72
+
73
+ get_time_factor(this: void): f32;
74
+
75
+ /**
76
+ * @returns current hours time number
77
+ */
78
+ get_time_hours(this: void): u32;
79
+
80
+ /**
81
+ * @returns current minutes time number
82
+ */
83
+ get_time_minutes(this: void): u32;
84
+
85
+ get_weather(this: void): string;
86
+
87
+ get_wfx_time(this: void): f32;
88
+
89
+ hide_indicators(this: void): void;
90
+
91
+ hide_indicators_safe(this: void): void;
92
+
93
+ high_cover_in_direction(this: void, num: u32, vector: vector): f32;
94
+
95
+ is_wfx_playing(this: void): boolean;
96
+
97
+ iterate_online_objects(this: void, cb: (this: void, object: game_object) => void | boolean): void;
98
+
99
+ iterate_sounds(this: void, str: string, num: u32, cb: (this: void) => void): void;
100
+
101
+ iterate_sounds(this: void, str: string, num: u32, object: object, cb: (this: void) => void): void;
102
+
103
+ low_cover_in_direction(this: void, num: u32, vector: vector): f32;
104
+
105
+ main_input_receiver(this: void): CUIDialogWnd;
106
+
107
+ map_add_object_spot(this: void, id: u16, selector: string, hint: string): void;
108
+
109
+ map_add_object_spot_ser(this: void, id: u16, str1: string, str2: string): void;
110
+
111
+ map_change_spot_hint(this: void, num: u16, selector: string, hint: string): void;
112
+
113
+ /**
114
+ * Checks if object has map spot registered with provided selector.
115
+ *
116
+ * @param object_id - game object id to check map spot
117
+ * @param spot_type - map spot type (icon type to display for the object)
118
+ * @returns whether object map spot with provided selector is registered
119
+ */
120
+ map_has_object_spot(this: void, object_id: u16, spot_type: string): u16;
121
+
122
+ /**
123
+ * Remove object map spot if it exists.
124
+ * Checks if map spot is registered and then removes it in such case.
125
+ * There is no sense in checking object spot before calling removal since action will be duplicated.
126
+ *
127
+ * @param object_id - game object id to check map spot
128
+ * @param spot_type - map spot type (icon type to display for the object)
129
+ */
130
+ map_remove_object_spot(this: void, object_id: u16, spot_type: string): void;
131
+
132
+ name<T extends string = string>(this: void): T;
133
+
134
+ object_by_id(this: void, object_id: u16): game_object | null;
135
+
136
+ patrol_path_exists(this: void, path_name: string): boolean;
137
+
138
+ physics_world(this: void): physics_world;
139
+
140
+ prefetch_sound(this: void, str: string): void;
141
+
142
+ /**
143
+ * @returns whether game level is loaded
144
+ */
145
+ present(this: void): boolean;
146
+
147
+ /**
148
+ * @returns intensity of rain, 0 if no rain active
149
+ */
150
+ rain_factor(this: void): f32;
151
+
152
+ remove_call(this: void, cb1: (this: void) => boolean, cb2: (this: void) => void): void;
153
+
154
+ remove_call(this: void, object: object, cb1: (this: void) => boolean, cb2: (this: void) => void): void;
155
+
156
+ remove_call(this: void, object: object, str1: string, str2: string): void;
157
+
158
+ remove_calls_for_object(this: void, object: object): void;
159
+
160
+ remove_cam_effector(this: void, id: i32): void;
161
+
162
+ remove_complex_effector(this: void, id: i32): void;
163
+
164
+ remove_dialog_to_render(this: void, window: CUIDialogWnd): void;
165
+
166
+ remove_pp_effector(this: void, id: i32): void;
167
+
168
+ send(net_packet: net_packet, bool1: boolean, bool2: boolean, bool3: boolean, bool4: boolean): void;
169
+
170
+ set_active_cam(this: void, id: u8): void;
171
+
172
+ set_game_difficulty(this: void, difficulty: unknown /* enum ESingleGameDifficulty */): void;
173
+
174
+ set_pp_effector_factor(this: void, id: i32, f: f32, f_sp?: f32): void;
175
+
176
+ set_snd_volume(this: void, num: f32): void;
177
+
178
+ set_time_factor(this: void, factor: f32): void;
179
+
180
+ /**
181
+ * Change active game weather.
182
+ *
183
+ * @param weather_name - name of weather config to apply (gamedata\configs\environment\weathers)
184
+ * @param is_forced - whether weather change should be forced
185
+ */
186
+ set_weather(this: void, weather_name: string, is_forced: boolean): void;
187
+
188
+ set_weather_fx(this: void, weather_fs_name: string): boolean;
189
+
190
+ show_indicators(this: void): void;
191
+
192
+ show_weapon(this: void, val: boolean): void;
193
+
194
+ spawn_item(this: void, str: string, vector: vector, uint: u32, ushort: u16, bool: boolean): void;
195
+
196
+ spawn_phantom(this: void, vector: vector): void;
197
+
198
+ start_stop_menu(this: void, dialog: CUIDialogWnd, bool: boolean): void;
199
+
200
+ start_weather_fx_from_time(this: void, str: string, num: f32): boolean;
201
+
202
+ stop_weather_fx(this: void): void;
203
+
204
+ vertex_id(this: void, vector: vector): u32;
205
+
206
+ vertex_in_direction(this: void, num1: u32, vector: vector, num2: f32): u32;
207
+
208
+ vertex_position(this: void, id: u32): vector;
209
+
210
+ ray_pick(
211
+ this: void,
212
+ vec: vector,
213
+ vec2: vector,
214
+ fl: f32,
215
+ enumc: unknown,
216
+ rqres: unknown,
217
+ gobj: game_object
218
+ ): boolean;
219
+ }
220
+
221
+ /**
222
+ * @group xr_level
223
+ */
224
+ export const level: IXR_level;
225
+ }
@@ -0,0 +1,59 @@
1
+ declare module "xray16" {
2
+ /**
3
+ * Base for bindings brought from LuaBind library.
4
+ * Includes base methods implemented with @LuabindClass decorator and overriding of operators.
5
+ *
6
+ * @source luabind
7
+ * @group xr_luabind
8
+ */
9
+ export class EngineBinding {
10
+ /**
11
+ * Name of luabind class constructor.
12
+ */
13
+ public static readonly __name: string;
14
+
15
+ /**
16
+ * Name of luabind class instance constructor.
17
+ */
18
+ public readonly __name: string;
19
+ }
20
+
21
+ /**
22
+ * @group xr_luabind
23
+ */
24
+ type TEngineBindingStaticMethods = keyof typeof EngineBinding;
25
+
26
+ /**
27
+ * Decorator to mark classes as luabind transformed.
28
+ * Marked classes will be declared using luabind tools instead of default typescript-to-lua approach.
29
+ * Luabind variant is less flexible and has many limitations,
30
+ * but allows extension of engine exported classes and virtual methods.
31
+ *
32
+ * @group xr_luabind
33
+ * @returns class decorator to mark class as luabind implementation
34
+ */
35
+ export function LuabindClass(): ClassDecorator;
36
+
37
+ /**
38
+ * @source C++ class class_info_data
39
+ * @customConstructor class_info_data
40
+ * @group xr_luabind
41
+ */
42
+ export class class_info_data extends EngineBinding {
43
+ public readonly methods: object;
44
+ public readonly attributes: object;
45
+ public readonly name: string;
46
+
47
+ private constructor();
48
+ }
49
+
50
+ /**
51
+ * @group xr_luabind
52
+ */
53
+ export function class_names(this: void, lua_state: unknown /* lua_State*/): object;
54
+
55
+ /**
56
+ * @group xr_luabind
57
+ */
58
+ export function class_info(this: void, target: unknown): class_info_data;
59
+ }
@@ -8,7 +8,9 @@ declare module "xray16" {
8
8
  public constructor();
9
9
 
10
10
  public RemoveMapLocationByObjectID(id: u16): void;
11
+
11
12
  public RemoveMapLocation(spot_type: string, id: u16): void;
13
+
12
14
  public DisableAllPointers(): void;
13
15
  }
14
16
 
@@ -21,22 +23,39 @@ declare module "xray16" {
21
23
  public constructor();
22
24
 
23
25
  public Collidable(): boolean;
26
+
24
27
  public DisablePointer(): void;
28
+
25
29
  public DisableSpot(): void;
30
+
26
31
  public EnablePointer(): void;
32
+
27
33
  public EnableSpot(): void;
34
+
28
35
  public GetHint(): string;
36
+
29
37
  public GetLastPosition(): vector2;
38
+
30
39
  public GetLevelName(): string;
40
+
31
41
  public GetPosition(): vector2;
42
+
32
43
  public HighlightSpot(state: boolean, color: fcolor): void;
44
+
33
45
  public HintEnabled(): boolean;
46
+
34
47
  public IsUserDefined(): boolean;
48
+
35
49
  public ObjectID(): u16;
50
+
36
51
  public PointerEnabled(): boolean;
52
+
37
53
  public SetHint(hint: string): void;
54
+
38
55
  public SetUserDefinedFlag(state: boolean): void;
56
+
39
57
  public SpotEnabled(): boolean;
58
+
40
59
  public SpotSize(): vector2;
41
60
  }
42
61
  }
@@ -51,6 +51,7 @@ declare module "xray16" {
51
51
  public y: f32;
52
52
 
53
53
  public set(x: f32, y: f32): vector2;
54
+
54
55
  public set(vector: vector2): vector2;
55
56
  }
56
57
 
@@ -65,57 +66,109 @@ declare module "xray16" {
65
66
  public z: f32;
66
67
 
67
68
  public abs(vector: Readonly<vector>): vector;
69
+
68
70
  public add(val: f32): vector;
71
+
69
72
  public add(vector1: Readonly<vector>, vector2: Readonly<vector>): vector;
73
+
70
74
  public add(vector: Readonly<vector>): vector;
75
+
71
76
  public add(vector: Readonly<vector>, val: f32): vector;
77
+
72
78
  public align(): vector;
79
+
73
80
  public average(vector1: Readonly<vector>, vector2: Readonly<vector>): vector;
81
+
74
82
  public average(vector: Readonly<vector>): vector;
83
+
75
84
  public clamp(vector1: Readonly<vector>, vector2: Readonly<vector>): vector;
85
+
76
86
  public clamp(vector: Readonly<vector>): vector;
87
+
77
88
  public crossproduct(vector1: Readonly<vector>, vector2: Readonly<vector>): vector;
89
+
78
90
  public distance_to(vector: Readonly<vector>): f32;
91
+
79
92
  public distance_to_sqr(vector: Readonly<vector>): f32;
93
+
80
94
  public distance_to_xz(vector: Readonly<vector>): f32;
95
+
81
96
  public div(val: f32): vector;
97
+
82
98
  public div(vector1: Readonly<vector>, vector2: Readonly<vector>): vector;
99
+
83
100
  public div(vector: Readonly<vector>): vector;
101
+
84
102
  public div(vector: Readonly<vector>, val: f32): vector;
103
+
85
104
  public dotproduct(vector: Readonly<vector>): f32;
105
+
86
106
  public getH(): f32;
107
+
87
108
  public getP(): f32;
109
+
88
110
  public inertion(vector: Readonly<vector>, val: f32): vector;
111
+
89
112
  public invert(): vector;
113
+
90
114
  public invert(vector: Readonly<vector>): vector;
115
+
91
116
  public lerp(vector1: Readonly<vector>, vector2: Readonly<vector>, val: f32): vector;
117
+
92
118
  public mad(vector1: Readonly<vector>, vector2: Readonly<vector>): vector;
119
+
93
120
  public mad(vector1: Readonly<vector>, vector2: Readonly<vector>, val: f32): vector;
121
+
94
122
  public mad(vector1: Readonly<vector>, vector2: Readonly<vector>, vector3: Readonly<vector>): vector;
123
+
95
124
  public mad(vector: Readonly<vector>, val: f32): vector;
125
+
96
126
  public magnitude(): f32;
127
+
97
128
  public max(vector1: Readonly<vector>, vector2: Readonly<vector>): vector;
129
+
98
130
  public max(vector: Readonly<vector>): vector;
131
+
99
132
  public min(vector1: Readonly<vector>, vector2: Readonly<vector>): vector;
133
+
100
134
  public min(vector: Readonly<vector>): vector;
135
+
101
136
  public mul(val: f32): vector;
137
+
102
138
  public mul(vector1: Readonly<vector>, vector2: Readonly<vector>): vector;
139
+
103
140
  public mul(vector: Readonly<vector>): vector;
141
+
104
142
  public mul(vector: Readonly<vector>, val: f32): vector;
143
+
105
144
  public normalize(): vector;
145
+
106
146
  public normalize(vector: Readonly<vector>): vector;
147
+
107
148
  public normalize_safe(): vector;
149
+
108
150
  public normalize_safe(vector: Readonly<vector>): vector;
151
+
109
152
  public reflect(vector1: Readonly<vector>, vector2: Readonly<vector>): vector;
153
+
110
154
  public set(vector: Readonly<vector>): vector;
155
+
111
156
  public set(x: f32, y: f32, z: f32): vector;
157
+
112
158
  public setHP(val1: f32, val2: f32): vector;
159
+
113
160
  public set_length(val: f32): vector;
161
+
114
162
  public similar(vector: Readonly<vector>, val: f32): boolean;
163
+
115
164
  public slide(vector1: Readonly<vector>, vector2: Readonly<vector>): vector;
165
+
116
166
  public sub(val: f32): vector;
167
+
117
168
  public sub(vector1: Readonly<vector>, vector2: Readonly<vector>): vector;
169
+
118
170
  public sub(vector: Readonly<vector>): vector;
171
+
119
172
  public sub(vector: Readonly<vector>, val: f32): vector;
120
173
  }
121
174
 
@@ -149,17 +202,29 @@ declare module "xray16" {
149
202
  public constructor();
150
203
 
151
204
  public mk_xform(x: unknown /* _quaternion<float> */, vector: vector): matrix;
205
+
152
206
  public set(matix: matrix): matrix;
207
+
153
208
  public set(vector1: vector, vector2: vector, vector3: vector, vector4: vector): matrix;
209
+
154
210
  public div(matix: matrix, number: f32): matrix;
211
+
155
212
  public div(number: f32): matrix;
213
+
156
214
  public identity(): matrix;
215
+
157
216
  public setHPB(number1: f32, number2: f32, number3: f32): matrix;
217
+
158
218
  public setXYZ(x: f32, y: f32, z: f32): matrix;
219
+
159
220
  public getHPB(matrix: matrix, number1: f32, number2: f32, number3: f32): matrix;
221
+
160
222
  public mul(matix1: matrix, matix2: matrix): matrix;
223
+
161
224
  public mul(matix: matrix, number: f32): matrix;
225
+
162
226
  public mul(number: f32): matrix;
227
+
163
228
  public setXYZi(number1: f32, number2: f32, number3: f32): matrix;
164
229
  }
165
230
  }
@@ -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
+ }