xray16 1.6.0 → 1.6.1

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 +30847 -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,426 +0,0 @@
1
- import type { Nillable } from "../internal";
2
-
3
- declare module "xray16" {
4
- /**
5
- * XML UI initialization helper.
6
- *
7
- * @source C++ class CScriptXmlInit
8
- * @customConstructor CScriptXmlInit
9
- * @group xr_ui_core
10
- *
11
- * @remarks
12
- * Call `ParseFile()` before `Init*` helpers. Created controls are attached to `parent` when it is provided; scroll
13
- * views receive them through `AddWindow()`, other windows through `AttachChild()`. Controls created without a parent
14
- * are not attached by this helper.
15
- */
16
- export class CScriptXmlInit {
17
- /**
18
- * Create an XML initializer.
19
- */
20
- public constructor();
21
-
22
- /**
23
- * Load a UI XML file from the configured UI paths.
24
- *
25
- * @remarks
26
- * Paths are resolved through the engine config/UI path stack, including the active and default UI paths.
27
- *
28
- * @param path - XML file path.
29
- */
30
- public ParseFile(path: string): void;
31
-
32
- /**
33
- * Load shared texture metadata from an XML file.
34
- *
35
- * @remarks
36
- * Missing files are ignored by the native loader. Duplicate texture ids from this file replace existing entries.
37
- *
38
- * @param path - XML file path.
39
- */
40
- public ParseShTexInfo(path: string): void;
41
-
42
- /**
43
- * Create and initialize a button from XML.
44
- *
45
- * @remarks
46
- * The created button is marked for auto-delete by the native binding.
47
- *
48
- * @param selector - XML node path.
49
- * @param parent - Optional parent window.
50
- * @returns Created button.
51
- */
52
- public InitButton(selector: string, parent: Nillable<CUIWindow>): CUIButton;
53
-
54
- /**
55
- * Create and initialize a three-state button from XML.
56
- *
57
- * @remarks
58
- * When `parent` is provided, the created control is marked for parent-owned deletion.
59
- *
60
- * @param selector - XML node path.
61
- * @param parent - Optional parent window.
62
- * @returns Created button.
63
- */
64
- public Init3tButton(selector: string, parent: Nillable<CUIWindow>): CUI3tButton;
65
-
66
- /**
67
- * Create and initialize an animated static from XML.
68
- *
69
- * @remarks
70
- * When `parent` is provided, the created control is marked for parent-owned deletion.
71
- *
72
- * @param selector - XML node path.
73
- * @param parent - Optional parent window.
74
- * @returns Created static control.
75
- */
76
- public InitAnimStatic(selector: string, parent: Nillable<CUIWindow>): CUIStatic;
77
-
78
- /**
79
- * Create and initialize a CD key edit box from XML.
80
- *
81
- * @remarks
82
- * Assigns CD-key callbacks and applies the current option value after initialization.
83
- *
84
- * @param selector - XML node path.
85
- * @param parent - Optional parent window.
86
- * @returns Created edit box.
87
- */
88
- public InitCDkey(selector: string, parent: Nillable<CUIWindow>): CUIEditBox;
89
-
90
- /**
91
- * Create and initialize a check button from XML.
92
- *
93
- * @param selector - XML node path.
94
- * @param parent - Optional parent window.
95
- * @returns Created check button.
96
- */
97
- public InitCheck(selector: string, parent: Nillable<CUIWindow>): CUICheckButton;
98
-
99
- /**
100
- * Create and initialize a combo box from XML.
101
- *
102
- * @param selector - XML node path.
103
- * @param parent - Optional parent window.
104
- * @returns Created combo box.
105
- */
106
- public InitComboBox(selector: string, parent: Nillable<CUIWindow>): CUIComboBox;
107
-
108
- /**
109
- * Create and initialize an edit box from XML.
110
- *
111
- * @param selector - XML node path.
112
- * @param parent - Optional parent window.
113
- * @returns Created edit box.
114
- */
115
- public InitEditBox(selector: string, parent: Nillable<CUIWindow>): CUIEditBox;
116
-
117
- /**
118
- * Create and initialize a frame window from XML.
119
- *
120
- * @param selector - XML node path.
121
- * @param parent - Optional parent window.
122
- * @returns Created frame window.
123
- */
124
- public InitFrame(selector: string, parent: Nillable<CUIWindow>): CUIFrameWindow;
125
-
126
- /**
127
- * Create and initialize a frame line from XML.
128
- *
129
- * @param selector - XML node path.
130
- * @param parent - Optional parent window.
131
- * @returns Created frame line.
132
- */
133
- public InitFrameLine(selector: string, parent: Nillable<CUIWindow>): CUIFrameLineWnd;
134
-
135
- /**
136
- * Create and initialize a key binding control from XML.
137
- *
138
- * @param selector - XML node path.
139
- * @param parent - Optional parent window.
140
- * @returns Created key binding window.
141
- */
142
- public InitKeyBinding(selector: string, parent: Nillable<CUIWindow>): CUIWindow;
143
-
144
- /**
145
- * Create and initialize a label from XML.
146
- *
147
- * @param selector - XML node path.
148
- * @param parent - Optional parent window.
149
- * @returns Created label static.
150
- */
151
- public InitLabel(selector: string, parent: Nillable<CUIWindow>): CUIStatic;
152
-
153
- /**
154
- * Create and initialize a list window from XML.
155
- *
156
- * @remarks
157
- * When `parent` is provided, the created control is marked for parent-owned deletion.
158
- *
159
- * @param selector - XML node path.
160
- * @param parent - Optional parent window.
161
- * @returns Created list window.
162
- */
163
- public InitList(selector: string, parent: Nillable<CUIWindow>): CUIListWnd;
164
-
165
- /**
166
- * Create and initialize a list box from XML.
167
- *
168
- * @remarks
169
- * When `parent` is provided, the created control is marked for parent-owned deletion.
170
- *
171
- * @param selector - XML node path.
172
- * @param parent - Optional parent window.
173
- * @returns Created list box.
174
- */
175
- public InitListBox<T extends CUIListBoxItem = CUIListBoxItem>(
176
- selector: string,
177
- parent: Nillable<CUIWindow>
178
- ): CUIListBox<T>;
179
-
180
- /**
181
- * Create and initialize a main-menu shniaga control from XML.
182
- *
183
- * @param selector - XML node path.
184
- * @param parent - Optional parent window.
185
- * @returns Created main-menu shniaga control.
186
- */
187
- public InitMMShniaga(selector: string, parent: Nillable<CUIWindow>): CUIMMShniaga;
188
-
189
- /**
190
- * Create and initialize a multiplayer player-name edit box from XML.
191
- *
192
- * @param selector - XML node path.
193
- * @param parent - Optional parent window.
194
- * @returns Created edit box.
195
- */
196
- public InitMPPlayerName(selector: string, parent: Nillable<CUIWindow>): CUIEditBox;
197
-
198
- /**
199
- * Create and initialize a map info control from XML.
200
- *
201
- * @remarks
202
- * Initializes both the base window rect and the map-info content area from the XML node.
203
- *
204
- * @param selector - XML node path.
205
- * @param parent - Optional parent window.
206
- * @returns Created map info control.
207
- */
208
- public InitMapInfo(selector: string, parent: Nillable<CUIWindow>): CUIMapInfo;
209
-
210
- /**
211
- * Create and initialize a map list control from XML.
212
- *
213
- * @param selector - XML node path.
214
- * @param parent - Optional parent window.
215
- * @returns Created map list control.
216
- */
217
- public InitMapList(selector: string, parent: Nillable<CUIWindow>): CUIMapList;
218
-
219
- /**
220
- * Create and initialize a progress bar from XML.
221
- *
222
- * @param selector - XML node path.
223
- * @param parent - Optional parent window.
224
- * @returns Created progress bar.
225
- */
226
- public InitProgressBar(selector: string, parent: Nillable<CUIWindow>): CUIProgressBar;
227
-
228
- /**
229
- * Create and initialize a scroll view from XML.
230
- *
231
- * @remarks
232
- * Child controls created under this parent are added through `AddWindow()`.
233
- *
234
- * @param selector - XML node path.
235
- * @param parent - Optional parent window.
236
- * @returns Created scroll view.
237
- */
238
- public InitScrollView(selector: string, parent: Nillable<CUIWindow>): CUIScrollView;
239
-
240
- /**
241
- * Create and initialize a server list from XML.
242
- *
243
- * @param selector - XML node path.
244
- * @param parent - Optional parent window.
245
- * @returns Created server list.
246
- */
247
- public InitServerList(selector: string, parent: Nillable<CUIWindow>): CServerList;
248
-
249
- /**
250
- * Create and initialize a sleep static from XML.
251
- *
252
- * @param selector - XML node path.
253
- * @param parent - Optional parent window.
254
- * @returns Created sleep static.
255
- */
256
- public InitSleepStatic(selector: string, parent: Nillable<CUIWindow>): CUISleepStatic;
257
-
258
- /**
259
- * Create and initialize a float spin control from XML.
260
- *
261
- * @param selector - XML node path.
262
- * @param parent - Optional parent window.
263
- * @returns Created spin control.
264
- */
265
- public InitSpinFlt(selector: string, parent: Nillable<CUIWindow>): CUISpinFlt;
266
-
267
- /**
268
- * Create and initialize an integer spin control from XML.
269
- *
270
- * @param selector - XML node path.
271
- * @param parent - Optional parent window.
272
- * @returns Created spin control.
273
- */
274
- public InitSpinNum(selector: string, parent: Nillable<CUIWindow>): CUISpinNum;
275
-
276
- /**
277
- * Create and initialize a text spin control from XML.
278
- *
279
- * @param selector - XML node path.
280
- * @param parent - Optional parent window.
281
- * @returns Created spin control.
282
- */
283
- public InitSpinText(selector: string, parent: Nillable<CUIWindow>): CUISpinText;
284
-
285
- /**
286
- * Create and initialize a static control from XML.
287
- *
288
- * @remarks
289
- * `InitLabel()` is bound to the same native initializer as this method.
290
- *
291
- * @param selector - XML node path.
292
- * @param parent - Optional parent window.
293
- * @returns Created static control.
294
- */
295
- public InitStatic(selector: string, parent: Nillable<CUIWindow>): CUIStatic;
296
-
297
- /**
298
- * Create and initialize a tab control from XML.
299
- *
300
- * @param selector - XML node path.
301
- * @param parent - Optional parent window.
302
- * @returns Created tab control.
303
- */
304
- public InitTab(selector: string, parent: Nillable<CUIWindow>): CUITabControl;
305
-
306
- /**
307
- * Create and initialize a text window from XML.
308
- *
309
- * @param selector - XML node path.
310
- * @param parent - Optional parent window.
311
- * @returns Created text window.
312
- */
313
- public InitTextWnd(selector: string, parent: Nillable<CUIWindow>): CUITextWnd;
314
-
315
- /**
316
- * Create and initialize a track bar from XML.
317
- *
318
- * @param selector - XML node path.
319
- * @param parent - Optional parent window.
320
- * @returns Created track bar.
321
- */
322
- public InitTrackBar(selector: string, parent: Nillable<CUIWindow>): CUITrackBar;
323
-
324
- /**
325
- * Create and initialize a version list from XML.
326
- *
327
- * @param selector - XML node path.
328
- * @param parent - Optional parent window.
329
- * @returns Created version list.
330
- */
331
- public InitVerList(selector: string, parent: Nillable<CUIWindow>): CUIVersionList;
332
-
333
- /**
334
- * Create and initialize a hint window from XML.
335
- *
336
- * @param selector - XML node path.
337
- * @param parent - Optional parent window.
338
- * @returns Created hint window.
339
- */
340
- public InitHint(selector: string, parent: Nillable<CUIWindow>): UIHint;
341
-
342
- /**
343
- * Initialize a window already created by script.
344
- *
345
- * @remarks
346
- * This does not create a child window. It applies XML properties to the passed window and does not attach it to a
347
- * parent.
348
- *
349
- * @param selector - XML node path.
350
- * @param index - XML node index.
351
- * @param parent - Window to initialize.
352
- */
353
- public InitWindow(selector: string, index: i32, parent: Nillable<CUIWindow>): void;
354
-
355
- /**
356
- * Initialize a group of auto-created static controls under an existing window.
357
- *
358
- * @remarks
359
- * Reads static child definitions from the selected XML node and attaches them to `parent`. Requires a non-null
360
- * parent window.
361
- *
362
- * @param selector - XML node path.
363
- * @param parent - Parent window.
364
- */
365
- public InitAutoStaticGroup(selector: string, parent: CUIWindow): void;
366
- }
367
-
368
- /**
369
- * Move a window so it fits inside a rectangle.
370
- *
371
- * @group xr_ui_core
372
- *
373
- * @remarks
374
- * The window may be moved; its size is not changed.
375
- *
376
- * @param window - Window to fit.
377
- * @param rect - Bounding rectangle.
378
- * @param horizontal_align - Horizontal alignment hint.
379
- * @param vertical_align - Vertical alignment hint.
380
- * @returns Whether the window was adjusted.
381
- */
382
- export function FitInRect(
383
- this: void,
384
- window: CUIWindow,
385
- rect: Frect,
386
- horizontal_align: number,
387
- vertical_align: number
388
- ): boolean;
389
-
390
- /**
391
- * Get the texture rectangle for a UI atlas entry.
392
- *
393
- * @group xr_ui_core
394
- *
395
- * @remarks
396
- * Uses the engine's fatal texture lookup path when the atlas entry is missing.
397
- *
398
- * @param name - Texture atlas entry name.
399
- * @returns Texture rectangle.
400
- */
401
- export function GetTextureRect(this: void, name: string): Frect;
402
-
403
- /**
404
- * Get current UI cursor position.
405
- *
406
- * @group xr_ui_core
407
- *
408
- * @remarks
409
- * Coordinates are in the engine UI coordinate space, not raw window pixels.
410
- *
411
- * @returns Cursor position.
412
- */
413
- export function GetCursorPosition(this: void): vector2;
414
-
415
- /**
416
- * Set current UI cursor position.
417
- *
418
- * @group xr_ui_core
419
- *
420
- * @remarks
421
- * The engine also moves the system cursor when the UI cursor is bound to it.
422
- *
423
- * @param position - Cursor position.
424
- */
425
- export function SetCursorPosition(this: void, position: vector2): void;
426
- }