xray16 1.3.4 → 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 (84) 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 +2 -2
  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 +1 -1
  35. package/types/index.d.ts +55 -55
  36. package/types/xr_ai/xr_action.d.ts +510 -510
  37. package/types/xr_ai/xr_alife.d.ts +566 -566
  38. package/types/xr_ai/xr_enemy_evaluation.d.ts +41 -41
  39. package/types/xr_ai/xr_goap.d.ts +669 -668
  40. package/types/xr_ai/xr_graph.d.ts +47 -47
  41. package/types/xr_ai/xr_memory.d.ts +148 -148
  42. package/types/xr_lib/xr_animation.d.ts +81 -81
  43. package/types/xr_lib/xr_bitwise.d.ts +32 -21
  44. package/types/xr_lib/xr_color.d.ts +45 -40
  45. package/types/xr_lib/xr_debug.d.ts +83 -77
  46. package/types/xr_lib/xr_dialog.d.ts +40 -40
  47. package/types/xr_lib/xr_flags.d.ts +529 -148
  48. package/types/xr_lib/xr_fs.d.ts +149 -148
  49. package/types/xr_lib/xr_game.d.ts +261 -158
  50. package/types/xr_lib/xr_hit.d.ts +41 -41
  51. package/types/xr_lib/xr_ini.d.ts +415 -188
  52. package/types/xr_lib/xr_level.d.ts +652 -225
  53. package/types/xr_lib/xr_luabind.d.ts +64 -59
  54. package/types/xr_lib/xr_map.d.ts +61 -61
  55. package/types/xr_lib/xr_math.d.ts +815 -233
  56. package/types/xr_lib/xr_multiplayer.d.ts +351 -351
  57. package/types/xr_lib/xr_profile.d.ts +192 -160
  58. package/types/xr_lib/xr_properties.d.ts +455 -166
  59. package/types/xr_lib/xr_relation.d.ts +84 -84
  60. package/types/xr_lib/xr_render.d.ts +71 -69
  61. package/types/xr_lib/xr_save.d.ts +727 -223
  62. package/types/xr_lib/xr_sound.d.ts +151 -151
  63. package/types/xr_lib/xr_stats.ts +20 -20
  64. package/types/xr_lib/xr_task.d.ts +111 -111
  65. package/types/xr_lib/xr_time.d.ts +166 -61
  66. package/types/xr_lib/xr_type.d.ts +75 -75
  67. package/types/xr_object/client/xr_anomaly.d.ts +50 -50
  68. package/types/xr_object/client/xr_artefact.d.ts +98 -98
  69. package/types/xr_object/client/xr_client_object.d.ts +76 -76
  70. package/types/xr_object/client/xr_creature.d.ts +164 -164
  71. package/types/xr_object/client/xr_item.d.ts +264 -264
  72. package/types/xr_object/client/xr_level.d.ts +285 -285
  73. package/types/xr_object/client/xr_physic.d.ts +214 -214
  74. package/types/xr_object/client/xr_zone.d.ts +47 -47
  75. package/types/xr_object/script/xr_script_interface.d.ts +584 -584
  76. package/types/xr_object/script/xr_script_object.d.ts +2408 -1390
  77. package/types/xr_object/script/xr_script_trade.d.ts +41 -26
  78. package/types/xr_object/server/xr_server_object.d.ts +794 -792
  79. package/types/xr_ui/xr_ui_asset.d.ts +129 -123
  80. package/types/xr_ui/xr_ui_core.d.ts +106 -97
  81. package/types/xr_ui/xr_ui_event.d.ts +383 -381
  82. package/types/xr_ui/xr_ui_interface.d.ts +901 -903
  83. package/types/xr_ui/xr_ui_menu.d.ts +142 -142
  84. package/types/xrf_plugin.d.ts +59 -51
@@ -1,148 +1,149 @@
1
- declare module "xray16" {
2
- /**
3
- * @source C++ class FS_file_list
4
- * @customConstructor FS_file_list
5
- * @group xr_fs
6
- */
7
- export class FS_file_list {
8
- public Free(): void;
9
-
10
- public GetAt(number: u32): FS_item;
11
-
12
- public Size(): u32;
13
- }
14
-
15
- /**
16
- * @source C++ class FS_file_list_ex
17
- * @customConstructor FS_file_list_ex
18
- * @group xr_fs
19
- */
20
- export class FS_file_list_ex {
21
- public Sort(number: u32): void;
22
-
23
- public GetAt(index: u32): FS_item;
24
-
25
- public Size(): u32;
26
- }
27
-
28
- /**
29
- * @source C++ class FS_item
30
- * @customConstructor FS_item
31
- * @group xr_fs
32
- */
33
- export class FS_item {
34
- public Modif(): string;
35
-
36
- public NameFull(): string;
37
-
38
- public NameShort(): string;
39
-
40
- public ModifDigitOnly(): string;
41
-
42
- public Size(): u32;
43
- }
44
-
45
- /**
46
- * @source C++ class fs_file
47
- * @customConstructor fs_file
48
- * @group xr_fs
49
- */
50
- export class fs_file {
51
- public modif: u32;
52
- public name: string;
53
- public ptr: u32;
54
- public size_compressed: u32;
55
- public size_real: u32;
56
- }
57
-
58
- /**
59
- * @source C++ class FS
60
- * @customConstructor FS
61
- * @group xr_fs
62
- */
63
- export class FS {
64
- public static FS_ClampExt: 4;
65
- public static FS_ListFiles: 1;
66
- public static FS_ListFolders: 2;
67
- public static FS_RootOnly: 8;
68
- public static FS_sort_by_modif_down: 5;
69
- public static FS_sort_by_modif_up: 4;
70
- public static FS_sort_by_name_down: 1;
71
- public static FS_sort_by_name_up: 0;
72
- public static FS_sort_by_size_down: 3;
73
- public static FS_sort_by_size_up: 2;
74
-
75
- public dir_delete(path: string, filename: string, remove_files: boolean): void;
76
-
77
- public dir_delete(path: string, remove_files: boolean): void;
78
-
79
- public file_list_open(alias: string, folder: string, flags: u32): FS_file_list;
80
-
81
- public file_list_open(path: string, flags: u32): FS_file_list;
82
-
83
- public file_list_open_ex(path: string, flags: u32, mask: string): FS_file_list_ex;
84
-
85
- public file_copy(source: string, destination: string): void;
86
-
87
- public file_length(path: string): i32;
88
-
89
- public file_rename(path: string, destination: string, overwrite: boolean): void;
90
-
91
- public get_file_age(path: string): u32;
92
-
93
- public get_file_age_str(path: string): u32;
94
-
95
- public file_delete(path: string, filename: string): void;
96
-
97
- public file_delete(path: string): void;
98
-
99
- public exist(alias: string, filename: string, fs_type: TXR_fs_type): i32 | null;
100
-
101
- public exist(alias: string, filename: string): i32 | null;
102
-
103
- public exist(path: string): i32 | null;
104
-
105
- public append_path(alias: string, root: string, path: string, recursive: boolean): unknown /* FS_Path */;
106
-
107
- public path_exist(path: string): boolean;
108
-
109
- public update_path(alias: string, add: string): string;
110
-
111
- public rescan_path(path: string): void;
112
-
113
- /**
114
- * Not registered in LUA, will throw.
115
- */
116
- public get_path(alias: string): unknown;
117
-
118
- public r_close(reader: reader): void;
119
-
120
- public r_open(path: string): reader;
121
-
122
- public r_open(alias: string, path: string): reader;
123
-
124
- public w_close(writer: unknown /* IWriter */): void;
125
-
126
- public w_open(path: string, filename: string): unknown /* IWriter */;
127
-
128
- public w_open(path: string): unknown /* IWriter */;
129
- }
130
-
131
- /**
132
- * @group xr_fs
133
- */
134
- export type TXR_fs_type = EnumeratedStaticsValues<typeof FS>;
135
-
136
- /**
137
- * @group xr_fs
138
- */
139
- export function getFS(this: void): FS;
140
-
141
- /**
142
- * Get operating system active username.
143
- *
144
- * @group xr_fs
145
- * @returns username string
146
- */
147
- export function user_name(this: void): string;
148
- }
1
+ declare module "xray16" {
2
+ /**
3
+ * @source C++ class FS_file_list
4
+ * @customConstructor FS_file_list
5
+ * @group xr_fs
6
+ */
7
+ export class FS_file_list {
8
+ public Free(): void;
9
+
10
+ public GetAt(number: u32): FS_item;
11
+
12
+ public Size(): u32;
13
+ }
14
+
15
+ /**
16
+ * @source C++ class FS_file_list_ex
17
+ * @customConstructor FS_file_list_ex
18
+ * @group xr_fs
19
+ */
20
+ export class FS_file_list_ex {
21
+ public Sort(number: u32): void;
22
+
23
+ public GetAt(index: u32): FS_item;
24
+
25
+ public Size(): u32;
26
+ }
27
+
28
+ /**
29
+ * @source C++ class FS_item
30
+ * @customConstructor FS_item
31
+ * @group xr_fs
32
+ */
33
+ export class FS_item {
34
+ public Modif(): string;
35
+
36
+ public NameFull(): string;
37
+
38
+ public NameShort(): string;
39
+
40
+ public ModifDigitOnly(): string;
41
+
42
+ public Size(): u32;
43
+ }
44
+
45
+ /**
46
+ * @source C++ class fs_file
47
+ * @customConstructor fs_file
48
+ * @group xr_fs
49
+ */
50
+ export class fs_file {
51
+ public modif: u32;
52
+ public name: string;
53
+ public ptr: u32;
54
+ public size_compressed: u32;
55
+ public size_real: u32;
56
+ }
57
+
58
+ /**
59
+ * @source C++ class FS
60
+ * @customConstructor FS
61
+ * @group xr_fs
62
+ */
63
+ export class FS {
64
+ public static FS_ClampExt: 4;
65
+ public static FS_ListFiles: 1;
66
+ public static FS_ListFolders: 2;
67
+ public static FS_RootOnly: 8;
68
+ public static FS_sort_by_modif_down: 5;
69
+ public static FS_sort_by_modif_up: 4;
70
+ public static FS_sort_by_name_down: 1;
71
+ public static FS_sort_by_name_up: 0;
72
+ public static FS_sort_by_size_down: 3;
73
+ public static FS_sort_by_size_up: 2;
74
+
75
+ public dir_delete(path: string, filename: string, remove_files: boolean): void;
76
+
77
+ public dir_delete(path: string, remove_files: boolean): void;
78
+
79
+ public file_list_open(alias: string, folder: string, flags: u32): FS_file_list;
80
+
81
+ public file_list_open(path: string, flags: u32): FS_file_list;
82
+
83
+ public file_list_open_ex(path: string, flags: u32, mask: string): FS_file_list_ex;
84
+
85
+ public file_copy(source: string, destination: string): void;
86
+
87
+ public file_length(path: string): i32;
88
+
89
+ public file_rename(path: string, destination: string, overwrite: boolean): void;
90
+
91
+ public get_file_age(path: string): u32;
92
+
93
+ public get_file_age_str(path: string): u32;
94
+
95
+ public file_delete(path: string, filename: string): void;
96
+
97
+ public file_delete(path: string): void;
98
+
99
+ public exist(alias: string, filename: string, fs_type: TXR_fs_type): i32 | null;
100
+
101
+ public exist(alias: string, filename: string): i32 | null;
102
+
103
+ public exist(path: string): i32 | null;
104
+
105
+ public append_path(alias: string, root: string, path: string, recursive: boolean): unknown; /* FS_Path */
106
+
107
+ public path_exist(path: string): boolean;
108
+
109
+ public update_path(alias: string, add: string): string;
110
+
111
+ public rescan_path(path: string): void;
112
+
113
+ /**
114
+ * Not registered in LUA, will throw.
115
+ */
116
+ public get_path(alias: string): unknown;
117
+
118
+ public r_close(reader: reader): void;
119
+
120
+ public r_open(path: string): reader;
121
+
122
+ public r_open(alias: string, path: string): reader;
123
+
124
+ public w_close(writer: unknown /* IWriter */): void;
125
+
126
+ public w_open(path: string, filename: string): unknown; /* IWriter */
127
+
128
+ public w_open(path: string): unknown; /* IWriter */
129
+ }
130
+
131
+ /**
132
+ * @group xr_fs
133
+ */
134
+ export type TXR_fs_type = EnumeratedStaticsValues<typeof FS>;
135
+
136
+ /**
137
+ * @group xr_fs
138
+ */
139
+ export function getFS(this: void): FS;
140
+
141
+ /**
142
+ * Get operating system active username.
143
+ *
144
+ * @group xr_fs
145
+ *
146
+ * @returns Username string.
147
+ */
148
+ export function user_name(this: void): string;
149
+ }