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,59 +1,64 @@
|
|
|
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
|
-
*
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
* @
|
|
40
|
-
* @
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
public readonly
|
|
45
|
-
public readonly
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
+
*
|
|
34
|
+
* @returns Class decorator to mark class as luabind implementation.
|
|
35
|
+
*/
|
|
36
|
+
export function LuabindClass(): ClassDecorator;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @source C++ class class_info_data
|
|
40
|
+
* @customConstructor class_info_data
|
|
41
|
+
* @group xr_luabind
|
|
42
|
+
*/
|
|
43
|
+
export class class_info_data extends EngineBinding {
|
|
44
|
+
public readonly methods: LuaTable<string, (...args: Array<unknown>) => unknown>;
|
|
45
|
+
public readonly attributes: LuaTable<number, string>;
|
|
46
|
+
public readonly name: string;
|
|
47
|
+
|
|
48
|
+
private constructor();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @group xr_luabind
|
|
53
|
+
*
|
|
54
|
+
* @param lua_state
|
|
55
|
+
*/
|
|
56
|
+
export function class_names(this: void, lua_state: unknown /* Lua_State*/): LuaTable<number, string>;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @group xr_luabind
|
|
60
|
+
*
|
|
61
|
+
* @param target
|
|
62
|
+
*/
|
|
63
|
+
export function class_info(this: void, target: unknown): class_info_data;
|
|
64
|
+
}
|
package/types/xr_lib/xr_map.d.ts
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
declare module "xray16" {
|
|
2
|
-
/**
|
|
3
|
-
* @source C++ class CMapManager
|
|
4
|
-
* @customConstructor CMapManager
|
|
5
|
-
* @group xr_map
|
|
6
|
-
*/
|
|
7
|
-
export class CMapManager {
|
|
8
|
-
public constructor();
|
|
9
|
-
|
|
10
|
-
public RemoveMapLocationByObjectID(id: u16): void;
|
|
11
|
-
|
|
12
|
-
public RemoveMapLocation(spot_type: string, id: u16): void;
|
|
13
|
-
|
|
14
|
-
public DisableAllPointers(): void;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @source C++ class CMapLocation
|
|
19
|
-
* @customConstructor CMapLocation
|
|
20
|
-
* @group xr_map
|
|
21
|
-
*/
|
|
22
|
-
export class CMapLocation {
|
|
23
|
-
public constructor();
|
|
24
|
-
|
|
25
|
-
public Collidable(): boolean;
|
|
26
|
-
|
|
27
|
-
public DisablePointer(): void;
|
|
28
|
-
|
|
29
|
-
public DisableSpot(): void;
|
|
30
|
-
|
|
31
|
-
public EnablePointer(): void;
|
|
32
|
-
|
|
33
|
-
public EnableSpot(): void;
|
|
34
|
-
|
|
35
|
-
public GetHint(): string;
|
|
36
|
-
|
|
37
|
-
public GetLastPosition(): vector2;
|
|
38
|
-
|
|
39
|
-
public GetLevelName(): string;
|
|
40
|
-
|
|
41
|
-
public GetPosition(): vector2;
|
|
42
|
-
|
|
43
|
-
public HighlightSpot(state: boolean, color: fcolor): void;
|
|
44
|
-
|
|
45
|
-
public HintEnabled(): boolean;
|
|
46
|
-
|
|
47
|
-
public IsUserDefined(): boolean;
|
|
48
|
-
|
|
49
|
-
public ObjectID(): u16;
|
|
50
|
-
|
|
51
|
-
public PointerEnabled(): boolean;
|
|
52
|
-
|
|
53
|
-
public SetHint(hint: string): void;
|
|
54
|
-
|
|
55
|
-
public SetUserDefinedFlag(state: boolean): void;
|
|
56
|
-
|
|
57
|
-
public SpotEnabled(): boolean;
|
|
58
|
-
|
|
59
|
-
public SpotSize(): vector2;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @source C++ class CMapManager
|
|
4
|
+
* @customConstructor CMapManager
|
|
5
|
+
* @group xr_map
|
|
6
|
+
*/
|
|
7
|
+
export class CMapManager {
|
|
8
|
+
public constructor();
|
|
9
|
+
|
|
10
|
+
public RemoveMapLocationByObjectID(id: u16): void;
|
|
11
|
+
|
|
12
|
+
public RemoveMapLocation(spot_type: string, id: u16): void;
|
|
13
|
+
|
|
14
|
+
public DisableAllPointers(): void;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @source C++ class CMapLocation
|
|
19
|
+
* @customConstructor CMapLocation
|
|
20
|
+
* @group xr_map
|
|
21
|
+
*/
|
|
22
|
+
export class CMapLocation {
|
|
23
|
+
public constructor();
|
|
24
|
+
|
|
25
|
+
public Collidable(): boolean;
|
|
26
|
+
|
|
27
|
+
public DisablePointer(): void;
|
|
28
|
+
|
|
29
|
+
public DisableSpot(): void;
|
|
30
|
+
|
|
31
|
+
public EnablePointer(): void;
|
|
32
|
+
|
|
33
|
+
public EnableSpot(): void;
|
|
34
|
+
|
|
35
|
+
public GetHint(): string;
|
|
36
|
+
|
|
37
|
+
public GetLastPosition(): vector2;
|
|
38
|
+
|
|
39
|
+
public GetLevelName(): string;
|
|
40
|
+
|
|
41
|
+
public GetPosition(): vector2;
|
|
42
|
+
|
|
43
|
+
public HighlightSpot(state: boolean, color: fcolor): void;
|
|
44
|
+
|
|
45
|
+
public HintEnabled(): boolean;
|
|
46
|
+
|
|
47
|
+
public IsUserDefined(): boolean;
|
|
48
|
+
|
|
49
|
+
public ObjectID(): u16;
|
|
50
|
+
|
|
51
|
+
public PointerEnabled(): boolean;
|
|
52
|
+
|
|
53
|
+
public SetHint(hint: string): void;
|
|
54
|
+
|
|
55
|
+
public SetUserDefinedFlag(state: boolean): void;
|
|
56
|
+
|
|
57
|
+
public SpotEnabled(): boolean;
|
|
58
|
+
|
|
59
|
+
public SpotSize(): vector2;
|
|
60
|
+
}
|
|
61
|
+
}
|