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,47 +1,47 @@
|
|
|
1
|
-
declare module "xray16" {
|
|
2
|
-
/**
|
|
3
|
-
* @source C++ class GameGraph__CVertex
|
|
4
|
-
* @customConstructor GameGraph__CVertex
|
|
5
|
-
* @group xr_graph
|
|
6
|
-
*/
|
|
7
|
-
export class GameGraph__CVertex extends EngineBinding {
|
|
8
|
-
protected constructor();
|
|
9
|
-
|
|
10
|
-
public level_vertex_id(): u32;
|
|
11
|
-
|
|
12
|
-
public level_id(): u8;
|
|
13
|
-
|
|
14
|
-
public game_point(): vector;
|
|
15
|
-
|
|
16
|
-
public level_point(): vector;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @source C++ class CGameGraph
|
|
21
|
-
* @customConstructor CGameGraph
|
|
22
|
-
* @group xr_graph
|
|
23
|
-
*/
|
|
24
|
-
export class CGameGraph {
|
|
25
|
-
public valid_vertex_id(value: u32): boolean;
|
|
26
|
-
|
|
27
|
-
public vertex(vertexId: u32): GameGraph__CVertex;
|
|
28
|
-
|
|
29
|
-
public vertex_id(graph: CGameGraph): u16;
|
|
30
|
-
|
|
31
|
-
public accessible(value: u32): boolean;
|
|
32
|
-
|
|
33
|
-
public accessible(value1: u32, value2: boolean): void;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Method to iterate over game levels registered in `all.spawn`.
|
|
37
|
-
*
|
|
38
|
-
* @returns
|
|
39
|
-
*/
|
|
40
|
-
public levels(): LuaIterable<cse_abstract>;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @group xr_graph
|
|
45
|
-
*/
|
|
46
|
-
export function game_graph(this: void): CGameGraph;
|
|
47
|
-
}
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @source C++ class GameGraph__CVertex
|
|
4
|
+
* @customConstructor GameGraph__CVertex
|
|
5
|
+
* @group xr_graph
|
|
6
|
+
*/
|
|
7
|
+
export class GameGraph__CVertex extends EngineBinding {
|
|
8
|
+
protected constructor();
|
|
9
|
+
|
|
10
|
+
public level_vertex_id(): u32;
|
|
11
|
+
|
|
12
|
+
public level_id(): u8;
|
|
13
|
+
|
|
14
|
+
public game_point(): vector;
|
|
15
|
+
|
|
16
|
+
public level_point(): vector;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @source C++ class CGameGraph
|
|
21
|
+
* @customConstructor CGameGraph
|
|
22
|
+
* @group xr_graph
|
|
23
|
+
*/
|
|
24
|
+
export class CGameGraph {
|
|
25
|
+
public valid_vertex_id(value: u32): boolean;
|
|
26
|
+
|
|
27
|
+
public vertex(vertexId: u32): GameGraph__CVertex;
|
|
28
|
+
|
|
29
|
+
public vertex_id(graph: CGameGraph): u16;
|
|
30
|
+
|
|
31
|
+
public accessible(value: u32): boolean;
|
|
32
|
+
|
|
33
|
+
public accessible(value1: u32, value2: boolean): void;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Method to iterate over game levels registered in `all.spawn`.
|
|
37
|
+
*
|
|
38
|
+
* @returns Level abstract object with every iteration.
|
|
39
|
+
*/
|
|
40
|
+
public levels(): LuaIterable<cse_abstract>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @group xr_graph
|
|
45
|
+
*/
|
|
46
|
+
export function game_graph(this: void): CGameGraph;
|
|
47
|
+
}
|
|
@@ -1,148 +1,148 @@
|
|
|
1
|
-
declare module "xray16" {
|
|
2
|
-
/**
|
|
3
|
-
* @source C++ class memory_object
|
|
4
|
-
* @customConstructor memory_object
|
|
5
|
-
* @group xr_memory
|
|
6
|
-
*/
|
|
7
|
-
export class memory_object extends EngineBinding {
|
|
8
|
-
public readonly last_level_time: u32;
|
|
9
|
-
public readonly level_time: u32;
|
|
10
|
-
|
|
11
|
-
protected constructor();
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @source C++ class entity_memory_object : memory_object
|
|
16
|
-
* @customConstructor entity_memory_object
|
|
17
|
-
* @group xr_memory
|
|
18
|
-
*/
|
|
19
|
-
export class entity_memory_object extends memory_object {
|
|
20
|
-
public readonly object_info: object;
|
|
21
|
-
public readonly self_info: object;
|
|
22
|
-
|
|
23
|
-
protected constructor();
|
|
24
|
-
|
|
25
|
-
public object(): game_object;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @source C++ class object_params
|
|
30
|
-
* @customConstructor object_params
|
|
31
|
-
* @group xr_memory
|
|
32
|
-
*/
|
|
33
|
-
export class object_params {
|
|
34
|
-
public level_vertex: u32;
|
|
35
|
-
public position: vector;
|
|
36
|
-
|
|
37
|
-
private constructor();
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* @source C++ class hit_memory_object : entity_memory_object
|
|
42
|
-
* @customConstructor hit_memory_object
|
|
43
|
-
* @group xr_memory
|
|
44
|
-
*/
|
|
45
|
-
export class hit_memory_object extends entity_memory_object {
|
|
46
|
-
public readonly amount: f32;
|
|
47
|
-
public readonly bone_index: u16;
|
|
48
|
-
public readonly direction: vector;
|
|
49
|
-
|
|
50
|
-
protected constructor();
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @source C++ class game_memory_object : memory_object
|
|
55
|
-
* @customConstructor game_memory_object
|
|
56
|
-
* @group xr_memory
|
|
57
|
-
*/
|
|
58
|
-
export class game_memory_object extends memory_object {
|
|
59
|
-
public object_info: unknown; /* MemorySpace::CObjectParams<class CGameObject>& */
|
|
60
|
-
public self_info: unknown; /* MemorySpace::CObjectParams<class CGameObject>& */
|
|
61
|
-
public object(): game_object;
|
|
62
|
-
|
|
63
|
-
protected constructor();
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @source C++ class not_yet_visible_object
|
|
68
|
-
* @customConstructor not_yet_visible_object
|
|
69
|
-
* @group xr_memory
|
|
70
|
-
*/
|
|
71
|
-
export class not_yet_visible_object extends EngineBinding {
|
|
72
|
-
protected constructor();
|
|
73
|
-
|
|
74
|
-
public value: f32;
|
|
75
|
-
public object(): game_object;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @source C++ class visible_memory_object
|
|
80
|
-
* @customConstructor visible_memory_object
|
|
81
|
-
* @group xr_memory
|
|
82
|
-
*/
|
|
83
|
-
export class visible_memory_object extends game_memory_object {
|
|
84
|
-
protected constructor();
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @source C++ class memory_info : visible_memory_object
|
|
89
|
-
* @customConstructor visible_memory_object
|
|
90
|
-
* @group xr_memory
|
|
91
|
-
*/
|
|
92
|
-
export class memory_info extends visible_memory_object {
|
|
93
|
-
public readonly hit_info: boolean;
|
|
94
|
-
public readonly sound_info: boolean;
|
|
95
|
-
public readonly visual_info: boolean;
|
|
96
|
-
|
|
97
|
-
protected constructor();
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @source C++ class sound_memory_object : game_memory_object
|
|
102
|
-
* @customConstructor sound_memory_object
|
|
103
|
-
* @group xr_memory
|
|
104
|
-
*/
|
|
105
|
-
export class sound_memory_object extends game_memory_object {
|
|
106
|
-
public readonly power: f32;
|
|
107
|
-
|
|
108
|
-
protected constructor();
|
|
109
|
-
|
|
110
|
-
public type(): i32;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* @source C++ class danger_object
|
|
115
|
-
* @customConstructor danger_object
|
|
116
|
-
* @group xr_memory
|
|
117
|
-
*/
|
|
118
|
-
export class danger_object {
|
|
119
|
-
public static attack_sound: 1;
|
|
120
|
-
public static attacked: 5;
|
|
121
|
-
public static bullet_ricochet: 0;
|
|
122
|
-
public static enemy_sound: 7;
|
|
123
|
-
public static entity_attacked: 2;
|
|
124
|
-
public static entity_corpse: 4;
|
|
125
|
-
public static entity_death: 3;
|
|
126
|
-
public static grenade: 6;
|
|
127
|
-
public static hit: 2;
|
|
128
|
-
public static sound: 1;
|
|
129
|
-
public static visual: 0;
|
|
130
|
-
|
|
131
|
-
public type(): TXR_danger_object;
|
|
132
|
-
public time(): u32;
|
|
133
|
-
public position(): vector;
|
|
134
|
-
public object(): game_object;
|
|
135
|
-
public perceive_type(): number; /* CDangerObject::EDangerPerceiveType */
|
|
136
|
-
public dependent_object(): game_object;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* @group xr_memory
|
|
141
|
-
*/
|
|
142
|
-
export type TXR_danger_objects = typeof danger_object;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* @group xr_memory
|
|
146
|
-
*/
|
|
147
|
-
export type TXR_danger_object = EnumeratedStaticsValues<TXR_danger_objects>;
|
|
148
|
-
}
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @source C++ class memory_object
|
|
4
|
+
* @customConstructor memory_object
|
|
5
|
+
* @group xr_memory
|
|
6
|
+
*/
|
|
7
|
+
export class memory_object extends EngineBinding {
|
|
8
|
+
public readonly last_level_time: u32;
|
|
9
|
+
public readonly level_time: u32;
|
|
10
|
+
|
|
11
|
+
protected constructor();
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @source C++ class entity_memory_object : memory_object
|
|
16
|
+
* @customConstructor entity_memory_object
|
|
17
|
+
* @group xr_memory
|
|
18
|
+
*/
|
|
19
|
+
export class entity_memory_object extends memory_object {
|
|
20
|
+
public readonly object_info: object;
|
|
21
|
+
public readonly self_info: object;
|
|
22
|
+
|
|
23
|
+
protected constructor();
|
|
24
|
+
|
|
25
|
+
public object(): game_object;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @source C++ class object_params
|
|
30
|
+
* @customConstructor object_params
|
|
31
|
+
* @group xr_memory
|
|
32
|
+
*/
|
|
33
|
+
export class object_params {
|
|
34
|
+
public level_vertex: u32;
|
|
35
|
+
public position: vector;
|
|
36
|
+
|
|
37
|
+
private constructor();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @source C++ class hit_memory_object : entity_memory_object
|
|
42
|
+
* @customConstructor hit_memory_object
|
|
43
|
+
* @group xr_memory
|
|
44
|
+
*/
|
|
45
|
+
export class hit_memory_object extends entity_memory_object {
|
|
46
|
+
public readonly amount: f32;
|
|
47
|
+
public readonly bone_index: u16;
|
|
48
|
+
public readonly direction: vector;
|
|
49
|
+
|
|
50
|
+
protected constructor();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @source C++ class game_memory_object : memory_object
|
|
55
|
+
* @customConstructor game_memory_object
|
|
56
|
+
* @group xr_memory
|
|
57
|
+
*/
|
|
58
|
+
export class game_memory_object extends memory_object {
|
|
59
|
+
public object_info: unknown; /* MemorySpace::CObjectParams<class CGameObject>& */
|
|
60
|
+
public self_info: unknown; /* MemorySpace::CObjectParams<class CGameObject>& */
|
|
61
|
+
public object(): game_object;
|
|
62
|
+
|
|
63
|
+
protected constructor();
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @source C++ class not_yet_visible_object
|
|
68
|
+
* @customConstructor not_yet_visible_object
|
|
69
|
+
* @group xr_memory
|
|
70
|
+
*/
|
|
71
|
+
export class not_yet_visible_object extends EngineBinding {
|
|
72
|
+
protected constructor();
|
|
73
|
+
|
|
74
|
+
public value: f32;
|
|
75
|
+
public object(): game_object;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @source C++ class visible_memory_object
|
|
80
|
+
* @customConstructor visible_memory_object
|
|
81
|
+
* @group xr_memory
|
|
82
|
+
*/
|
|
83
|
+
export class visible_memory_object extends game_memory_object {
|
|
84
|
+
protected constructor();
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @source C++ class memory_info : visible_memory_object
|
|
89
|
+
* @customConstructor visible_memory_object
|
|
90
|
+
* @group xr_memory
|
|
91
|
+
*/
|
|
92
|
+
export class memory_info extends visible_memory_object {
|
|
93
|
+
public readonly hit_info: boolean;
|
|
94
|
+
public readonly sound_info: boolean;
|
|
95
|
+
public readonly visual_info: boolean;
|
|
96
|
+
|
|
97
|
+
protected constructor();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @source C++ class sound_memory_object : game_memory_object
|
|
102
|
+
* @customConstructor sound_memory_object
|
|
103
|
+
* @group xr_memory
|
|
104
|
+
*/
|
|
105
|
+
export class sound_memory_object extends game_memory_object {
|
|
106
|
+
public readonly power: f32;
|
|
107
|
+
|
|
108
|
+
protected constructor();
|
|
109
|
+
|
|
110
|
+
public type(): i32;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @source C++ class danger_object
|
|
115
|
+
* @customConstructor danger_object
|
|
116
|
+
* @group xr_memory
|
|
117
|
+
*/
|
|
118
|
+
export class danger_object {
|
|
119
|
+
public static attack_sound: 1;
|
|
120
|
+
public static attacked: 5;
|
|
121
|
+
public static bullet_ricochet: 0;
|
|
122
|
+
public static enemy_sound: 7;
|
|
123
|
+
public static entity_attacked: 2;
|
|
124
|
+
public static entity_corpse: 4;
|
|
125
|
+
public static entity_death: 3;
|
|
126
|
+
public static grenade: 6;
|
|
127
|
+
public static hit: 2;
|
|
128
|
+
public static sound: 1;
|
|
129
|
+
public static visual: 0;
|
|
130
|
+
|
|
131
|
+
public type(): TXR_danger_object;
|
|
132
|
+
public time(): u32;
|
|
133
|
+
public position(): vector;
|
|
134
|
+
public object(): game_object;
|
|
135
|
+
public perceive_type(): number; /* CDangerObject::EDangerPerceiveType */
|
|
136
|
+
public dependent_object(): game_object;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @group xr_memory
|
|
141
|
+
*/
|
|
142
|
+
export type TXR_danger_objects = typeof danger_object;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @group xr_memory
|
|
146
|
+
*/
|
|
147
|
+
export type TXR_danger_object = EnumeratedStaticsValues<TXR_danger_objects>;
|
|
148
|
+
}
|
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
declare module "xray16" {
|
|
2
|
-
/**
|
|
3
|
-
* @source C++ class duality
|
|
4
|
-
* @customConstructor duality
|
|
5
|
-
* @group xr_animation
|
|
6
|
-
*/
|
|
7
|
-
export class duality {
|
|
8
|
-
public v: f32;
|
|
9
|
-
public h: f32;
|
|
10
|
-
|
|
11
|
-
public constructor();
|
|
12
|
-
public constructor(v: f32, h: f32);
|
|
13
|
-
|
|
14
|
-
public set(v: f32, h: f32): duality;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @source C++ class noise
|
|
19
|
-
* @customConstructor noise
|
|
20
|
-
* @group xr_animation
|
|
21
|
-
*/
|
|
22
|
-
export class noise {
|
|
23
|
-
public fps: f32;
|
|
24
|
-
public grain: f32;
|
|
25
|
-
public intensity: f32;
|
|
26
|
-
|
|
27
|
-
public constructor();
|
|
28
|
-
public constructor(fps: f32, grain: f32, intensity: f32);
|
|
29
|
-
|
|
30
|
-
public set(fps: f32, grain: f32, intensity: f32): noise;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @source C++ class effector
|
|
35
|
-
* @customConstructor effector
|
|
36
|
-
* @group xr_animation
|
|
37
|
-
*/
|
|
38
|
-
export class effector extends EngineBinding {
|
|
39
|
-
public constructor(int: i32, float: f32);
|
|
40
|
-
|
|
41
|
-
public start(): void;
|
|
42
|
-
|
|
43
|
-
public process(effector_params: effector_params): boolean;
|
|
44
|
-
|
|
45
|
-
public finish(): void;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @source C++ class effector_params
|
|
50
|
-
* @customConstructor effector_params
|
|
51
|
-
* @group xr_animation
|
|
52
|
-
*/
|
|
53
|
-
export class effector_params extends EngineBinding {
|
|
54
|
-
public color_add: color;
|
|
55
|
-
public color_base: color;
|
|
56
|
-
public color_gray: color;
|
|
57
|
-
public dual: duality;
|
|
58
|
-
public blur: f32;
|
|
59
|
-
public gray: f32;
|
|
60
|
-
public noise: noise;
|
|
61
|
-
|
|
62
|
-
public constructor();
|
|
63
|
-
|
|
64
|
-
public assign(effector_params: effector_params): void;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @source C++ class color_animator
|
|
69
|
-
* @customConstructor color_animator
|
|
70
|
-
* @group xr_animation
|
|
71
|
-
*/
|
|
72
|
-
export class color_animator extends EngineBinding {
|
|
73
|
-
public constructor(value: string);
|
|
74
|
-
|
|
75
|
-
public length(): u32;
|
|
76
|
-
|
|
77
|
-
public load(value: string): void;
|
|
78
|
-
|
|
79
|
-
public calculate(value: f32): fcolor;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @source C++ class duality
|
|
4
|
+
* @customConstructor duality
|
|
5
|
+
* @group xr_animation
|
|
6
|
+
*/
|
|
7
|
+
export class duality {
|
|
8
|
+
public v: f32;
|
|
9
|
+
public h: f32;
|
|
10
|
+
|
|
11
|
+
public constructor();
|
|
12
|
+
public constructor(v: f32, h: f32);
|
|
13
|
+
|
|
14
|
+
public set(v: f32, h: f32): duality;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @source C++ class noise
|
|
19
|
+
* @customConstructor noise
|
|
20
|
+
* @group xr_animation
|
|
21
|
+
*/
|
|
22
|
+
export class noise {
|
|
23
|
+
public fps: f32;
|
|
24
|
+
public grain: f32;
|
|
25
|
+
public intensity: f32;
|
|
26
|
+
|
|
27
|
+
public constructor();
|
|
28
|
+
public constructor(fps: f32, grain: f32, intensity: f32);
|
|
29
|
+
|
|
30
|
+
public set(fps: f32, grain: f32, intensity: f32): noise;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @source C++ class effector
|
|
35
|
+
* @customConstructor effector
|
|
36
|
+
* @group xr_animation
|
|
37
|
+
*/
|
|
38
|
+
export class effector extends EngineBinding {
|
|
39
|
+
public constructor(int: i32, float: f32);
|
|
40
|
+
|
|
41
|
+
public start(): void;
|
|
42
|
+
|
|
43
|
+
public process(effector_params: effector_params): boolean;
|
|
44
|
+
|
|
45
|
+
public finish(): void;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @source C++ class effector_params
|
|
50
|
+
* @customConstructor effector_params
|
|
51
|
+
* @group xr_animation
|
|
52
|
+
*/
|
|
53
|
+
export class effector_params extends EngineBinding {
|
|
54
|
+
public color_add: color;
|
|
55
|
+
public color_base: color;
|
|
56
|
+
public color_gray: color;
|
|
57
|
+
public dual: duality;
|
|
58
|
+
public blur: f32;
|
|
59
|
+
public gray: f32;
|
|
60
|
+
public noise: noise;
|
|
61
|
+
|
|
62
|
+
public constructor();
|
|
63
|
+
|
|
64
|
+
public assign(effector_params: effector_params): void;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @source C++ class color_animator
|
|
69
|
+
* @customConstructor color_animator
|
|
70
|
+
* @group xr_animation
|
|
71
|
+
*/
|
|
72
|
+
export class color_animator extends EngineBinding {
|
|
73
|
+
public constructor(value: string);
|
|
74
|
+
|
|
75
|
+
public length(): u32;
|
|
76
|
+
|
|
77
|
+
public load(value: string): void;
|
|
78
|
+
|
|
79
|
+
public calculate(value: f32): fcolor;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -1,21 +1,32 @@
|
|
|
1
|
-
declare module "xray16" {
|
|
2
|
-
/**
|
|
3
|
-
* @group xr_bitwise
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* @
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @group xr_bitwise
|
|
4
|
+
*
|
|
5
|
+
* @param left
|
|
6
|
+
* @param right
|
|
7
|
+
*/
|
|
8
|
+
export function bit_and(this: void, left: i32, right: i32): i32;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @group xr_bitwise
|
|
12
|
+
*
|
|
13
|
+
* @param first
|
|
14
|
+
* @param second
|
|
15
|
+
*/
|
|
16
|
+
export function bit_or(this: void, first: i32, second: i32): i32;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @group xr_bitwise
|
|
20
|
+
*
|
|
21
|
+
* @param value
|
|
22
|
+
*/
|
|
23
|
+
export function bit_not(this: void, value: i32): i32;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @group xr_bitwise
|
|
27
|
+
*
|
|
28
|
+
* @param left
|
|
29
|
+
* @param right
|
|
30
|
+
*/
|
|
31
|
+
export function bit_xor(this: void, left: i32, right: i32): i32;
|
|
32
|
+
}
|