xray16 1.0.7 → 1.0.9
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 -233
- 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 +18 -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} +425 -518
- 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} +151 -72
- 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 -996
- package/types/xr_core.d.ts +0 -347
- package/types/xr_global.d.ts +0 -663
- package/types/xr_lib/xr_utils.d.ts +0 -412
- package/types/xr_luabind.d.ts +0 -34
- package/types/xr_object/xr_alife.d.ts +0 -213
- 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,123 @@
|
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @source C++ class UIStyleManager
|
|
4
|
+
* @customConstructor UIStyleManager
|
|
5
|
+
* @group xr_ui_asset
|
|
6
|
+
*/
|
|
7
|
+
export class UIStyleManager {
|
|
8
|
+
private constructor();
|
|
9
|
+
|
|
10
|
+
public GetAllStyles(): LuaIterable<token>;
|
|
11
|
+
|
|
12
|
+
public DefaultStyleIsSet(): boolean;
|
|
13
|
+
|
|
14
|
+
public GetCurrentStyleId(): u32;
|
|
15
|
+
|
|
16
|
+
public SetStyle(id: u32, reload_ui?: boolean): void;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @source C++ class CGameFont
|
|
21
|
+
* @customConstructor CGameFont
|
|
22
|
+
* @group xr_ui_asset
|
|
23
|
+
*/
|
|
24
|
+
export class CGameFont {
|
|
25
|
+
public static readonly alCenter: 2;
|
|
26
|
+
public static readonly alLeft: 0;
|
|
27
|
+
public static readonly alRight: 1;
|
|
28
|
+
|
|
29
|
+
private constructor();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* EVTextAlignment.
|
|
34
|
+
*
|
|
35
|
+
* @group xr_ui_asset
|
|
36
|
+
*/
|
|
37
|
+
export type TXR_CGameFont_alignment = EnumeratedStaticsValues<typeof CGameFont>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @group xr_ui_asset
|
|
41
|
+
*/
|
|
42
|
+
export function GetFontDI(this: void): CGameFont;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @group xr_ui_asset
|
|
46
|
+
*/
|
|
47
|
+
export function GetFontGraffiti19Russian(this: void): CGameFont;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @group xr_ui_asset
|
|
51
|
+
*/
|
|
52
|
+
export function GetFontGraffiti32Russian(this: void): CGameFont;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @group xr_ui_asset
|
|
56
|
+
*/
|
|
57
|
+
export function GetFontGraffiti50Russian(this: void): CGameFont;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @group xr_ui_asset
|
|
61
|
+
*/
|
|
62
|
+
export function GetFontLetterica16Russian(this: void): CGameFont;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @group xr_ui_asset
|
|
66
|
+
*/
|
|
67
|
+
export function GetFontLetterica18Russian(this: void): CGameFont;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @group xr_ui_asset
|
|
71
|
+
*/
|
|
72
|
+
export function GetFontLetterica25(this: void): CGameFont;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @group xr_ui_asset
|
|
76
|
+
*/
|
|
77
|
+
export function GetFontMedium(this: void): CGameFont;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @group xr_ui_asset
|
|
81
|
+
*/
|
|
82
|
+
export function GetFontSmall(this: void): CGameFont;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @group xr_ui_asset
|
|
86
|
+
*/
|
|
87
|
+
export function GetTextureInfo(this: void, char: string, char2: string, tex_info: TEX_INFO): boolean;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @group xr_ui_asset
|
|
91
|
+
*/
|
|
92
|
+
export function GetTextureName(this: void, char: string): string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @group xr_ui_asset
|
|
96
|
+
*/
|
|
97
|
+
export function GetFontGraffiti22Russian(this: void): CGameFont;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @group xr_ui_asset
|
|
101
|
+
*/
|
|
102
|
+
export function GetDefaultUIPath(this: void): string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @group xr_ui_asset
|
|
106
|
+
*/
|
|
107
|
+
export function GetDefaultUIPathWithDelimiter(this: void): string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @group xr_ui_asset
|
|
111
|
+
*/
|
|
112
|
+
export function GetUIPath(this: void): string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @group xr_ui_asset
|
|
116
|
+
*/
|
|
117
|
+
export function GetUIPathWithDelimiter(this: void): string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @group xr_ui_asset
|
|
121
|
+
*/
|
|
122
|
+
export function GetUIStyleManager(this: void): UIStyleManager;
|
|
123
|
+
}
|
|
@@ -1,65 +1,4 @@
|
|
|
1
1
|
declare module "xray16" {
|
|
2
|
-
/**
|
|
3
|
-
* @source C++ class COptionsManager
|
|
4
|
-
* @customConstructor COptionsManager
|
|
5
|
-
* @group xr_ui_core
|
|
6
|
-
*/
|
|
7
|
-
export class COptionsManager {
|
|
8
|
-
public constructor();
|
|
9
|
-
|
|
10
|
-
public SendMessage2Group(group: string, message: string): void;
|
|
11
|
-
public UndoGroup(group: string): void;
|
|
12
|
-
public SaveBackupValues(group: string): void;
|
|
13
|
-
public IsGroupChanged(group: string): boolean;
|
|
14
|
-
public SaveValues(group: string): void;
|
|
15
|
-
public SetCurrentValues(group: string): void;
|
|
16
|
-
public NeedSystemRestart(): boolean;
|
|
17
|
-
public NeedVidRestart(): boolean;
|
|
18
|
-
public OptionsPostAccept(): void;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @source C++ class CMainMenu
|
|
23
|
-
* @customConstructor CMainMenu
|
|
24
|
-
* @group xr_ui_core
|
|
25
|
-
*/
|
|
26
|
-
export class CMainMenu {
|
|
27
|
-
public GetCDKey(): string;
|
|
28
|
-
public GetAccountMngr(): account_manager;
|
|
29
|
-
public GetDemoInfo(fileName: string): demo_info | null;
|
|
30
|
-
public GetPatchProgress(): Patch_Dawnload_Progress;
|
|
31
|
-
public GetProfileStore(): profile_store;
|
|
32
|
-
public GetGSVer(): string;
|
|
33
|
-
public GetLoginMngr(): login_manager;
|
|
34
|
-
public GetPlayerName(): string;
|
|
35
|
-
public CancelDownload(): void;
|
|
36
|
-
public ValidateCDKey(): boolean;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @source C++ class CUIGameCustom
|
|
41
|
-
* @customConstructor CUIGameCustom
|
|
42
|
-
* @group xr_ui_core
|
|
43
|
-
*/
|
|
44
|
-
export class CUIGameCustom {
|
|
45
|
-
public AddCustomStatic(id: string, b: boolean): StaticDrawableWrapper;
|
|
46
|
-
public AddCustomStatic(id: string, b: boolean, n: f32): StaticDrawableWrapper;
|
|
47
|
-
public AddDialogToRender(window: CUIWindow): void;
|
|
48
|
-
public CurrentItemAtCell(): game_object;
|
|
49
|
-
public GetCustomStatic(value: string): StaticDrawableWrapper | null;
|
|
50
|
-
public HideActorMenu(): void;
|
|
51
|
-
public ShowActorMenu(): boolean;
|
|
52
|
-
public HidePdaMenu(): void;
|
|
53
|
-
public RemoveCustomStatic(id: string): void;
|
|
54
|
-
public RemoveDialogToRender(window: CUIWindow): void;
|
|
55
|
-
public UpdateActorMenu(): void;
|
|
56
|
-
public enable_fake_indicators(enabled: boolean): void;
|
|
57
|
-
public hide_messages(): void;
|
|
58
|
-
public show_messages(): void;
|
|
59
|
-
public update_fake_indicators(u8: number, enabled: boolean): void;
|
|
60
|
-
public update_fake_indicators(u8: number, value: f32): void;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
2
|
/**
|
|
64
3
|
* @source C++ class CScriptXmlInit
|
|
65
4
|
* @customConstructor CScriptXmlInit
|
|
@@ -69,117 +8,88 @@ declare module "xray16" {
|
|
|
69
8
|
public constructor();
|
|
70
9
|
|
|
71
10
|
public ParseFile(path: string): void;
|
|
11
|
+
|
|
72
12
|
public ParseShTexInfo(path: string): void;
|
|
73
13
|
|
|
74
14
|
public Init3tButton(selector: string, window: CUIWindow | null): CUI3tButton;
|
|
15
|
+
|
|
75
16
|
public InitAnimStatic(selector: string, window: CUIWindow | null): CUIStatic;
|
|
17
|
+
|
|
76
18
|
public InitCDkey(selector: string, window: CUIWindow | null): CUIEditBox;
|
|
19
|
+
|
|
77
20
|
public InitCheck(selector: string, window: CUIWindow | null): CUICheckButton;
|
|
21
|
+
|
|
78
22
|
public InitComboBox(selector: string, window: CUIWindow | null): CUIComboBox;
|
|
23
|
+
|
|
79
24
|
public InitEditBox(selector: string, window: CUIWindow | null): CUIEditBox;
|
|
25
|
+
|
|
80
26
|
public InitFrame(selector: string, window: CUIWindow | null): CUIFrameWindow;
|
|
27
|
+
|
|
81
28
|
public InitFrameLine(selector: string, window: CUIWindow | null): CUIFrameLineWnd;
|
|
29
|
+
|
|
82
30
|
public InitKeyBinding(selector: string, window: CUIWindow | null): CUIWindow;
|
|
31
|
+
|
|
83
32
|
public InitLabel(selector: string, window: CUIWindow | null): CUIStatic;
|
|
33
|
+
|
|
84
34
|
public InitList(selector: string, window: CUIWindow | null): CUIListWnd;
|
|
35
|
+
|
|
85
36
|
public InitListBox<T extends CUIListBoxItem = CUIListBoxItem>(
|
|
86
37
|
selector: string,
|
|
87
38
|
window: CUIWindow | null
|
|
88
39
|
): CUIListBox<T>;
|
|
40
|
+
|
|
89
41
|
public InitMMShniaga(selector: string, window: CUIWindow | null): CUIMMShniaga;
|
|
42
|
+
|
|
90
43
|
public InitMPPlayerName(selector: string, window: CUIWindow | null): CUIEditBox;
|
|
44
|
+
|
|
91
45
|
public InitMapInfo(selector: string, window: CUIWindow | null): CUIMapInfo;
|
|
46
|
+
|
|
92
47
|
public InitMapList(selector: string, window: CUIWindow | null): CUIMapList;
|
|
48
|
+
|
|
93
49
|
public InitProgressBar(selector: string, window: CUIWindow | null): CUIProgressBar;
|
|
50
|
+
|
|
94
51
|
public InitScrollView(selector: string, window: CUIWindow | null): CUIScrollView;
|
|
52
|
+
|
|
95
53
|
public InitServerList(selector: string, window: CUIWindow | null): CServerList;
|
|
54
|
+
|
|
96
55
|
public InitSleepStatic(selector: string, window: CUIWindow | null): CUISleepStatic;
|
|
56
|
+
|
|
97
57
|
public InitSpinFlt(selector: string, window: CUIWindow | null): CUISpinFlt;
|
|
58
|
+
|
|
98
59
|
public InitSpinNum(selector: string, window: CUIWindow | null): CUISpinNum;
|
|
60
|
+
|
|
99
61
|
public InitSpinText(selector: string, window: CUIWindow | null): CUISpinText;
|
|
62
|
+
|
|
100
63
|
public InitStatic(selector: string, window: CUIWindow | null): CUIStatic;
|
|
64
|
+
|
|
101
65
|
public InitTab(selector: string, window: CUIWindow | null): CUITabControl;
|
|
66
|
+
|
|
102
67
|
public InitTextWnd(selector: string, window: CUIWindow | null): CUITextWnd;
|
|
68
|
+
|
|
103
69
|
public InitTrackBar(selector: string, window: CUIWindow | null): CUITrackBar;
|
|
104
|
-
public InitVerList(selector: string, window: CUIWindow | null): CUIVersionList;
|
|
105
|
-
public InitWindow(selector: string, index: i32, window: CUIWindow | null): void;
|
|
106
|
-
}
|
|
107
70
|
|
|
108
|
-
|
|
109
|
-
* @source C++ class UIStyleManager
|
|
110
|
-
* @customConstructor UIStyleManager
|
|
111
|
-
* @group xr_ui_core
|
|
112
|
-
*/
|
|
113
|
-
export class UIStyleManager {
|
|
114
|
-
private constructor();
|
|
71
|
+
public InitVerList(selector: string, window: CUIWindow | null): CUIVersionList;
|
|
115
72
|
|
|
116
|
-
public
|
|
117
|
-
public DefaultStyleIsSet(): boolean;
|
|
118
|
-
public GetCurrentStyleId(): u32;
|
|
119
|
-
public SetStyle(id: u32, reload_ui?: boolean): void;
|
|
73
|
+
public InitWindow(selector: string, index: i32, window: CUIWindow | null): void;
|
|
120
74
|
}
|
|
121
75
|
|
|
122
76
|
/**
|
|
123
|
-
* @source C++ class CGameFont
|
|
124
|
-
* @customConstructor CGameFont
|
|
125
77
|
* @group xr_ui_core
|
|
126
78
|
*/
|
|
127
|
-
export
|
|
128
|
-
public static readonly alCenter: 2;
|
|
129
|
-
public static readonly alLeft: 0;
|
|
130
|
-
public static readonly alRight: 1;
|
|
131
|
-
|
|
132
|
-
private constructor();
|
|
133
|
-
}
|
|
79
|
+
export function FitInRect(this: void, window: CUIWindow, rect: Frect, a: number, b: number): boolean;
|
|
134
80
|
|
|
135
81
|
/**
|
|
136
|
-
* EVTextAlignment.
|
|
137
|
-
*
|
|
138
82
|
* @group xr_ui_core
|
|
139
83
|
*/
|
|
140
|
-
export
|
|
84
|
+
export function GetTextureRect(this: void, str: string): Frect;
|
|
141
85
|
|
|
142
86
|
/**
|
|
143
|
-
* @source C++ class ui_events
|
|
144
|
-
* @customConstructor ui_events
|
|
145
87
|
* @group xr_ui_core
|
|
146
88
|
*/
|
|
147
|
-
export
|
|
148
|
-
public static readonly BUTTON_CLICKED: 19;
|
|
149
|
-
public static readonly BUTTON_DOWN: 20;
|
|
150
|
-
public static readonly CHECK_BUTTON_RESET: 23;
|
|
151
|
-
public static readonly CHECK_BUTTON_SET: 22;
|
|
152
|
-
public static readonly EDIT_TEXT_COMMIT: 79;
|
|
153
|
-
public static readonly LIST_ITEM_CLICKED: 37;
|
|
154
|
-
public static readonly LIST_ITEM_SELECT: 38;
|
|
155
|
-
public static readonly LIST_ITEM_UNSELECT: 39;
|
|
156
|
-
public static readonly MAIN_MENU_RELOADED: 84;
|
|
157
|
-
public static readonly MESSAGE_BOX_CANCEL_CLICKED: 47;
|
|
158
|
-
public static readonly MESSAGE_BOX_COPY_CLICKED: 48;
|
|
159
|
-
public static readonly MESSAGE_BOX_NO_CLICKED: 46;
|
|
160
|
-
public static readonly MESSAGE_BOX_OK_CLICKED: 42;
|
|
161
|
-
public static readonly MESSAGE_BOX_QUIT_GAME_CLICKED: 45;
|
|
162
|
-
public static readonly MESSAGE_BOX_QUIT_WIN_CLICKED: 44;
|
|
163
|
-
public static readonly MESSAGE_BOX_YES_CLICKED: 43;
|
|
164
|
-
public static readonly PROPERTY_CLICKED: 41;
|
|
165
|
-
public static readonly RADIOBUTTON_SET: 24;
|
|
166
|
-
public static readonly SCROLLBAR_HSCROLL: 34;
|
|
167
|
-
public static readonly SCROLLBAR_VSCROLL: 33;
|
|
168
|
-
public static readonly SCROLLBOX_MOVE: 32;
|
|
169
|
-
public static readonly TAB_CHANGED: 21;
|
|
170
|
-
public static readonly WINDOW_KEYBOARD_CAPTURE_LOST: 16;
|
|
171
|
-
public static readonly WINDOW_KEY_PRESSED: 12;
|
|
172
|
-
public static readonly WINDOW_KEY_RELEASED: 13;
|
|
173
|
-
public static readonly WINDOW_LBUTTON_DB_CLICK: 11;
|
|
174
|
-
public static readonly WINDOW_LBUTTON_DOWN: 0;
|
|
175
|
-
public static readonly WINDOW_LBUTTON_UP: 3;
|
|
176
|
-
public static readonly WINDOW_MOUSE_MOVE: 6;
|
|
177
|
-
public static readonly WINDOW_RBUTTON_DOWN: 1;
|
|
178
|
-
public static readonly WINDOW_RBUTTON_UP: 4;
|
|
179
|
-
}
|
|
89
|
+
export function GetCursorPosition(this: void): vector2;
|
|
180
90
|
|
|
181
91
|
/**
|
|
182
92
|
* @group xr_ui_core
|
|
183
93
|
*/
|
|
184
|
-
|
|
94
|
+
export function SetCursorPosition(this: void, vector: vector2): void;
|
|
185
95
|
}
|