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.
- 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 -229
- 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 +13 -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} +449 -522
- 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} +152 -73
- 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 -976
- package/types/xr_core.d.ts +0 -347
- package/types/xr_global.d.ts +0 -648
- package/types/xr_lib/xr_utils.d.ts +0 -407
- package/types/xr_luabind.d.ts +0 -34
- package/types/xr_object/xr_alife.d.ts +0 -206
- 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
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @group xr_bitwise
|
|
4
|
+
*/
|
|
5
|
+
export function bit_and(this: void, left: i32, right: i32): i32;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @group xr_bitwise
|
|
9
|
+
*/
|
|
10
|
+
export function bit_or(this: void, first: i32, second: i32): i32;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @group xr_bitwise
|
|
14
|
+
*/
|
|
15
|
+
export function bit_not(this: void, value: i32): i32;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @group xr_bitwise
|
|
19
|
+
*/
|
|
20
|
+
export function bit_xor(this: void, left: i32, right: i32): i32;
|
|
21
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @source C++ class fcolor
|
|
4
|
+
* @customConstructor fcolor
|
|
5
|
+
* @group xr_color
|
|
6
|
+
*/
|
|
7
|
+
export class fcolor extends EngineBinding {
|
|
8
|
+
public a: f32;
|
|
9
|
+
public b: f32;
|
|
10
|
+
public g: f32;
|
|
11
|
+
public r: f32;
|
|
12
|
+
|
|
13
|
+
public set(a: f32, b: f32, c: f32, d: f32): fcolor;
|
|
14
|
+
|
|
15
|
+
public set(it: fcolor): fcolor;
|
|
16
|
+
|
|
17
|
+
public set(value: u32): fcolor;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @source C++ class color
|
|
22
|
+
* @customConstructor color
|
|
23
|
+
* @group xr_color
|
|
24
|
+
*/
|
|
25
|
+
export class color {
|
|
26
|
+
public b: f32;
|
|
27
|
+
public g: f32;
|
|
28
|
+
public r: f32;
|
|
29
|
+
|
|
30
|
+
public constructor();
|
|
31
|
+
public constructor(r: f32, g: f32, b: f32);
|
|
32
|
+
|
|
33
|
+
public set(r: f32, g: f32, b: f32): void;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @group xr_color
|
|
38
|
+
*/
|
|
39
|
+
export function GetARGB(this: void, a: u16, r: u16, g: u16, b: u16): i32;
|
|
40
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @source C++ class profile_timer
|
|
4
|
+
* @customConstructor profile_timer
|
|
5
|
+
* @group xr_debug
|
|
6
|
+
*/
|
|
7
|
+
export class profile_timer extends EngineBinding {
|
|
8
|
+
public constructor();
|
|
9
|
+
public constructor(timer: profile_timer);
|
|
10
|
+
|
|
11
|
+
public stop(): void;
|
|
12
|
+
|
|
13
|
+
public start(): void;
|
|
14
|
+
|
|
15
|
+
public time(): f32;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Overridden string cast is implemented for profiling timer.
|
|
19
|
+
*
|
|
20
|
+
* @returns serialized profile time.
|
|
21
|
+
*/
|
|
22
|
+
public toString(): string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @source C++ class CConsole
|
|
27
|
+
* @customConstructor CConsole
|
|
28
|
+
* @group xr_debug
|
|
29
|
+
*/
|
|
30
|
+
export class CConsole extends EngineBinding {
|
|
31
|
+
private constructor();
|
|
32
|
+
|
|
33
|
+
public execute(command: string): void;
|
|
34
|
+
|
|
35
|
+
public execute_deferred(command: string): void;
|
|
36
|
+
|
|
37
|
+
public execute_script(script: string): void;
|
|
38
|
+
|
|
39
|
+
public show(): void;
|
|
40
|
+
|
|
41
|
+
public hide(): void;
|
|
42
|
+
|
|
43
|
+
public get_bool(key: string): boolean;
|
|
44
|
+
|
|
45
|
+
public get_float(key: string): f32;
|
|
46
|
+
|
|
47
|
+
public get_integer(key: string): i32;
|
|
48
|
+
|
|
49
|
+
public get_string(key: string): string;
|
|
50
|
+
|
|
51
|
+
public get_token(key: string): string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Log formatted message in game console and log file.
|
|
56
|
+
* Resulting message looks like "[LUA] %s", where message is provided text parameter.
|
|
57
|
+
*
|
|
58
|
+
* Note: text length is limited and supplying too long value will crash the game. todo: check exact limit.
|
|
59
|
+
*
|
|
60
|
+
* @group xr_debug
|
|
61
|
+
* @param text - string to print
|
|
62
|
+
*/
|
|
63
|
+
export function log(this: void, text: string): void;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @group xr_debug
|
|
67
|
+
*/
|
|
68
|
+
export function error_log(this: void, text: string): void;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @group xr_debug
|
|
72
|
+
*/
|
|
73
|
+
export function print_stack(this: void): void;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @group xr_debug
|
|
77
|
+
*/
|
|
78
|
+
export function flush(this: void): void;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Get console object reference.
|
|
82
|
+
* Allows flushing logs / executing commands / getting global engine variables.
|
|
83
|
+
*
|
|
84
|
+
* @group xr_debug
|
|
85
|
+
* @returns console object reference
|
|
86
|
+
*/
|
|
87
|
+
export function get_console(this: void): CConsole;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @group xr_debug
|
|
91
|
+
*/
|
|
92
|
+
export function command_line(this: void): string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Prefetch provided script before executing next lines.
|
|
96
|
+
*
|
|
97
|
+
* @group xr_global_declaration
|
|
98
|
+
*/
|
|
99
|
+
export function prefetch(this: void, path: string): void;
|
|
100
|
+
}
|
|
@@ -6,11 +6,17 @@ declare module "xray16" {
|
|
|
6
6
|
*/
|
|
7
7
|
export class CPhraseScript {
|
|
8
8
|
public AddAction(value: string): void;
|
|
9
|
+
|
|
9
10
|
public AddDisableInfo(value: string): void;
|
|
11
|
+
|
|
10
12
|
public AddDontHasInfo(value: string): void;
|
|
13
|
+
|
|
11
14
|
public AddGiveInfo(value: string): void;
|
|
15
|
+
|
|
12
16
|
public AddHasInfo(value: string): void;
|
|
17
|
+
|
|
13
18
|
public AddPrecondition(value: string): void;
|
|
19
|
+
|
|
14
20
|
public SetScriptText(value: string): void;
|
|
15
21
|
}
|
|
16
22
|
|
|
@@ -29,6 +35,6 @@ declare module "xray16" {
|
|
|
29
35
|
* @group xr_dialog
|
|
30
36
|
*/
|
|
31
37
|
export class CPhraseDialog {
|
|
32
|
-
public AddPhrase(text: string, phrase_id: string, prev_phrase_id: string, goodwill_level:
|
|
38
|
+
public AddPhrase(text: string, phrase_id: string, prev_phrase_id: string, goodwill_level: i32): CPhrase;
|
|
33
39
|
}
|
|
34
40
|
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @source C++ class flags8
|
|
4
|
+
* @customConstructor flags8
|
|
5
|
+
* @group xr_flags
|
|
6
|
+
*/
|
|
7
|
+
export class flags8 {
|
|
8
|
+
public constructor();
|
|
9
|
+
|
|
10
|
+
public and(value1: flags8, value2: u8): flags8;
|
|
11
|
+
|
|
12
|
+
public and(value: u8): flags8;
|
|
13
|
+
|
|
14
|
+
public assign(value: flags8): flags8;
|
|
15
|
+
|
|
16
|
+
public assign(value: u8): flags8;
|
|
17
|
+
|
|
18
|
+
public equal(value2: Readonly<flags8>): boolean;
|
|
19
|
+
|
|
20
|
+
public equal(value2: Readonly<flags8>, value3: u8): boolean;
|
|
21
|
+
|
|
22
|
+
public get(): u8;
|
|
23
|
+
|
|
24
|
+
public invert(): flags8;
|
|
25
|
+
|
|
26
|
+
public invert(value: flags8): flags8;
|
|
27
|
+
|
|
28
|
+
public invert(value: u8): flags8;
|
|
29
|
+
|
|
30
|
+
public is(value: flags8, value2: u8): boolean;
|
|
31
|
+
|
|
32
|
+
public is(value: u8): boolean;
|
|
33
|
+
|
|
34
|
+
public is_any(value1: flags8, value2: u8): boolean;
|
|
35
|
+
|
|
36
|
+
public is_any(value: u8): boolean;
|
|
37
|
+
|
|
38
|
+
public one(): flags8;
|
|
39
|
+
|
|
40
|
+
public or(value: flags8, value2: u8): flags8;
|
|
41
|
+
|
|
42
|
+
public or(value: u8): flags8;
|
|
43
|
+
|
|
44
|
+
public set(value: u8, value2: boolean): flags8;
|
|
45
|
+
|
|
46
|
+
public test(value: u8): boolean;
|
|
47
|
+
|
|
48
|
+
public zero(): flags8;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @source C++ class flags16
|
|
53
|
+
* @customConstructor flags16
|
|
54
|
+
* @group xr_flags
|
|
55
|
+
*/
|
|
56
|
+
export class flags16 {
|
|
57
|
+
public constructor();
|
|
58
|
+
|
|
59
|
+
public and(value1: flags16, value2: u16): flags16;
|
|
60
|
+
|
|
61
|
+
public and(value: u16): flags16;
|
|
62
|
+
|
|
63
|
+
public assign(value: flags16): flags16;
|
|
64
|
+
|
|
65
|
+
public assign(value: u16): flags16;
|
|
66
|
+
|
|
67
|
+
public equal(value2: Readonly<flags16>): boolean;
|
|
68
|
+
|
|
69
|
+
public equal(value2: Readonly<flags16>, value3: u16): boolean;
|
|
70
|
+
|
|
71
|
+
public get(): u16;
|
|
72
|
+
|
|
73
|
+
public invert(): flags16;
|
|
74
|
+
|
|
75
|
+
public invert(value: flags16): flags16;
|
|
76
|
+
|
|
77
|
+
public invert(value: u16): flags16;
|
|
78
|
+
|
|
79
|
+
public is(value: flags16, value2: u16): boolean;
|
|
80
|
+
|
|
81
|
+
public is(value: u16): boolean;
|
|
82
|
+
|
|
83
|
+
public is_any(value1: flags16, value2: u16): boolean;
|
|
84
|
+
|
|
85
|
+
public is_any(value: u16): boolean;
|
|
86
|
+
|
|
87
|
+
public one(): flags16;
|
|
88
|
+
|
|
89
|
+
public or(value: flags16, value2: u16): flags16;
|
|
90
|
+
|
|
91
|
+
public or(value: u16): flags16;
|
|
92
|
+
|
|
93
|
+
public set(value: u16, value2: boolean): flags16;
|
|
94
|
+
|
|
95
|
+
public test(value: u16): boolean;
|
|
96
|
+
|
|
97
|
+
public zero(): flags16;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @source C++ class flags32
|
|
102
|
+
* @customConstructor flags32
|
|
103
|
+
* @group xr_flags
|
|
104
|
+
*/
|
|
105
|
+
export class flags32 {
|
|
106
|
+
public constructor();
|
|
107
|
+
|
|
108
|
+
public and(value1: flags32, value2: u32): flags32;
|
|
109
|
+
|
|
110
|
+
public and(value: u32): flags32;
|
|
111
|
+
|
|
112
|
+
public assign(value: flags32): flags32;
|
|
113
|
+
|
|
114
|
+
public assign(value: u32): flags32;
|
|
115
|
+
|
|
116
|
+
public equal(value2: Readonly<flags32>): boolean;
|
|
117
|
+
|
|
118
|
+
public equal(value2: Readonly<flags32>, value3: u32): boolean;
|
|
119
|
+
|
|
120
|
+
public get(): u32;
|
|
121
|
+
|
|
122
|
+
public invert(): flags32;
|
|
123
|
+
|
|
124
|
+
public invert(value: flags32): flags32;
|
|
125
|
+
|
|
126
|
+
public invert(value: u32): flags32;
|
|
127
|
+
|
|
128
|
+
public is(value: flags32, value2: u32): boolean;
|
|
129
|
+
|
|
130
|
+
public is(value: u32): boolean;
|
|
131
|
+
|
|
132
|
+
public is_any(value1: flags32, value2: u32): boolean;
|
|
133
|
+
|
|
134
|
+
public is_any(value: u32): boolean;
|
|
135
|
+
|
|
136
|
+
public one(): flags32;
|
|
137
|
+
|
|
138
|
+
public or(value: flags32, value2: u32): flags32;
|
|
139
|
+
|
|
140
|
+
public or(value: u32): flags32;
|
|
141
|
+
|
|
142
|
+
public set(value: u32, value2: boolean): flags32;
|
|
143
|
+
|
|
144
|
+
public test(value: u32): boolean;
|
|
145
|
+
|
|
146
|
+
public zero(): flags32;
|
|
147
|
+
}
|
|
148
|
+
}
|