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,142 @@
|
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @source C++ class COptionsManager
|
|
4
|
+
* @customConstructor COptionsManager
|
|
5
|
+
* @group xr_ui_menu
|
|
6
|
+
*/
|
|
7
|
+
export class COptionsManager {
|
|
8
|
+
public constructor();
|
|
9
|
+
|
|
10
|
+
public SendMessage2Group(group: string, message: string): void;
|
|
11
|
+
|
|
12
|
+
public UndoGroup(group: string): void;
|
|
13
|
+
|
|
14
|
+
public SaveBackupValues(group: string): void;
|
|
15
|
+
|
|
16
|
+
public IsGroupChanged(group: string): boolean;
|
|
17
|
+
|
|
18
|
+
public SaveValues(group: string): void;
|
|
19
|
+
|
|
20
|
+
public SetCurrentValues(group: string): void;
|
|
21
|
+
|
|
22
|
+
public NeedSystemRestart(): boolean;
|
|
23
|
+
|
|
24
|
+
public NeedVidRestart(): boolean;
|
|
25
|
+
|
|
26
|
+
public OptionsPostAccept(): void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @source C++ class CMainMenu
|
|
31
|
+
* @customConstructor CMainMenu
|
|
32
|
+
* @group xr_ui_menu
|
|
33
|
+
*/
|
|
34
|
+
export class CMainMenu {
|
|
35
|
+
public GetCDKey(): string;
|
|
36
|
+
|
|
37
|
+
public GetAccountMngr(): account_manager;
|
|
38
|
+
|
|
39
|
+
public GetDemoInfo(fileName: string): demo_info | null;
|
|
40
|
+
|
|
41
|
+
public GetPatchProgress(): Patch_Dawnload_Progress;
|
|
42
|
+
|
|
43
|
+
public GetProfileStore(): profile_store;
|
|
44
|
+
|
|
45
|
+
public GetGSVer(): string;
|
|
46
|
+
|
|
47
|
+
public GetLoginMngr(): login_manager;
|
|
48
|
+
|
|
49
|
+
public GetPlayerName(): string;
|
|
50
|
+
|
|
51
|
+
public CancelDownload(): void;
|
|
52
|
+
|
|
53
|
+
public ValidateCDKey(): boolean;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @source C++ class CUIGameCustom
|
|
58
|
+
* @customConstructor CUIGameCustom
|
|
59
|
+
* @group xr_ui_menu
|
|
60
|
+
*/
|
|
61
|
+
export class CUIGameCustom {
|
|
62
|
+
public AddCustomStatic(id: string, b: boolean): StaticDrawableWrapper;
|
|
63
|
+
|
|
64
|
+
public AddCustomStatic(id: string, b: boolean, n: f32): StaticDrawableWrapper;
|
|
65
|
+
|
|
66
|
+
public AddDialogToRender(window: CUIWindow): void;
|
|
67
|
+
|
|
68
|
+
public CurrentItemAtCell(): game_object;
|
|
69
|
+
|
|
70
|
+
public GetCustomStatic(value: string): StaticDrawableWrapper | null;
|
|
71
|
+
|
|
72
|
+
public HideActorMenu(): void;
|
|
73
|
+
|
|
74
|
+
public ShowActorMenu(): boolean;
|
|
75
|
+
|
|
76
|
+
public HidePdaMenu(): void;
|
|
77
|
+
|
|
78
|
+
public RemoveCustomStatic(id: string): void;
|
|
79
|
+
|
|
80
|
+
public RemoveDialogToRender(window: CUIWindow): void;
|
|
81
|
+
|
|
82
|
+
public UpdateActorMenu(): void;
|
|
83
|
+
|
|
84
|
+
public enable_fake_indicators(enabled: boolean): void;
|
|
85
|
+
|
|
86
|
+
public hide_messages(): void;
|
|
87
|
+
|
|
88
|
+
public show_messages(): void;
|
|
89
|
+
|
|
90
|
+
public update_fake_indicators(u8: number, enabled: boolean): void;
|
|
91
|
+
|
|
92
|
+
public update_fake_indicators(u8: number, value: f32): void;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @source namespace main_menu
|
|
97
|
+
* @group xr_ui_menu
|
|
98
|
+
*/
|
|
99
|
+
export interface IXR_main_menu {
|
|
100
|
+
/**
|
|
101
|
+
* @returns main game menu c++ controller singleton
|
|
102
|
+
*/
|
|
103
|
+
get_main_menu(this: void): CMainMenu;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @source namespace ActorMenu
|
|
108
|
+
* @group xr_ui_menu
|
|
109
|
+
*/
|
|
110
|
+
export interface IXR_ActorMenu {
|
|
111
|
+
get_pda_menu(this: void): CUIPdaWnd;
|
|
112
|
+
get_actor_menu(this: void): CUIActorMenu;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* enum EMenuMode
|
|
116
|
+
* {
|
|
117
|
+
* mmUndefined,
|
|
118
|
+
* mmInventory,
|
|
119
|
+
* mmTrade,
|
|
120
|
+
* mmUpgrade,
|
|
121
|
+
* mmDeadBodySearch,
|
|
122
|
+
* };
|
|
123
|
+
*/
|
|
124
|
+
get_menu_mode(this: void): number;
|
|
125
|
+
// get_maingame(this: void): unknown; // CUIMainIngameWnd - not registered, throws exception
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @group xr_ui_menu
|
|
130
|
+
*/
|
|
131
|
+
export const ActorMenu: IXR_ActorMenu;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @group xr_ui_menu
|
|
135
|
+
*/
|
|
136
|
+
export const main_menu: IXR_main_menu;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @group xr_ui_menu
|
|
140
|
+
*/
|
|
141
|
+
export function get_hud(this: void): CUIGameCustom;
|
|
142
|
+
}
|