xray16 1.0.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 (58) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +57 -0
  3. package/package.json +38 -0
  4. package/plugins/built_at_info.ts +18 -0
  5. package/plugins/from_cast_utils.ts +34 -0
  6. package/plugins/global_declarations_transform.ts +24 -0
  7. package/plugins/inject_filename.ts +22 -0
  8. package/plugins/strip_lua_logger.ts +73 -0
  9. package/plugins/transform_luabind_class/plugin.ts +51 -0
  10. package/plugins/transform_luabind_class/transformation/class_declaration.ts +226 -0
  11. package/plugins/transform_luabind_class/transformation/constants.ts +4 -0
  12. package/plugins/transform_luabind_class/transformation/decorators.ts +16 -0
  13. package/plugins/transform_luabind_class/transformation/errors.ts +31 -0
  14. package/plugins/transform_luabind_class/transformation/index.ts +5 -0
  15. package/plugins/transform_luabind_class/transformation/members/accessors.ts +48 -0
  16. package/plugins/transform_luabind_class/transformation/members/constructor.ts +107 -0
  17. package/plugins/transform_luabind_class/transformation/members/fields.ts +53 -0
  18. package/plugins/transform_luabind_class/transformation/members/method.ts +70 -0
  19. package/plugins/transform_luabind_class/transformation/new.ts +14 -0
  20. package/plugins/transform_luabind_class/transformation/setup.ts +128 -0
  21. package/plugins/transform_luabind_class/transformation/super.ts +92 -0
  22. package/plugins/transform_luabind_class/transformation/utils.ts +90 -0
  23. package/plugins/utils/diagnostics.ts +24 -0
  24. package/src/index.d.ts +63 -0
  25. package/src/xr_constant.d.ts +976 -0
  26. package/src/xr_core.d.ts +347 -0
  27. package/src/xr_global.d.ts +613 -0
  28. package/src/xr_lib/xr_fs.d.ts +333 -0
  29. package/src/xr_lib/xr_math.d.ts +165 -0
  30. package/src/xr_lib/xr_utils.d.ts +407 -0
  31. package/src/xr_luabind.d.ts +34 -0
  32. package/src/xr_map/xr_map.d.ts +42 -0
  33. package/src/xr_object/xr_action.d.ts +482 -0
  34. package/src/xr_object/xr_alife.d.ts +206 -0
  35. package/src/xr_object/xr_anomaly.d.ts +50 -0
  36. package/src/xr_object/xr_artefact.d.ts +98 -0
  37. package/src/xr_object/xr_client_object.d.ts +1255 -0
  38. package/src/xr_object/xr_creature.d.ts +157 -0
  39. package/src/xr_object/xr_dialog.d.ts +34 -0
  40. package/src/xr_object/xr_item.d.ts +239 -0
  41. package/src/xr_object/xr_level.d.ts +166 -0
  42. package/src/xr_object/xr_physic.d.ts +119 -0
  43. package/src/xr_object/xr_quest.d.ts +47 -0
  44. package/src/xr_object/xr_server_object.d.ts +686 -0
  45. package/src/xr_online/xr_multiplayer.d.ts +299 -0
  46. package/src/xr_sound/xr_sound.d.ts +153 -0
  47. package/src/xr_type/xr_enums.d.ts +17 -0
  48. package/src/xr_type/xr_type.d.ts +70 -0
  49. package/src/xr_ui/README.md +277 -0
  50. package/src/xr_ui/demo/CServerList.png +0 -0
  51. package/src/xr_ui/demo/CUI3tButton.png +0 -0
  52. package/src/xr_ui/demo/CUICheckButton.png +0 -0
  53. package/src/xr_ui/demo/CUIComboBox.png +0 -0
  54. package/src/xr_ui/demo/CUICustomEdit.png +0 -0
  55. package/src/xr_ui/demo/CUIStatic.png +0 -0
  56. package/src/xr_ui/demo/CUITrackBar.png +0 -0
  57. package/src/xr_ui/xr_ui_core.d.ts +185 -0
  58. package/src/xr_ui/xr_ui_interface.d.ts +666 -0
package/src/index.d.ts ADDED
@@ -0,0 +1,63 @@
1
+ /// <reference path="./xr_lib/xr_fs.d.ts" />
2
+ /// <reference path="./xr_lib/xr_math.d.ts" />
3
+ /// <reference path="./xr_lib/xr_utils.d.ts" />
4
+ /// <reference path="./xr_map/xr_map.d.ts" />
5
+ /// <reference path="./xr_object/xr_action.d.ts" />
6
+ /// <reference path="./xr_object/xr_alife.d.ts" />
7
+ /// <reference path="./xr_object/xr_anomaly.d.ts" />
8
+ /// <reference path="./xr_object/xr_artefact.d.ts" />
9
+ /// <reference path="./xr_object/xr_client_object.d.ts" />
10
+ /// <reference path="./xr_object/xr_creature.d.ts" />
11
+ /// <reference path="./xr_object/xr_dialog.d.ts" />
12
+ /// <reference path="./xr_object/xr_item.d.ts" />
13
+ /// <reference path="./xr_object/xr_level.d.ts" />
14
+ /// <reference path="./xr_object/xr_physic.d.ts" />
15
+ /// <reference path="./xr_object/xr_quest.d.ts" />
16
+ /// <reference path="./xr_object/xr_server_object.d.ts" />
17
+ /// <reference path="./xr_online/xr_multiplayer.d.ts" />
18
+ /// <reference path="./xr_sound/xr_sound.d.ts" />
19
+ /// <reference path="./xr_type/xr_enums.d.ts" />
20
+ /// <reference path="./xr_type/xr_type.d.ts" />
21
+ /// <reference path="./xr_ui/xr_ui_core.d.ts" />
22
+ /// <reference path="./xr_ui/xr_ui_interface.d.ts" />
23
+ /// <reference path="./xr_constant.d.ts" />
24
+ /// <reference path="./xr_core.d.ts" />
25
+ /// <reference path="./xr_global.d.ts" />
26
+ /// <reference path="./xr_luabind.d.ts" />
27
+
28
+ declare module "xray16" {
29
+ /**
30
+ * @group export
31
+ */
32
+ export const actor_stats: IXR_actor_stats;
33
+
34
+ /**
35
+ * @group export
36
+ */
37
+ export const ActorMenu: IXR_ActorMenu;
38
+
39
+ /**
40
+ * @group export
41
+ */
42
+ export const game: IXR_game;
43
+
44
+ /**
45
+ * @group export
46
+ */
47
+ export const level: IXR_level;
48
+
49
+ /**
50
+ * @group export
51
+ */
52
+ export const main_menu: IXR_main_menu;
53
+
54
+ /**
55
+ * @group export
56
+ */
57
+ export const object: typeof XR_object;
58
+
59
+ /**
60
+ * @group export
61
+ */
62
+ export const relation_registry: IXR_relation_registry;
63
+ }