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,160 +1,192 @@
|
|
|
1
|
-
declare module "xray16" {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
*
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
*
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
*
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
*
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* No Lua profiler is active.
|
|
4
|
+
*
|
|
5
|
+
* @source C++ enum CScriptProfilerType::None
|
|
6
|
+
* @group xr_profiler
|
|
7
|
+
*/
|
|
8
|
+
export const PROFILER_TYPE_NONE: 0;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Hook-based Lua profiler.
|
|
12
|
+
*
|
|
13
|
+
* @source C++ enum CScriptProfilerType::Hook
|
|
14
|
+
* @group xr_profiler
|
|
15
|
+
*/
|
|
16
|
+
export const PROFILER_TYPE_HOOK: 1;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* LuaJIT sampling profiler.
|
|
20
|
+
*
|
|
21
|
+
* @source C++ enum CScriptProfilerType::Sampling
|
|
22
|
+
* @group xr_profiler
|
|
23
|
+
*/
|
|
24
|
+
export const PROFILER_TYPE_SAMPLING: 2;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Lua profiler mode accepted by `profiler.start`.
|
|
28
|
+
*
|
|
29
|
+
* @source C++ enum CScriptProfilerType
|
|
30
|
+
* @group xr_profiler
|
|
31
|
+
*/
|
|
32
|
+
export type TXR_ProfilerType = typeof PROFILER_TYPE_NONE | typeof PROFILER_TYPE_HOOK | typeof PROFILER_TYPE_SAMPLING;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @source C++ class profile_timer
|
|
36
|
+
* @customConstructor profile_timer
|
|
37
|
+
* @group xr_profiler
|
|
38
|
+
*/
|
|
39
|
+
export class profile_timer extends EngineBinding {
|
|
40
|
+
public constructor();
|
|
41
|
+
public constructor(timer: profile_timer);
|
|
42
|
+
|
|
43
|
+
public stop(): void;
|
|
44
|
+
|
|
45
|
+
public start(): void;
|
|
46
|
+
|
|
47
|
+
public time(): f32;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Overridden string cast is implemented for profiling timer.
|
|
51
|
+
*
|
|
52
|
+
* @returns Serialized profile time.
|
|
53
|
+
*/
|
|
54
|
+
public toString(): string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @source namespace profiler
|
|
59
|
+
* @group xr_profiler
|
|
60
|
+
*/
|
|
61
|
+
export interface IXR_profiler {
|
|
62
|
+
/**
|
|
63
|
+
* @returns Whether lua scripts profiler is active.
|
|
64
|
+
*/
|
|
65
|
+
is_active(this: void): boolean;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @returns Currently active profiler type.
|
|
69
|
+
*/
|
|
70
|
+
get_type(this: void): typeof PROFILER_TYPE_NONE | typeof PROFILER_TYPE_HOOK | typeof PROFILER_TYPE_SAMPLING;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Start lua scripts profiler in default mode.
|
|
74
|
+
*/
|
|
75
|
+
start(this: void): void;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Start lua scripts profiler of provided type.
|
|
79
|
+
*
|
|
80
|
+
* @param profiler_type - Type of profiler to start (note: see global exports of type constants).
|
|
81
|
+
*/
|
|
82
|
+
start(this: void, profiler_type: TXR_ProfilerType): void;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Start profiler in hook mode.
|
|
86
|
+
* Profiling performance based on lua call start/end events.
|
|
87
|
+
*/
|
|
88
|
+
start_hook_mode(this: void): void;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Start profiler in sampling mode with default sampling interval.
|
|
92
|
+
*/
|
|
93
|
+
start_sampling_mode(this: void): void;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Start profiler in sampling mode with provided sampling interval value.
|
|
97
|
+
*
|
|
98
|
+
* @param sampling_interval - Interval to collect samples with luaJIT sampling profiler.
|
|
99
|
+
*/
|
|
100
|
+
start_sampling_mode(this: void, sampling_interval: u32): void;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Stop currently active profiler.
|
|
104
|
+
*/
|
|
105
|
+
stop(this: void): void;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Reset measurements data of profiler.
|
|
109
|
+
*/
|
|
110
|
+
reset(this: void): void;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Log report of profiler measurements in game console/log file.
|
|
114
|
+
* Use default engine limit to print top N entries.
|
|
115
|
+
*/
|
|
116
|
+
log_report(this: void): void;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Log report of profiler measurements in game console/log file.
|
|
120
|
+
*
|
|
121
|
+
* @param entries_limit - Limit of top profiling entries to print.
|
|
122
|
+
*/
|
|
123
|
+
log_report(this: void, entries_limit: u32): void;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Save report of profiler measurements in corresponding log/perf file.
|
|
127
|
+
*/
|
|
128
|
+
save_report(this: void): void;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Lua script profiler namespace.
|
|
133
|
+
*
|
|
134
|
+
* @source namespace profiler
|
|
135
|
+
* @group xr_profiler
|
|
136
|
+
*/
|
|
137
|
+
export const profiler: IXR_profiler;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @source namespace profiler
|
|
141
|
+
* @group xr_profiler
|
|
142
|
+
*/
|
|
143
|
+
export interface IXR_tracy {
|
|
144
|
+
/**
|
|
145
|
+
* Begin tracy profiling zone.
|
|
146
|
+
*/
|
|
147
|
+
ZoneBegin(this: void): void;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Begin tracy profiling zone with defined name.
|
|
151
|
+
*
|
|
152
|
+
* @param name - Name to display in tracy logs for current zone.
|
|
153
|
+
*/
|
|
154
|
+
ZoneBeginN(this: void, name: string): void;
|
|
155
|
+
|
|
156
|
+
ZoneBeginS(this: void): void;
|
|
157
|
+
|
|
158
|
+
ZoneBeginNS(this: void): void;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* End tracy profiling zone.
|
|
162
|
+
*/
|
|
163
|
+
ZoneEnd(this: void): void;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Set zone text.
|
|
167
|
+
*
|
|
168
|
+
* @param text - Text description of the zone.
|
|
169
|
+
*/
|
|
170
|
+
ZoneText(this: void, text: string): void;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Set zone name on per-call basis.
|
|
174
|
+
*
|
|
175
|
+
* @param name - Name of zone.
|
|
176
|
+
*/
|
|
177
|
+
ZoneName(this: void, name: string): void;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Send message to tracy profiler.
|
|
181
|
+
*/
|
|
182
|
+
Message(this: void): void;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Tracy profiling namespace.
|
|
187
|
+
*
|
|
188
|
+
* @source namespace tracy
|
|
189
|
+
* @group xr_profiler
|
|
190
|
+
*/
|
|
191
|
+
export const tracy: IXR_tracy;
|
|
192
|
+
}
|