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,76 +1,76 @@
1
- declare module "xray16" {
2
- /**
3
- * @source C++ class DLL_Pure
4
- * @customConstructor DLL_Pure
5
- * @group xr_core
6
- */
7
- export class DLL_Pure extends EngineBinding {
8
- protected constructor();
9
- }
10
-
11
- /**
12
- * @source C++ class IRender_Visual
13
- * @group xr_client_object
14
- */
15
- export interface IXR_IRender_Visual {
16
- dcast_PKinematicsAnimated(): IKinematicsAnimated;
17
- }
18
-
19
- /**
20
- * @source C++ class CGameObject : DLL_Pure, ISheduled, ICollidable, IRenderable
21
- * @customConstructor CGameObject
22
- * @group xr_client_object
23
- */
24
- export class CGameObject extends DLL_Pure {
25
- public Visual(): IXR_IRender_Visual;
26
-
27
- public getEnabled(): boolean;
28
-
29
- public _construct(): DLL_Pure;
30
-
31
- public net_Import(net_packet: net_packet): void;
32
-
33
- public getVisible(): boolean;
34
-
35
- public net_Export(net_packet: net_packet): void;
36
-
37
- public net_Spawn(cse_abstract: cse_abstract): boolean;
38
-
39
- public use(object: CGameObject): boolean;
40
- }
41
-
42
- /**
43
- * Class to link client side object with script object entity.
44
- *
45
- * @source C++ class object_binder
46
- * @customConstructor object_binder
47
- * @group xr_client_object
48
- */
49
- export class object_binder<T = game_object> extends EngineBinding {
50
- public readonly object: T;
51
-
52
- public constructor(object: T);
53
-
54
- public save(packet: net_packet): void;
55
-
56
- public load(reader: reader): void;
57
-
58
- public update(delta: u32): void;
59
-
60
- public reload(section: string): void;
61
-
62
- public reinit(): void;
63
-
64
- public net_export(net_packet: net_packet): void;
65
-
66
- public net_save_relevant(): boolean;
67
-
68
- public net_destroy(): void;
69
-
70
- public net_Relcase(object: T): void;
71
-
72
- public net_spawn(object: cse_alife_object): boolean;
73
-
74
- public net_import(net_packet: net_packet): void;
75
- }
76
- }
1
+ declare module "xray16" {
2
+ /**
3
+ * @source C++ class DLL_Pure
4
+ * @customConstructor DLL_Pure
5
+ * @group xr_core
6
+ */
7
+ export class DLL_Pure extends EngineBinding {
8
+ protected constructor();
9
+ }
10
+
11
+ /**
12
+ * @source C++ class IRender_Visual
13
+ * @group xr_client_object
14
+ */
15
+ export interface IXR_IRender_Visual {
16
+ dcast_PKinematicsAnimated(): IKinematicsAnimated;
17
+ }
18
+
19
+ /**
20
+ * @source C++ class CGameObject : DLL_Pure, ISheduled, ICollidable, IRenderable
21
+ * @customConstructor CGameObject
22
+ * @group xr_client_object
23
+ */
24
+ export class CGameObject extends DLL_Pure {
25
+ public Visual(): IXR_IRender_Visual;
26
+
27
+ public getEnabled(): boolean;
28
+
29
+ public _construct(): DLL_Pure;
30
+
31
+ public net_Import(net_packet: net_packet): void;
32
+
33
+ public getVisible(): boolean;
34
+
35
+ public net_Export(net_packet: net_packet): void;
36
+
37
+ public net_Spawn(cse_abstract: cse_abstract): boolean;
38
+
39
+ public use(object: CGameObject): boolean;
40
+ }
41
+
42
+ /**
43
+ * Class to link client side object with script object entity.
44
+ *
45
+ * @source C++ class object_binder
46
+ * @customConstructor object_binder
47
+ * @group xr_client_object
48
+ */
49
+ export class object_binder<T = game_object> extends EngineBinding {
50
+ public readonly object: T;
51
+
52
+ public constructor(object: T);
53
+
54
+ public save(packet: net_packet): void;
55
+
56
+ public load(reader: reader): void;
57
+
58
+ public update(delta: u32): void;
59
+
60
+ public reload(section: string): void;
61
+
62
+ public reinit(): void;
63
+
64
+ public net_export(net_packet: net_packet): void;
65
+
66
+ public net_save_relevant(): boolean;
67
+
68
+ public net_destroy(): void;
69
+
70
+ public net_Relcase(object: T): void;
71
+
72
+ public net_spawn(object: cse_alife_object): boolean;
73
+
74
+ public net_import(net_packet: net_packet): void;
75
+ }
76
+ }
@@ -1,164 +1,164 @@
1
- declare module "xray16" {
2
- /**
3
- * @source C++ class CEntityAlive : public CEntity
4
- * @customConstructor CEntityAlive
5
- * @group xr_creature
6
- */
7
- export class CEntityAlive extends CGameObject {}
8
-
9
- /**
10
- * @source C++ class CActor : CGameObject
11
- * @customConstructor CActor
12
- * @group xr_creature
13
- */
14
- export class CActor extends CGameObject {}
15
-
16
- /**
17
- * @source C++ class CCustomMonster : CGameObject
18
- * @customConstructor CCustomMonster
19
- * @group xr_creature
20
- */
21
- export class CCustomMonster extends CGameObject {}
22
-
23
- /**
24
- * @source C++ class CInventoryOwner : CGameObject
25
- * @customConstructor CInventoryOwner
26
- * @group xr_creature
27
- */
28
- export class CInventoryOwner extends CGameObject {}
29
-
30
- /**
31
- * @source C++ class CInventoryItem : CGameObject
32
- * @customConstructor CInventoryItem
33
- * @group xr_creature
34
- */
35
- export class CInventoryItem extends CGameObject {}
36
-
37
- /**
38
- * @source C++ class CZombie : CGameObject
39
- * @customConstructor CZombie
40
- * @group xr_creature
41
- */
42
- export class CZombie extends CGameObject {}
43
-
44
- /**
45
- * @source C++ class CController : CGameObject
46
- * @customConstructor CController
47
- * @group xr_creature
48
- */
49
- export class CController extends CGameObject {}
50
-
51
- /**
52
- * @source C++ class CTushkano : CGameObject
53
- * @customConstructor CTushkano
54
- * @group xr_creature
55
- */
56
- export class CTushkano extends CGameObject {}
57
-
58
- /**
59
- * @source C++ class CBurer : CGameObject
60
- * @customConstructor CBurer
61
- * @group xr_creature
62
- */
63
- export class CBurer extends CGameObject {}
64
-
65
- /**
66
- * @source C++ class CCat : CGameObject
67
- * @customConstructor CCat
68
- * @group xr_creature
69
- */
70
- export class CCat extends CGameObject {}
71
-
72
- /**
73
- * @source C++ class CChimera : CGameObject
74
- * @customConstructor CChimera
75
- * @group xr_creature
76
- */
77
- export class CChimera extends CGameObject {}
78
-
79
- /**
80
- * @source C++ class CPoltergeist : CGameObject
81
- * @customConstructor CPoltergeist
82
- * @group xr_creature
83
- */
84
- export class CPoltergeist extends CGameObject {}
85
-
86
- /**
87
- * @source C++ class CPseudoGigant : CGameObject
88
- * @customConstructor CPseudoGigant
89
- * @group xr_creature
90
- */
91
- export class CPseudoGigant extends CGameObject {}
92
-
93
- /**
94
- * @source C++ class CPsyDog : CGameObject
95
- * @customConstructor CPsyDog
96
- * @group xr_creature
97
- */
98
- export class CPsyDog extends CGameObject {}
99
-
100
- /**
101
- * @source C++ class CPsyDogPhantom : CGameObject
102
- * @customConstructor CPsyDogPhantom
103
- * @group xr_creature
104
- */
105
- export class CPsyDogPhantom extends CGameObject {}
106
-
107
- /**
108
- * @source C++ class CAI_Bloodsucker : CGameObject
109
- * @customConstructor CAI_Bloodsucker
110
- * @group xr_creature
111
- */
112
- export class CAI_Bloodsucker extends CGameObject {
113
- public force_visibility_state(value: i32): void;
114
- }
115
-
116
- /**
117
- * @source C++ class CAI_Boar : CGameObject
118
- * @customConstructor CAI_Boar
119
- * @group xr_creature
120
- */
121
- export class CAI_Boar extends CGameObject {}
122
-
123
- /**
124
- * @source C++ class CAI_Dog : CGameObject
125
- * @customConstructor CAI_Dog
126
- * @group xr_creature
127
- */
128
- export class CAI_Dog extends CGameObject {}
129
-
130
- /**
131
- * @source C++ class CAI_Flesh : CGameObject
132
- * @customConstructor CAI_Flesh
133
- * @group xr_creature
134
- */
135
- export class CAI_Flesh extends CGameObject {}
136
-
137
- /**
138
- * @source C++ class CAI_PseudoDog : CGameObject
139
- * @customConstructor CAI_PseudoDog
140
- * @group xr_creature
141
- */
142
- export class CAI_PseudoDog extends CGameObject {}
143
-
144
- /**
145
- * @source C++ class CAI_Stalker : CGameObject
146
- * @customConstructor CAI_Stalker
147
- * @group xr_creature
148
- */
149
- export class CAI_Stalker extends CGameObject {}
150
-
151
- /**
152
- * @source C++ class CAI_Trader : CGameObject
153
- * @customConstructor CAI_Trader
154
- * @group xr_creature
155
- */
156
- export class CAI_Trader extends CGameObject {}
157
-
158
- /**
159
- * @source C++ class CSnork : CGameObject
160
- * @customConstructor CSnork
161
- * @group xr_creature
162
- */
163
- export class CSnork extends CGameObject {}
164
- }
1
+ declare module "xray16" {
2
+ /**
3
+ * @source C++ class CEntityAlive : public CEntity
4
+ * @customConstructor CEntityAlive
5
+ * @group xr_creature
6
+ */
7
+ export class CEntityAlive extends CGameObject {}
8
+
9
+ /**
10
+ * @source C++ class CActor : CGameObject
11
+ * @customConstructor CActor
12
+ * @group xr_creature
13
+ */
14
+ export class CActor extends CGameObject {}
15
+
16
+ /**
17
+ * @source C++ class CCustomMonster : CGameObject
18
+ * @customConstructor CCustomMonster
19
+ * @group xr_creature
20
+ */
21
+ export class CCustomMonster extends CGameObject {}
22
+
23
+ /**
24
+ * @source C++ class CInventoryOwner : CGameObject
25
+ * @customConstructor CInventoryOwner
26
+ * @group xr_creature
27
+ */
28
+ export class CInventoryOwner extends CGameObject {}
29
+
30
+ /**
31
+ * @source C++ class CInventoryItem : CGameObject
32
+ * @customConstructor CInventoryItem
33
+ * @group xr_creature
34
+ */
35
+ export class CInventoryItem extends CGameObject {}
36
+
37
+ /**
38
+ * @source C++ class CZombie : CGameObject
39
+ * @customConstructor CZombie
40
+ * @group xr_creature
41
+ */
42
+ export class CZombie extends CGameObject {}
43
+
44
+ /**
45
+ * @source C++ class CController : CGameObject
46
+ * @customConstructor CController
47
+ * @group xr_creature
48
+ */
49
+ export class CController extends CGameObject {}
50
+
51
+ /**
52
+ * @source C++ class CTushkano : CGameObject
53
+ * @customConstructor CTushkano
54
+ * @group xr_creature
55
+ */
56
+ export class CTushkano extends CGameObject {}
57
+
58
+ /**
59
+ * @source C++ class CBurer : CGameObject
60
+ * @customConstructor CBurer
61
+ * @group xr_creature
62
+ */
63
+ export class CBurer extends CGameObject {}
64
+
65
+ /**
66
+ * @source C++ class CCat : CGameObject
67
+ * @customConstructor CCat
68
+ * @group xr_creature
69
+ */
70
+ export class CCat extends CGameObject {}
71
+
72
+ /**
73
+ * @source C++ class CChimera : CGameObject
74
+ * @customConstructor CChimera
75
+ * @group xr_creature
76
+ */
77
+ export class CChimera extends CGameObject {}
78
+
79
+ /**
80
+ * @source C++ class CPoltergeist : CGameObject
81
+ * @customConstructor CPoltergeist
82
+ * @group xr_creature
83
+ */
84
+ export class CPoltergeist extends CGameObject {}
85
+
86
+ /**
87
+ * @source C++ class CPseudoGigant : CGameObject
88
+ * @customConstructor CPseudoGigant
89
+ * @group xr_creature
90
+ */
91
+ export class CPseudoGigant extends CGameObject {}
92
+
93
+ /**
94
+ * @source C++ class CPsyDog : CGameObject
95
+ * @customConstructor CPsyDog
96
+ * @group xr_creature
97
+ */
98
+ export class CPsyDog extends CGameObject {}
99
+
100
+ /**
101
+ * @source C++ class CPsyDogPhantom : CGameObject
102
+ * @customConstructor CPsyDogPhantom
103
+ * @group xr_creature
104
+ */
105
+ export class CPsyDogPhantom extends CGameObject {}
106
+
107
+ /**
108
+ * @source C++ class CAI_Bloodsucker : CGameObject
109
+ * @customConstructor CAI_Bloodsucker
110
+ * @group xr_creature
111
+ */
112
+ export class CAI_Bloodsucker extends CGameObject {
113
+ public force_visibility_state(value: i32): void;
114
+ }
115
+
116
+ /**
117
+ * @source C++ class CAI_Boar : CGameObject
118
+ * @customConstructor CAI_Boar
119
+ * @group xr_creature
120
+ */
121
+ export class CAI_Boar extends CGameObject {}
122
+
123
+ /**
124
+ * @source C++ class CAI_Dog : CGameObject
125
+ * @customConstructor CAI_Dog
126
+ * @group xr_creature
127
+ */
128
+ export class CAI_Dog extends CGameObject {}
129
+
130
+ /**
131
+ * @source C++ class CAI_Flesh : CGameObject
132
+ * @customConstructor CAI_Flesh
133
+ * @group xr_creature
134
+ */
135
+ export class CAI_Flesh extends CGameObject {}
136
+
137
+ /**
138
+ * @source C++ class CAI_PseudoDog : CGameObject
139
+ * @customConstructor CAI_PseudoDog
140
+ * @group xr_creature
141
+ */
142
+ export class CAI_PseudoDog extends CGameObject {}
143
+
144
+ /**
145
+ * @source C++ class CAI_Stalker : CGameObject
146
+ * @customConstructor CAI_Stalker
147
+ * @group xr_creature
148
+ */
149
+ export class CAI_Stalker extends CGameObject {}
150
+
151
+ /**
152
+ * @source C++ class CAI_Trader : CGameObject
153
+ * @customConstructor CAI_Trader
154
+ * @group xr_creature
155
+ */
156
+ export class CAI_Trader extends CGameObject {}
157
+
158
+ /**
159
+ * @source C++ class CSnork : CGameObject
160
+ * @customConstructor CSnork
161
+ * @group xr_creature
162
+ */
163
+ export class CSnork extends CGameObject {}
164
+ }