xray16 1.6.0 → 1.6.2

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 (53) hide show
  1. package/package.json +12 -6
  2. package/xray16.d.ts +30852 -0
  3. package/types/index.d.ts +0 -55
  4. package/types/internal.d.ts +0 -6
  5. package/types/xr_ai/xr_action.d.ts +0 -1803
  6. package/types/xr_ai/xr_alife.d.ts +0 -1872
  7. package/types/xr_ai/xr_enemy_evaluation.d.ts +0 -134
  8. package/types/xr_ai/xr_goap.d.ts +0 -1118
  9. package/types/xr_ai/xr_graph.d.ts +0 -135
  10. package/types/xr_ai/xr_memory.d.ts +0 -384
  11. package/types/xr_lib/xr_animation.d.ts +0 -252
  12. package/types/xr_lib/xr_bitwise.d.ts +0 -44
  13. package/types/xr_lib/xr_color.d.ts +0 -142
  14. package/types/xr_lib/xr_debug.d.ts +0 -183
  15. package/types/xr_lib/xr_dialog.d.ts +0 -132
  16. package/types/xr_lib/xr_flags.d.ts +0 -592
  17. package/types/xr_lib/xr_fs.d.ts +0 -617
  18. package/types/xr_lib/xr_game.d.ts +0 -362
  19. package/types/xr_lib/xr_hit.d.ts +0 -127
  20. package/types/xr_lib/xr_ini.d.ts +0 -475
  21. package/types/xr_lib/xr_level.d.ts +0 -797
  22. package/types/xr_lib/xr_luabind.d.ts +0 -90
  23. package/types/xr_lib/xr_map.d.ts +0 -194
  24. package/types/xr_lib/xr_math.d.ts +0 -871
  25. package/types/xr_lib/xr_multiplayer.d.ts +0 -1081
  26. package/types/xr_lib/xr_profile.d.ts +0 -272
  27. package/types/xr_lib/xr_properties.d.ts +0 -612
  28. package/types/xr_lib/xr_relation.d.ts +0 -231
  29. package/types/xr_lib/xr_render.d.ts +0 -167
  30. package/types/xr_lib/xr_save.d.ts +0 -835
  31. package/types/xr_lib/xr_sound.d.ts +0 -517
  32. package/types/xr_lib/xr_stats.ts +0 -51
  33. package/types/xr_lib/xr_task.d.ts +0 -390
  34. package/types/xr_lib/xr_time.d.ts +0 -177
  35. package/types/xr_lib/xr_type.d.ts +0 -70
  36. package/types/xr_object/client/xr_anomaly.d.ts +0 -70
  37. package/types/xr_object/client/xr_artefact.d.ts +0 -153
  38. package/types/xr_object/client/xr_client_object.d.ts +0 -207
  39. package/types/xr_object/client/xr_creature.d.ts +0 -243
  40. package/types/xr_object/client/xr_item.d.ts +0 -370
  41. package/types/xr_object/client/xr_level.d.ts +0 -755
  42. package/types/xr_object/client/xr_physic.d.ts +0 -644
  43. package/types/xr_object/client/xr_zone.d.ts +0 -85
  44. package/types/xr_object/script/xr_script_interface.d.ts +0 -1142
  45. package/types/xr_object/script/xr_script_object.d.ts +0 -5702
  46. package/types/xr_object/script/xr_script_trade.d.ts +0 -51
  47. package/types/xr_object/server/xr_server_object.d.ts +0 -1488
  48. package/types/xr_ui/xr_ui_asset.d.ts +0 -364
  49. package/types/xr_ui/xr_ui_core.d.ts +0 -426
  50. package/types/xr_ui/xr_ui_event.d.ts +0 -1449
  51. package/types/xr_ui/xr_ui_interface.d.ts +0 -2449
  52. package/types/xr_ui/xr_ui_menu.d.ts +0 -401
  53. package/types/xrf_plugin.d.ts +0 -111
@@ -1,90 +0,0 @@
1
- declare module "xray16" {
2
- /**
3
- * Base class for LuaBind-backed engine objects.
4
- *
5
- * Engine classes expose `__name` through the TypeScriptToLua LuaBind plugin so subclasses can be emitted as LuaBind
6
- * classes instead of regular Lua tables.
7
- *
8
- * @source luabind
9
- * @group xr_luabind
10
- */
11
- export class EngineBinding {
12
- /**
13
- * LuaBind class constructor name.
14
- */
15
- public static readonly __name: string;
16
-
17
- /**
18
- * LuaBind instance constructor name.
19
- */
20
- public readonly __name: string;
21
- }
22
-
23
- /**
24
- * Static members owned by `EngineBinding` and excluded from exported engine enum values.
25
- *
26
- * @group xr_luabind
27
- */
28
- type TEngineBindingStaticMethods = keyof typeof EngineBinding;
29
-
30
- /**
31
- * Mark a TypeScript class for LuaBind class transformation.
32
- *
33
- * Use this on classes that extend engine bindings and need LuaBind-compatible constructors, inheritance, or virtual
34
- * methods in emitted Lua.
35
- *
36
- * @group xr_luabind
37
- *
38
- * @returns Class decorator.
39
- */
40
- export function LuabindClass(): ClassDecorator;
41
-
42
- /**
43
- * Runtime metadata for a LuaBind class.
44
- *
45
- * @source C++ class class_info_data
46
- * @customConstructor class_info_data
47
- * @group xr_luabind
48
- */
49
- export class class_info_data extends EngineBinding {
50
- /**
51
- * Methods exposed by the LuaBind class.
52
- */
53
- public readonly methods: LuaTable<string, (...args: Array<unknown>) => unknown>;
54
-
55
- /**
56
- * Attribute names exposed by the LuaBind class.
57
- */
58
- public readonly attributes: LuaTable<number, string>;
59
-
60
- /**
61
- * LuaBind class name.
62
- */
63
- public readonly name: string;
64
-
65
- /**
66
- * Engine-created LuaBind metadata.
67
- */
68
- private constructor();
69
- }
70
-
71
- /**
72
- * Get names of LuaBind classes registered in a Lua state.
73
- *
74
- * @group xr_luabind
75
- *
76
- * @param lua_state - Lua state to inspect.
77
- * @returns Registered class names.
78
- */
79
- export function class_names(this: void, lua_state: unknown /* Lua_State*/): LuaTable<number, string>;
80
-
81
- /**
82
- * Get LuaBind metadata for an object or class.
83
- *
84
- * @group xr_luabind
85
- *
86
- * @param target - Object or class to inspect.
87
- * @returns LuaBind class metadata.
88
- */
89
- export function class_info(this: void, target: unknown): class_info_data;
90
- }
@@ -1,194 +0,0 @@
1
- import type { Nullable } from "../internal";
2
-
3
- declare module "xray16" {
4
- /**
5
- * Manages active PDA/minimap locations.
6
- *
7
- * @source C++ class CMapManager
8
- * @customConstructor CMapManager
9
- * @group xr_map
10
- *
11
- * @remarks
12
- * Level scripts usually work with the level-owned map manager through map spot helpers instead of creating wrappers.
13
- * Removed locations are queued for deferred destruction and should not be reused from script.
14
- */
15
- export class CMapManager {
16
- /**
17
- * Create a map manager wrapper.
18
- */
19
- public constructor();
20
-
21
- /**
22
- * Remove all map locations attached to an object id.
23
- *
24
- * @remarks
25
- * In single-player this also releases linked game-task map locations. Native location objects are destroyed on the
26
- * manager's deferred destroy queue, so any old `CMapLocation` references become unsafe to use.
27
- *
28
- * @param id - Game object id.
29
- */
30
- public RemoveMapLocationByObjectID(id: u16): void;
31
-
32
- /**
33
- * Remove a specific map location.
34
- *
35
- * @remarks
36
- * In single-player this also releases linked game-task map locations. Native location objects are destroyed on the
37
- * manager's deferred destroy queue, so do not call methods on `location` after removal.
38
- *
39
- * @param location - Location object to remove.
40
- */
41
- public RemoveMapLocation(location: CMapLocation): void;
42
-
43
- /**
44
- * Hide pointers for all map locations.
45
- *
46
- * @remarks
47
- * Only pointer arrows are disabled. The map spots themselves remain enabled.
48
- */
49
- public DisableAllPointers(): void;
50
- }
51
-
52
- /**
53
- * A single PDA/minimap spot attached to an object or user position.
54
- *
55
- * @source C++ class CMapLocation
56
- * @customConstructor CMapLocation
57
- * @group xr_map
58
- *
59
- * @remarks
60
- * Map locations are created by the engine or map manager. The native binding does not expose a script constructor.
61
- * A location can also expire or be removed by object lifetime, TTL, or task cleanup.
62
- */
63
- export class CMapLocation {
64
- /**
65
- * Engine-created map location.
66
- */
67
- protected constructor();
68
-
69
- /**
70
- * @returns Whether the map spot participates in UI collision.
71
- */
72
- public Collidable(): boolean;
73
-
74
- /**
75
- * Hide the off-screen pointer arrow.
76
- */
77
- public DisablePointer(): void;
78
-
79
- /**
80
- * Hide the map spot.
81
- */
82
- public DisableSpot(): void;
83
-
84
- /**
85
- * Show the off-screen pointer arrow.
86
- */
87
- public EnablePointer(): void;
88
-
89
- /**
90
- * Show the map spot.
91
- */
92
- public EnableSpot(): void;
93
-
94
- /**
95
- * @remarks
96
- * Returns `null` when hints are disabled for this spot.
97
- *
98
- * @returns Hint text shown for the spot.
99
- */
100
- public GetHint(): Nullable<string>;
101
-
102
- /**
103
- * @remarks
104
- * This is a cached value updated by the map manager.
105
- *
106
- * @returns Last calculated spot position.
107
- */
108
- public GetLastPosition(): vector2;
109
-
110
- /**
111
- * @remarks
112
- * This is a cached value updated by the map manager.
113
- *
114
- * @returns Level name where the spot is located.
115
- */
116
- public GetLevelName(): string;
117
-
118
- /**
119
- * @remarks
120
- * This is a cached value updated by the map manager.
121
- *
122
- * @returns Current spot position on the map.
123
- */
124
- public GetPosition(): vector2;
125
-
126
- /**
127
- * Highlight or clear the spot highlight.
128
- *
129
- * @remarks
130
- * Requires a location type with a level-map spot. Types that only define minimap or complex-map visuals are not good
131
- * candidates for this helper.
132
- *
133
- * @param state - Whether highlighting is enabled.
134
- * @param color - Highlight color.
135
- */
136
- public HighlightSpot(state: boolean, color: fcolor): void;
137
-
138
- /**
139
- * @returns Whether a hint can be shown for the spot.
140
- */
141
- public HintEnabled(): boolean;
142
-
143
- /**
144
- * @returns Whether this is a user-created spot.
145
- */
146
- public IsUserDefined(): boolean;
147
-
148
- /**
149
- * @returns Object id this spot tracks.
150
- */
151
- public ObjectID(): u16;
152
-
153
- /**
154
- * @remarks
155
- * Pointer state also depends on `SpotEnabled()`. A disabled spot reports its pointer as disabled.
156
- *
157
- * @returns Whether the off-screen pointer arrow is enabled.
158
- */
159
- public PointerEnabled(): boolean;
160
-
161
- /**
162
- * Set hint text shown for the spot.
163
- *
164
- * @remarks
165
- * Passing `disable_hint` disables hints and clears the stored hint.
166
- *
167
- * @param hint - Hint text or string table id.
168
- */
169
- public SetHint(hint: string): void;
170
-
171
- /**
172
- * Mark the spot as user-created or engine-owned.
173
- *
174
- * @param state - User-defined flag.
175
- */
176
- public SetUserDefinedFlag(state: boolean): void;
177
-
178
- /**
179
- * @remarks
180
- * Disabling a spot also makes `PointerEnabled()` return `false`.
181
- *
182
- * @returns Whether the map spot is enabled.
183
- */
184
- public SpotEnabled(): boolean;
185
-
186
- /**
187
- * @remarks
188
- * Reads the level-map spot size. Use only for location types that define a level-map spot in `map_spots.xml`.
189
- *
190
- * @returns Spot size on the map.
191
- */
192
- public SpotSize(): vector2;
193
- }
194
- }