xray16 1.3.2 → 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.
Files changed (85) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +112 -106
  3. package/package.json +45 -42
  4. package/plugins/built_at_info.d.ts +1 -1
  5. package/plugins/from_cast_utils.d.ts +1 -1
  6. package/plugins/global_declarations_transform.d.ts +1 -1
  7. package/plugins/inject_file_meta.d.ts +1 -1
  8. package/plugins/inject_tracy_zones.d.ts +1 -1
  9. package/plugins/inject_tracy_zones.js +4 -4
  10. package/plugins/strip_lua_logger.d.ts +1 -1
  11. package/plugins/strip_lua_logger.js +1 -1
  12. package/plugins/transform_luabind_class/plugin.d.ts +1 -1
  13. package/plugins/transform_luabind_class/transformation/class_declaration.d.ts +3 -3
  14. package/plugins/transform_luabind_class/transformation/decorators.d.ts +5 -2
  15. package/plugins/transform_luabind_class/transformation/decorators.js +3 -0
  16. package/plugins/transform_luabind_class/transformation/members/accessors.d.ts +1 -1
  17. package/plugins/transform_luabind_class/transformation/members/constructor.d.ts +2 -2
  18. package/plugins/transform_luabind_class/transformation/members/constructor.js +2 -2
  19. package/plugins/transform_luabind_class/transformation/members/fields.d.ts +5 -2
  20. package/plugins/transform_luabind_class/transformation/members/fields.js +5 -2
  21. package/plugins/transform_luabind_class/transformation/members/method.d.ts +6 -3
  22. package/plugins/transform_luabind_class/transformation/members/method.js +4 -1
  23. package/plugins/transform_luabind_class/transformation/new.d.ts +7 -3
  24. package/plugins/transform_luabind_class/transformation/new.js +5 -1
  25. package/plugins/transform_luabind_class/transformation/setup.d.ts +9 -3
  26. package/plugins/transform_luabind_class/transformation/setup.js +22 -6
  27. package/plugins/transform_luabind_class/transformation/super.d.ts +19 -3
  28. package/plugins/transform_luabind_class/transformation/super.js +17 -1
  29. package/plugins/transform_luabind_class/transformation/utils.d.ts +27 -4
  30. package/plugins/transform_luabind_class/transformation/utils.js +25 -2
  31. package/plugins/utils/ast.d.ts +1 -1
  32. package/plugins/utils/diagnostics.d.ts +9 -5
  33. package/plugins/utils/diagnostics.js +5 -1
  34. package/plugins/utils/tracy.d.ts +2 -2
  35. package/plugins/utils/tracy.js +2 -5
  36. package/types/index.d.ts +55 -55
  37. package/types/xr_ai/xr_action.d.ts +510 -510
  38. package/types/xr_ai/xr_alife.d.ts +566 -566
  39. package/types/xr_ai/xr_enemy_evaluation.d.ts +41 -41
  40. package/types/xr_ai/xr_goap.d.ts +669 -668
  41. package/types/xr_ai/xr_graph.d.ts +47 -47
  42. package/types/xr_ai/xr_memory.d.ts +148 -148
  43. package/types/xr_lib/xr_animation.d.ts +81 -81
  44. package/types/xr_lib/xr_bitwise.d.ts +32 -21
  45. package/types/xr_lib/xr_color.d.ts +45 -40
  46. package/types/xr_lib/xr_debug.d.ts +83 -77
  47. package/types/xr_lib/xr_dialog.d.ts +40 -40
  48. package/types/xr_lib/xr_flags.d.ts +529 -148
  49. package/types/xr_lib/xr_fs.d.ts +149 -148
  50. package/types/xr_lib/xr_game.d.ts +261 -158
  51. package/types/xr_lib/xr_hit.d.ts +41 -41
  52. package/types/xr_lib/xr_ini.d.ts +415 -188
  53. package/types/xr_lib/xr_level.d.ts +652 -225
  54. package/types/xr_lib/xr_luabind.d.ts +64 -59
  55. package/types/xr_lib/xr_map.d.ts +61 -61
  56. package/types/xr_lib/xr_math.d.ts +815 -233
  57. package/types/xr_lib/xr_multiplayer.d.ts +351 -351
  58. package/types/xr_lib/xr_profile.d.ts +192 -160
  59. package/types/xr_lib/xr_properties.d.ts +455 -166
  60. package/types/xr_lib/xr_relation.d.ts +84 -84
  61. package/types/xr_lib/xr_render.d.ts +71 -69
  62. package/types/xr_lib/xr_save.d.ts +727 -223
  63. package/types/xr_lib/xr_sound.d.ts +151 -151
  64. package/types/xr_lib/xr_stats.ts +20 -20
  65. package/types/xr_lib/xr_task.d.ts +111 -111
  66. package/types/xr_lib/xr_time.d.ts +166 -61
  67. package/types/xr_lib/xr_type.d.ts +75 -75
  68. package/types/xr_object/client/xr_anomaly.d.ts +50 -50
  69. package/types/xr_object/client/xr_artefact.d.ts +98 -98
  70. package/types/xr_object/client/xr_client_object.d.ts +76 -76
  71. package/types/xr_object/client/xr_creature.d.ts +164 -164
  72. package/types/xr_object/client/xr_item.d.ts +264 -264
  73. package/types/xr_object/client/xr_level.d.ts +285 -285
  74. package/types/xr_object/client/xr_physic.d.ts +214 -214
  75. package/types/xr_object/client/xr_zone.d.ts +47 -47
  76. package/types/xr_object/script/xr_script_interface.d.ts +584 -584
  77. package/types/xr_object/script/xr_script_object.d.ts +2408 -1390
  78. package/types/xr_object/script/xr_script_trade.d.ts +41 -26
  79. package/types/xr_object/server/xr_server_object.d.ts +794 -792
  80. package/types/xr_ui/xr_ui_asset.d.ts +129 -123
  81. package/types/xr_ui/xr_ui_core.d.ts +106 -97
  82. package/types/xr_ui/xr_ui_event.d.ts +383 -381
  83. package/types/xr_ui/xr_ui_interface.d.ts +901 -903
  84. package/types/xr_ui/xr_ui_menu.d.ts +142 -142
  85. package/types/xrf_plugin.d.ts +59 -51
@@ -1,123 +1,129 @@
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
+ 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
+ * @param char
88
+ * @param char2
89
+ * @param tex_info
90
+ */
91
+ export function GetTextureInfo(this: void, char: string, char2: string, tex_info: TEX_INFO): boolean;
92
+
93
+ /**
94
+ * @group xr_ui_asset
95
+ *
96
+ * @param char
97
+ */
98
+ export function GetTextureName(this: void, char: string): string;
99
+
100
+ /**
101
+ * @group xr_ui_asset
102
+ */
103
+ export function GetFontGraffiti22Russian(this: void): CGameFont;
104
+
105
+ /**
106
+ * @group xr_ui_asset
107
+ */
108
+ export function GetDefaultUIPath(this: void): string;
109
+
110
+ /**
111
+ * @group xr_ui_asset
112
+ */
113
+ export function GetDefaultUIPathWithDelimiter(this: void): string;
114
+
115
+ /**
116
+ * @group xr_ui_asset
117
+ */
118
+ export function GetUIPath(this: void): string;
119
+
120
+ /**
121
+ * @group xr_ui_asset
122
+ */
123
+ export function GetUIPathWithDelimiter(this: void): string;
124
+
125
+ /**
126
+ * @group xr_ui_asset
127
+ */
128
+ export function GetUIStyleManager(this: void): UIStyleManager;
129
+ }
@@ -1,97 +1,106 @@
1
- declare module "xray16" {
2
- /**
3
- * @source C++ class CScriptXmlInit
4
- * @customConstructor CScriptXmlInit
5
- * @group xr_ui_core
6
- */
7
- export class CScriptXmlInit {
8
- public constructor();
9
-
10
- public ParseFile(path: string): void;
11
-
12
- public ParseShTexInfo(path: string): void;
13
-
14
- public Init3tButton(selector: string, parent: CUIWindow | null): CUI3tButton;
15
-
16
- public InitAnimStatic(selector: string, parent: CUIWindow | null): CUIStatic;
17
-
18
- public InitCDkey(selector: string, parent: CUIWindow | null): CUIEditBox;
19
-
20
- public InitCheck(selector: string, parent: CUIWindow | null): CUICheckButton;
21
-
22
- public InitComboBox(selector: string, parent: CUIWindow | null): CUIComboBox;
23
-
24
- public InitEditBox(selector: string, parent: CUIWindow | null): CUIEditBox;
25
-
26
- public InitFrame(selector: string, parent: CUIWindow | null): CUIFrameWindow;
27
-
28
- public InitFrameLine(selector: string, parent: CUIWindow | null): CUIFrameLineWnd;
29
-
30
- public InitKeyBinding(selector: string, parent: CUIWindow | null): CUIWindow;
31
-
32
- public InitLabel(selector: string, parent: CUIWindow | null): CUIStatic;
33
-
34
- public InitList(selector: string, parent: CUIWindow | null): CUIListWnd;
35
-
36
- public InitListBox<T extends CUIListBoxItem = CUIListBoxItem>(
37
- selector: string,
38
- parent: CUIWindow | null
39
- ): CUIListBox<T>;
40
-
41
- public InitMMShniaga(selector: string, parent: CUIWindow | null): CUIMMShniaga;
42
-
43
- public InitMPPlayerName(selector: string, parent: CUIWindow | null): CUIEditBox;
44
-
45
- public InitMapInfo(selector: string, parent: CUIWindow | null): CUIMapInfo;
46
-
47
- public InitMapList(selector: string, parent: CUIWindow | null): CUIMapList;
48
-
49
- public InitProgressBar(selector: string, parent: CUIWindow | null): CUIProgressBar;
50
-
51
- public InitScrollView(selector: string, parent: CUIWindow | null): CUIScrollView;
52
-
53
- public InitServerList(selector: string, parent: CUIWindow | null): CServerList;
54
-
55
- public InitSleepStatic(selector: string, parent: CUIWindow | null): CUISleepStatic;
56
-
57
- public InitSpinFlt(selector: string, parent: CUIWindow | null): CUISpinFlt;
58
-
59
- public InitSpinNum(selector: string, parent: CUIWindow | null): CUISpinNum;
60
-
61
- public InitSpinText(selector: string, parent: CUIWindow | null): CUISpinText;
62
-
63
- public InitStatic(selector: string, parent: CUIWindow | null): CUIStatic;
64
-
65
- public InitTab(selector: string, parent: CUIWindow | null): CUITabControl;
66
-
67
- public InitTextWnd(selector: string, parent: CUIWindow | null): CUITextWnd;
68
-
69
- public InitTrackBar(selector: string, parent: CUIWindow | null): CUITrackBar;
70
-
71
- public InitVerList(selector: string, parent: CUIWindow | null): CUIVersionList;
72
-
73
- public InitHint(selector: string, parent: CUIWindow | null): UIHint;
74
-
75
- public InitWindow(selector: string, index: i32, parent: CUIWindow | null): void;
76
- }
77
-
78
- /**
79
- * @group xr_ui_core
80
- */
81
- export function FitInRect(this: void, window: CUIWindow, rect: Frect, a: number, b: number): boolean;
82
-
83
- /**
84
- * @group xr_ui_core
85
- */
86
- export function GetTextureRect(this: void, str: string): Frect;
87
-
88
- /**
89
- * @group xr_ui_core
90
- */
91
- export function GetCursorPosition(this: void): vector2;
92
-
93
- /**
94
- * @group xr_ui_core
95
- */
96
- export function SetCursorPosition(this: void, vector: vector2): void;
97
- }
1
+ declare module "xray16" {
2
+ /**
3
+ * @source C++ class CScriptXmlInit
4
+ * @customConstructor CScriptXmlInit
5
+ * @group xr_ui_core
6
+ */
7
+ export class CScriptXmlInit {
8
+ public constructor();
9
+
10
+ public ParseFile(path: string): void;
11
+
12
+ public ParseShTexInfo(path: string): void;
13
+
14
+ public Init3tButton(selector: string, parent: CUIWindow | null): CUI3tButton;
15
+
16
+ public InitAnimStatic(selector: string, parent: CUIWindow | null): CUIStatic;
17
+
18
+ public InitCDkey(selector: string, parent: CUIWindow | null): CUIEditBox;
19
+
20
+ public InitCheck(selector: string, parent: CUIWindow | null): CUICheckButton;
21
+
22
+ public InitComboBox(selector: string, parent: CUIWindow | null): CUIComboBox;
23
+
24
+ public InitEditBox(selector: string, parent: CUIWindow | null): CUIEditBox;
25
+
26
+ public InitFrame(selector: string, parent: CUIWindow | null): CUIFrameWindow;
27
+
28
+ public InitFrameLine(selector: string, parent: CUIWindow | null): CUIFrameLineWnd;
29
+
30
+ public InitKeyBinding(selector: string, parent: CUIWindow | null): CUIWindow;
31
+
32
+ public InitLabel(selector: string, parent: CUIWindow | null): CUIStatic;
33
+
34
+ public InitList(selector: string, parent: CUIWindow | null): CUIListWnd;
35
+
36
+ public InitListBox<T extends CUIListBoxItem = CUIListBoxItem>(
37
+ selector: string,
38
+ parent: CUIWindow | null
39
+ ): CUIListBox<T>;
40
+
41
+ public InitMMShniaga(selector: string, parent: CUIWindow | null): CUIMMShniaga;
42
+
43
+ public InitMPPlayerName(selector: string, parent: CUIWindow | null): CUIEditBox;
44
+
45
+ public InitMapInfo(selector: string, parent: CUIWindow | null): CUIMapInfo;
46
+
47
+ public InitMapList(selector: string, parent: CUIWindow | null): CUIMapList;
48
+
49
+ public InitProgressBar(selector: string, parent: CUIWindow | null): CUIProgressBar;
50
+
51
+ public InitScrollView(selector: string, parent: CUIWindow | null): CUIScrollView;
52
+
53
+ public InitServerList(selector: string, parent: CUIWindow | null): CServerList;
54
+
55
+ public InitSleepStatic(selector: string, parent: CUIWindow | null): CUISleepStatic;
56
+
57
+ public InitSpinFlt(selector: string, parent: CUIWindow | null): CUISpinFlt;
58
+
59
+ public InitSpinNum(selector: string, parent: CUIWindow | null): CUISpinNum;
60
+
61
+ public InitSpinText(selector: string, parent: CUIWindow | null): CUISpinText;
62
+
63
+ public InitStatic(selector: string, parent: CUIWindow | null): CUIStatic;
64
+
65
+ public InitTab(selector: string, parent: CUIWindow | null): CUITabControl;
66
+
67
+ public InitTextWnd(selector: string, parent: CUIWindow | null): CUITextWnd;
68
+
69
+ public InitTrackBar(selector: string, parent: CUIWindow | null): CUITrackBar;
70
+
71
+ public InitVerList(selector: string, parent: CUIWindow | null): CUIVersionList;
72
+
73
+ public InitHint(selector: string, parent: CUIWindow | null): UIHint;
74
+
75
+ public InitWindow(selector: string, index: i32, parent: CUIWindow | null): void;
76
+ }
77
+
78
+ /**
79
+ * @group xr_ui_core
80
+ *
81
+ * @param window
82
+ * @param rect
83
+ * @param a
84
+ * @param b
85
+ */
86
+ export function FitInRect(this: void, window: CUIWindow, rect: Frect, a: number, b: number): boolean;
87
+
88
+ /**
89
+ * @group xr_ui_core
90
+ *
91
+ * @param str
92
+ */
93
+ export function GetTextureRect(this: void, str: string): Frect;
94
+
95
+ /**
96
+ * @group xr_ui_core
97
+ */
98
+ export function GetCursorPosition(this: void): vector2;
99
+
100
+ /**
101
+ * @group xr_ui_core
102
+ *
103
+ * @param vector
104
+ */
105
+ export function SetCursorPosition(this: void, vector: vector2): void;
106
+ }