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.
Files changed (65) hide show
  1. package/README.md +4 -1
  2. package/package.json +4 -3
  3. package/types/index.d.ts +46 -22
  4. package/types/{xr_object → xr_ai}/xr_action.d.ts +163 -135
  5. package/types/xr_ai/xr_alife.d.ts +552 -0
  6. package/types/xr_ai/xr_enemy_evaluation.d.ts +41 -0
  7. package/types/xr_ai/xr_goap.d.ts +668 -0
  8. package/types/xr_ai/xr_graph.d.ts +47 -0
  9. package/types/xr_ai/xr_memory.d.ts +148 -0
  10. package/types/xr_lib/xr_animation.d.ts +81 -0
  11. package/types/xr_lib/xr_bitwise.d.ts +21 -0
  12. package/types/xr_lib/xr_color.d.ts +40 -0
  13. package/types/xr_lib/xr_debug.d.ts +100 -0
  14. package/types/{xr_object → xr_lib}/xr_dialog.d.ts +7 -1
  15. package/types/xr_lib/xr_flags.d.ts +148 -0
  16. package/types/xr_lib/xr_fs.d.ts +37 -233
  17. package/types/xr_lib/xr_game.d.ts +159 -0
  18. package/types/xr_lib/xr_hit.d.ts +41 -0
  19. package/types/xr_lib/xr_ini.d.ts +176 -0
  20. package/types/xr_lib/xr_level.d.ts +225 -0
  21. package/types/xr_lib/xr_luabind.d.ts +59 -0
  22. package/types/{xr_map → xr_lib}/xr_map.d.ts +19 -0
  23. package/types/xr_lib/xr_math.d.ts +65 -0
  24. package/types/{xr_online → xr_lib}/xr_multiplayer.d.ts +52 -0
  25. package/types/xr_lib/xr_properties.d.ts +166 -0
  26. package/types/xr_lib/xr_relation.d.ts +84 -0
  27. package/types/xr_lib/xr_render.d.ts +70 -0
  28. package/types/xr_lib/xr_save.d.ts +223 -0
  29. package/types/{xr_sound → xr_lib}/xr_sound.d.ts +10 -12
  30. package/types/xr_lib/xr_stats.ts +20 -0
  31. package/types/{xr_object/xr_quest.d.ts → xr_lib/xr_task.d.ts} +54 -2
  32. package/types/xr_lib/xr_time.d.ts +61 -0
  33. package/types/{xr_type → xr_lib}/xr_type.d.ts +18 -13
  34. package/types/xr_object/client/xr_client_object.d.ts +76 -0
  35. package/types/xr_object/{xr_level.d.ts → client/xr_level.d.ts} +69 -0
  36. package/types/xr_object/{xr_physic.d.ts → client/xr_physic.d.ts} +58 -0
  37. package/types/xr_object/client/xr_zone.d.ts +40 -0
  38. package/types/xr_object/script/xr_script_interface.d.ts +429 -0
  39. package/types/xr_object/{xr_client_object.d.ts → script/xr_script_object.d.ts} +425 -518
  40. package/types/xr_object/script/xr_script_trade.d.ts +26 -0
  41. package/types/xr_object/{xr_server_object.d.ts → server/xr_server_object.d.ts} +151 -72
  42. package/types/xr_ui/xr_ui_asset.d.ts +123 -0
  43. package/types/xr_ui/xr_ui_core.d.ts +33 -123
  44. package/types/xr_ui/xr_ui_event.d.ts +382 -0
  45. package/types/xr_ui/xr_ui_interface.d.ts +213 -0
  46. package/types/xr_ui/xr_ui_menu.d.ts +142 -0
  47. package/types/xr_constant.d.ts +0 -996
  48. package/types/xr_core.d.ts +0 -347
  49. package/types/xr_global.d.ts +0 -663
  50. package/types/xr_lib/xr_utils.d.ts +0 -412
  51. package/types/xr_luabind.d.ts +0 -34
  52. package/types/xr_object/xr_alife.d.ts +0 -213
  53. package/types/xr_type/xr_enums.d.ts +0 -17
  54. package/types/xr_ui/README.md +0 -277
  55. package/types/xr_ui/demo/CServerList.png +0 -0
  56. package/types/xr_ui/demo/CUI3tButton.png +0 -0
  57. package/types/xr_ui/demo/CUICheckButton.png +0 -0
  58. package/types/xr_ui/demo/CUIComboBox.png +0 -0
  59. package/types/xr_ui/demo/CUICustomEdit.png +0 -0
  60. package/types/xr_ui/demo/CUIStatic.png +0 -0
  61. package/types/xr_ui/demo/CUITrackBar.png +0 -0
  62. /package/types/xr_object/{xr_anomaly.d.ts → client/xr_anomaly.d.ts} +0 -0
  63. /package/types/xr_object/{xr_artefact.d.ts → client/xr_artefact.d.ts} +0 -0
  64. /package/types/xr_object/{xr_creature.d.ts → client/xr_creature.d.ts} +0 -0
  65. /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
+ }