xray16 1.4.0 → 1.5.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.
- package/package.json +1 -1
- package/types/xr_ai/xr_action.d.ts +1321 -29
- package/types/xr_ai/xr_alife.d.ts +1336 -32
- package/types/xr_ai/xr_enemy_evaluation.d.ts +112 -19
- package/types/xr_ai/xr_goap.d.ts +450 -3
- package/types/xr_ai/xr_graph.d.ts +94 -6
- package/types/xr_ai/xr_memory.d.ts +240 -6
- package/types/xr_lib/xr_animation.d.ts +185 -14
- package/types/xr_lib/xr_bitwise.d.ts +20 -8
- package/types/xr_lib/xr_color.d.ts +103 -6
- package/types/xr_lib/xr_debug.d.ts +110 -12
- package/types/xr_lib/xr_dialog.d.ts +99 -7
- package/types/xr_lib/xr_flags.d.ts +78 -15
- package/types/xr_lib/xr_fs.d.ts +395 -5
- package/types/xr_lib/xr_game.d.ts +101 -0
- package/types/xr_lib/xr_hit.d.ts +84 -0
- package/types/xr_lib/xr_ini.d.ts +60 -2
- package/types/xr_lib/xr_level.d.ts +182 -39
- package/types/xr_lib/xr_luabind.d.ts +37 -11
- package/types/xr_lib/xr_map.d.ts +137 -6
- package/types/xr_lib/xr_math.d.ts +56 -0
- package/types/xr_lib/xr_multiplayer.d.ts +729 -1
- package/types/xr_lib/xr_profile.d.ts +80 -0
- package/types/xr_lib/xr_properties.d.ts +159 -4
- package/types/xr_lib/xr_relation.d.ts +147 -0
- package/types/xr_lib/xr_render.d.ts +99 -3
- package/types/xr_lib/xr_save.d.ts +110 -4
- package/types/xr_lib/xr_sound.d.ts +373 -9
- package/types/xr_lib/xr_stats.ts +33 -4
- package/types/xr_lib/xr_task.d.ts +277 -0
- package/types/xr_lib/xr_time.d.ts +11 -0
- package/types/xr_object/client/xr_anomaly.d.ts +20 -0
- package/types/xr_object/client/xr_artefact.d.ts +57 -2
- package/types/xr_object/client/xr_client_object.d.ts +131 -0
- package/types/xr_object/client/xr_creature.d.ts +79 -0
- package/types/xr_object/client/xr_item.d.ts +108 -2
- package/types/xr_object/client/xr_level.d.ts +482 -14
- package/types/xr_object/client/xr_physic.d.ts +459 -29
- package/types/xr_object/client/xr_zone.d.ts +38 -0
- package/types/xr_object/script/xr_script_interface.d.ts +236 -1
- package/types/xr_object/script/xr_script_object.d.ts +3402 -82
- package/types/xr_object/script/xr_script_trade.d.ts +25 -15
- package/types/xr_object/server/xr_server_object.d.ts +707 -15
- package/types/xr_ui/xr_ui_asset.d.ts +241 -6
- package/types/xr_ui/xr_ui_core.d.ts +327 -9
- package/types/xr_ui/xr_ui_event.d.ts +1067 -1
- package/types/xr_ui/xr_ui_interface.d.ts +1563 -17
- package/types/xr_ui/xr_ui_menu.d.ts +259 -16
- package/types/xrf_plugin.d.ts +44 -14
|
@@ -1,41 +1,134 @@
|
|
|
1
1
|
declare module "xray16" {
|
|
2
2
|
/**
|
|
3
|
+
* Enemy evaluation storage binding.
|
|
4
|
+
*
|
|
3
5
|
* @source C++ class cef_storage
|
|
4
6
|
* @customConstructor cef_storage
|
|
5
7
|
* @group xr_enemy_evaluation
|
|
6
8
|
*/
|
|
7
9
|
export class cef_storage extends EngineBinding {
|
|
10
|
+
/**
|
|
11
|
+
* Engine-owned evaluation function storage.
|
|
12
|
+
*/
|
|
8
13
|
private constructor();
|
|
9
14
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
+
*/
|
|
13
64
|
public evaluate(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
65
|
+
functionName: string,
|
|
66
|
+
member: game_object,
|
|
67
|
+
enemy: game_object,
|
|
68
|
+
memberItem: game_object,
|
|
69
|
+
enemyItem: game_object
|
|
19
70
|
): f32;
|
|
20
|
-
|
|
21
|
-
|
|
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
|
+
*/
|
|
22
100
|
public evaluate(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
101
|
+
functionName: string,
|
|
102
|
+
member: cse_alife_object,
|
|
103
|
+
enemy: cse_alife_object,
|
|
104
|
+
memberItem: cse_alife_object
|
|
27
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
|
+
*/
|
|
28
117
|
public evaluate(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
118
|
+
functionName: string,
|
|
119
|
+
member: cse_alife_object,
|
|
120
|
+
enemy: cse_alife_object,
|
|
121
|
+
memberItem: cse_alife_object,
|
|
122
|
+
enemyItem: cse_alife_object
|
|
34
123
|
): f32;
|
|
35
124
|
}
|
|
36
125
|
|
|
37
126
|
/**
|
|
127
|
+
* Get the global storage for engine evaluation functions.
|
|
128
|
+
*
|
|
38
129
|
* @group xr_enemy_evaluation
|
|
130
|
+
*
|
|
131
|
+
* @returns Evaluation function storage singleton.
|
|
39
132
|
*/
|
|
40
133
|
export function ef_storage(this: void): cef_storage;
|
|
41
134
|
}
|