xray16 1.3.4 → 1.5.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 +1802 -510
  37. package/types/xr_ai/xr_alife.d.ts +1870 -566
  38. package/types/xr_ai/xr_enemy_evaluation.d.ts +134 -41
  39. package/types/xr_ai/xr_goap.d.ts +1116 -668
  40. package/types/xr_ai/xr_graph.d.ts +135 -47
  41. package/types/xr_ai/xr_memory.d.ts +382 -148
  42. package/types/xr_lib/xr_animation.d.ts +252 -81
  43. package/types/xr_lib/xr_bitwise.d.ts +44 -21
  44. package/types/xr_lib/xr_color.d.ts +142 -40
  45. package/types/xr_lib/xr_debug.d.ts +181 -77
  46. package/types/xr_lib/xr_dialog.d.ts +132 -40
  47. package/types/xr_lib/xr_flags.d.ts +592 -148
  48. package/types/xr_lib/xr_fs.d.ts +539 -148
  49. package/types/xr_lib/xr_game.d.ts +362 -158
  50. package/types/xr_lib/xr_hit.d.ts +125 -41
  51. package/types/xr_lib/xr_ini.d.ts +473 -188
  52. package/types/xr_lib/xr_level.d.ts +795 -225
  53. package/types/xr_lib/xr_luabind.d.ts +90 -59
  54. package/types/xr_lib/xr_map.d.ts +192 -61
  55. package/types/xr_lib/xr_math.d.ts +871 -233
  56. package/types/xr_lib/xr_multiplayer.d.ts +1079 -351
  57. package/types/xr_lib/xr_profile.d.ts +272 -160
  58. package/types/xr_lib/xr_properties.d.ts +610 -166
  59. package/types/xr_lib/xr_relation.d.ts +231 -84
  60. package/types/xr_lib/xr_render.d.ts +167 -69
  61. package/types/xr_lib/xr_save.d.ts +833 -223
  62. package/types/xr_lib/xr_sound.d.ts +515 -151
  63. package/types/xr_lib/xr_stats.ts +49 -20
  64. package/types/xr_lib/xr_task.d.ts +388 -111
  65. package/types/xr_lib/xr_time.d.ts +177 -61
  66. package/types/xr_lib/xr_type.d.ts +75 -75
  67. package/types/xr_object/client/xr_anomaly.d.ts +70 -50
  68. package/types/xr_object/client/xr_artefact.d.ts +153 -98
  69. package/types/xr_object/client/xr_client_object.d.ts +207 -76
  70. package/types/xr_object/client/xr_creature.d.ts +243 -164
  71. package/types/xr_object/client/xr_item.d.ts +370 -264
  72. package/types/xr_object/client/xr_level.d.ts +753 -285
  73. package/types/xr_object/client/xr_physic.d.ts +644 -214
  74. package/types/xr_object/client/xr_zone.d.ts +85 -47
  75. package/types/xr_object/script/xr_script_interface.d.ts +819 -584
  76. package/types/xr_object/script/xr_script_object.d.ts +5728 -1390
  77. package/types/xr_object/script/xr_script_trade.d.ts +51 -26
  78. package/types/xr_object/server/xr_server_object.d.ts +1486 -792
  79. package/types/xr_ui/xr_ui_asset.d.ts +364 -123
  80. package/types/xr_ui/xr_ui_core.d.ts +424 -97
  81. package/types/xr_ui/xr_ui_event.d.ts +1449 -381
  82. package/types/xr_ui/xr_ui_interface.d.ts +2447 -903
  83. package/types/xr_ui/xr_ui_menu.d.ts +385 -142
  84. package/types/xrf_plugin.d.ts +89 -51
@@ -1,41 +1,134 @@
1
- declare module "xray16" {
2
- /**
3
- * @source C++ class cef_storage
4
- * @customConstructor cef_storage
5
- * @group xr_enemy_evaluation
6
- */
7
- export class cef_storage extends EngineBinding {
8
- private constructor();
9
-
10
- public evaluate(str: string, game_object: game_object): f32;
11
- public evaluate(str: string, game_object1: game_object, game_object2: game_object): f32;
12
- public evaluate(str: string, game_object1: game_object, game_object2: game_object, game_object3: game_object): f32;
13
- public evaluate(
14
- str: string,
15
- game_object1: game_object,
16
- game_object2: game_object,
17
- game_object3: game_object,
18
- game_object4: game_object
19
- ): f32;
20
- public evaluate(str: string, cse_alife_object: cse_alife_object): f32;
21
- public evaluate(str: string, cse_alife_object1: cse_alife_object, cse_alife_object2: cse_alife_object): f32;
22
- public evaluate(
23
- str: string,
24
- cse_alife_object1: cse_alife_object,
25
- cse_alife_object2: cse_alife_object,
26
- cse_alife_object3: cse_alife_object
27
- ): f32;
28
- public evaluate(
29
- str: string,
30
- cse_alife_object1: cse_alife_object,
31
- cse_alife_object2: cse_alife_object,
32
- cse_alife_object3: cse_alife_object,
33
- cse_alife_object4: cse_alife_object
34
- ): f32;
35
- }
36
-
37
- /**
38
- * @group xr_enemy_evaluation
39
- */
40
- export function ef_storage(this: void): cef_storage;
41
- }
1
+ declare module "xray16" {
2
+ /**
3
+ * Enemy evaluation storage binding.
4
+ *
5
+ * @source C++ class cef_storage
6
+ * @customConstructor cef_storage
7
+ * @group xr_enemy_evaluation
8
+ */
9
+ export class cef_storage extends EngineBinding {
10
+ /**
11
+ * Engine-owned evaluation function storage.
12
+ */
13
+ private constructor();
14
+
15
+ /**
16
+ * Run an evaluation function for a live game object.
17
+ *
18
+ * @remarks Prefer the four-object overload for non-ALife item evaluators; shorter engine overloads do not fill
19
+ * item slots.
20
+ *
21
+ * @param functionName - Registered evaluation function name.
22
+ * @param member - Object used as the evaluating actor.
23
+ * @returns Function score, or `0` when the function or object role is invalid.
24
+ */
25
+ public evaluate(functionName: string, member: game_object): f32;
26
+
27
+ /**
28
+ * Run an evaluation function for a live actor and enemy pair.
29
+ *
30
+ * @remarks Prefer the four-object overload for non-ALife item evaluators; shorter engine overloads do not fill
31
+ * item slots.
32
+ *
33
+ * @param functionName - Registered evaluation function name.
34
+ * @param member - Object used as the evaluating actor.
35
+ * @param enemy - Object used as the target.
36
+ * @returns Function score, or `0` when the function or object role is invalid.
37
+ */
38
+ public evaluate(functionName: string, member: game_object, enemy: game_object): f32;
39
+
40
+ /**
41
+ * Run an evaluation function for a live actor, target, and actor item.
42
+ *
43
+ * @remarks Prefer the four-object overload for non-ALife item evaluators; shorter engine overloads do not fill
44
+ * item slots.
45
+ *
46
+ * @param functionName - Registered evaluation function name.
47
+ * @param member - Object used as the evaluating actor.
48
+ * @param enemy - Object used as the target.
49
+ * @param memberItem - Item owned or considered by the evaluating actor.
50
+ * @returns Function score, or `0` when the function or object role is invalid.
51
+ */
52
+ public evaluate(functionName: string, member: game_object, enemy: game_object, memberItem: game_object): f32;
53
+
54
+ /**
55
+ * Run an evaluation function for live actor and target context.
56
+ *
57
+ * @param functionName - Registered evaluation function name.
58
+ * @param member - Object used as the evaluating actor.
59
+ * @param enemy - Object used as the target.
60
+ * @param memberItem - Item owned or considered by the evaluating actor.
61
+ * @param enemyItem - Item owned or considered by the target.
62
+ * @returns Function score, or `0` when the function or object role is invalid.
63
+ */
64
+ public evaluate(
65
+ functionName: string,
66
+ member: game_object,
67
+ enemy: game_object,
68
+ memberItem: game_object,
69
+ enemyItem: game_object
70
+ ): f32;
71
+
72
+ /**
73
+ * Run an evaluation function for an ALife object.
74
+ *
75
+ * @param functionName - Registered evaluation function name.
76
+ * @param member - Object used as the evaluating actor.
77
+ * @returns Function score, or `0` when the function or object role is invalid.
78
+ */
79
+ public evaluate(functionName: string, member: cse_alife_object): f32;
80
+
81
+ /**
82
+ * Run an evaluation function for an ALife actor and enemy pair.
83
+ *
84
+ * @param functionName - Registered evaluation function name.
85
+ * @param member - Object used as the evaluating actor.
86
+ * @param enemy - Object used as the target.
87
+ * @returns Function score, or `0` when the function or object role is invalid.
88
+ */
89
+ public evaluate(functionName: string, member: cse_alife_object, enemy: cse_alife_object): f32;
90
+
91
+ /**
92
+ * Run an evaluation function for ALife actor, target, and actor item context.
93
+ *
94
+ * @param functionName - Registered evaluation function name.
95
+ * @param member - Object used as the evaluating actor.
96
+ * @param enemy - Object used as the target.
97
+ * @param memberItem - Item owned or considered by the evaluating actor.
98
+ * @returns Function score, or `0` when the function or object role is invalid.
99
+ */
100
+ public evaluate(
101
+ functionName: string,
102
+ member: cse_alife_object,
103
+ enemy: cse_alife_object,
104
+ memberItem: cse_alife_object
105
+ ): f32;
106
+
107
+ /**
108
+ * Run an evaluation function for full ALife actor and target context.
109
+ *
110
+ * @param functionName - Registered evaluation function name.
111
+ * @param member - Object used as the evaluating actor.
112
+ * @param enemy - Object used as the target.
113
+ * @param memberItem - Item owned or considered by the evaluating actor.
114
+ * @param enemyItem - Item owned or considered by the target.
115
+ * @returns Function score, or `0` when the function or object role is invalid.
116
+ */
117
+ public evaluate(
118
+ functionName: string,
119
+ member: cse_alife_object,
120
+ enemy: cse_alife_object,
121
+ memberItem: cse_alife_object,
122
+ enemyItem: cse_alife_object
123
+ ): f32;
124
+ }
125
+
126
+ /**
127
+ * Get the global storage for engine evaluation functions.
128
+ *
129
+ * @group xr_enemy_evaluation
130
+ *
131
+ * @returns Evaluation function storage singleton.
132
+ */
133
+ export function ef_storage(this: void): cef_storage;
134
+ }