@blamnetwork/blf 1.0.0-alpha.4 → 1.0.0-alpha.5
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/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_survival_variant.d.ts +2 -1
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_survival_variant.d.ts.map +1 -1
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_survival_variant.js +4 -3
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/game_engine_enums.d.ts +45 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/game_engine_enums.d.ts.map +1 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/game_engine_enums.js +60 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/index.d.ts +1 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/index.d.ts.map +1 -1
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/index.js +1 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/index.d.ts +1 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/index.d.ts.map +1 -1
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/index.js +1 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_actions.d.ts +16 -14
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_actions.d.ts.map +1 -1
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_actions.js +61 -55
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_conditions.d.ts +2 -1
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_conditions.d.ts.map +1 -1
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_conditions.js +4 -3
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_enums.d.ts +170 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_enums.d.ts.map +1 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_enums.js +191 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_references.d.ts +5 -3
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_references.d.ts.map +1 -1
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_references.js +11 -9
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_text.d.ts +2 -1
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_text.d.ts.map +1 -1
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_text.js +6 -5
- package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_survival_variant.js +4 -3
- package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/game_engine_enums.js +64 -0
- package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/index.js +1 -0
- package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/index.js +1 -0
- package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_actions.js +61 -55
- package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_conditions.js +4 -3
- package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_enums.js +195 -0
- package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_references.js +15 -10
- package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_text.js +6 -5
- package/package.json +1 -1
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
export var e_explicit_team_type;
|
|
2
|
+
(function (e_explicit_team_type) {
|
|
3
|
+
e_explicit_team_type[e_explicit_team_type["no_team"] = 0] = "no_team";
|
|
4
|
+
e_explicit_team_type[e_explicit_team_type["team_0"] = 1] = "team_0";
|
|
5
|
+
e_explicit_team_type[e_explicit_team_type["team_1"] = 2] = "team_1";
|
|
6
|
+
e_explicit_team_type[e_explicit_team_type["team_2"] = 3] = "team_2";
|
|
7
|
+
e_explicit_team_type[e_explicit_team_type["team_3"] = 4] = "team_3";
|
|
8
|
+
e_explicit_team_type[e_explicit_team_type["team_4"] = 5] = "team_4";
|
|
9
|
+
e_explicit_team_type[e_explicit_team_type["team_5"] = 6] = "team_5";
|
|
10
|
+
e_explicit_team_type[e_explicit_team_type["team_6"] = 7] = "team_6";
|
|
11
|
+
e_explicit_team_type[e_explicit_team_type["team_7"] = 8] = "team_7";
|
|
12
|
+
e_explicit_team_type[e_explicit_team_type["neutral_team"] = 9] = "neutral_team";
|
|
13
|
+
e_explicit_team_type[e_explicit_team_type["global_0"] = 10] = "global_0";
|
|
14
|
+
e_explicit_team_type[e_explicit_team_type["global_1"] = 11] = "global_1";
|
|
15
|
+
e_explicit_team_type[e_explicit_team_type["global_2"] = 12] = "global_2";
|
|
16
|
+
e_explicit_team_type[e_explicit_team_type["global_3"] = 13] = "global_3";
|
|
17
|
+
e_explicit_team_type[e_explicit_team_type["global_4"] = 14] = "global_4";
|
|
18
|
+
e_explicit_team_type[e_explicit_team_type["global_5"] = 15] = "global_5";
|
|
19
|
+
e_explicit_team_type[e_explicit_team_type["global_6"] = 16] = "global_6";
|
|
20
|
+
e_explicit_team_type[e_explicit_team_type["global_7"] = 17] = "global_7";
|
|
21
|
+
e_explicit_team_type[e_explicit_team_type["current"] = 18] = "current";
|
|
22
|
+
e_explicit_team_type[e_explicit_team_type["hud_player_owner_team"] = 19] = "hud_player_owner_team";
|
|
23
|
+
e_explicit_team_type[e_explicit_team_type["hud_target_player_owner_team"] = 20] = "hud_target_player_owner_team";
|
|
24
|
+
})(e_explicit_team_type || (e_explicit_team_type = {}));
|
|
25
|
+
export var e_explicit_player_type;
|
|
26
|
+
(function (e_explicit_player_type) {
|
|
27
|
+
e_explicit_player_type[e_explicit_player_type["no_player"] = 0] = "no_player";
|
|
28
|
+
e_explicit_player_type[e_explicit_player_type["player_0"] = 1] = "player_0";
|
|
29
|
+
e_explicit_player_type[e_explicit_player_type["player_1"] = 2] = "player_1";
|
|
30
|
+
e_explicit_player_type[e_explicit_player_type["player_2"] = 3] = "player_2";
|
|
31
|
+
e_explicit_player_type[e_explicit_player_type["player_3"] = 4] = "player_3";
|
|
32
|
+
e_explicit_player_type[e_explicit_player_type["player_4"] = 5] = "player_4";
|
|
33
|
+
e_explicit_player_type[e_explicit_player_type["player_5"] = 6] = "player_5";
|
|
34
|
+
e_explicit_player_type[e_explicit_player_type["player_6"] = 7] = "player_6";
|
|
35
|
+
e_explicit_player_type[e_explicit_player_type["player_7"] = 8] = "player_7";
|
|
36
|
+
e_explicit_player_type[e_explicit_player_type["player_8"] = 9] = "player_8";
|
|
37
|
+
e_explicit_player_type[e_explicit_player_type["player_9"] = 10] = "player_9";
|
|
38
|
+
e_explicit_player_type[e_explicit_player_type["player_10"] = 11] = "player_10";
|
|
39
|
+
e_explicit_player_type[e_explicit_player_type["player_11"] = 12] = "player_11";
|
|
40
|
+
e_explicit_player_type[e_explicit_player_type["player_12"] = 13] = "player_12";
|
|
41
|
+
e_explicit_player_type[e_explicit_player_type["player_13"] = 14] = "player_13";
|
|
42
|
+
e_explicit_player_type[e_explicit_player_type["player_14"] = 15] = "player_14";
|
|
43
|
+
e_explicit_player_type[e_explicit_player_type["player_15"] = 16] = "player_15";
|
|
44
|
+
e_explicit_player_type[e_explicit_player_type["global_0"] = 17] = "global_0";
|
|
45
|
+
e_explicit_player_type[e_explicit_player_type["global_1"] = 18] = "global_1";
|
|
46
|
+
e_explicit_player_type[e_explicit_player_type["global_2"] = 19] = "global_2";
|
|
47
|
+
e_explicit_player_type[e_explicit_player_type["global_3"] = 20] = "global_3";
|
|
48
|
+
e_explicit_player_type[e_explicit_player_type["global_4"] = 21] = "global_4";
|
|
49
|
+
e_explicit_player_type[e_explicit_player_type["global_5"] = 22] = "global_5";
|
|
50
|
+
e_explicit_player_type[e_explicit_player_type["global_6"] = 23] = "global_6";
|
|
51
|
+
e_explicit_player_type[e_explicit_player_type["global_7"] = 24] = "global_7";
|
|
52
|
+
e_explicit_player_type[e_explicit_player_type["current"] = 25] = "current";
|
|
53
|
+
e_explicit_player_type[e_explicit_player_type["hud"] = 26] = "hud";
|
|
54
|
+
e_explicit_player_type[e_explicit_player_type["hud_target"] = 27] = "hud_target";
|
|
55
|
+
e_explicit_player_type[e_explicit_player_type["killer"] = 28] = "killer";
|
|
56
|
+
})(e_explicit_player_type || (e_explicit_player_type = {}));
|
|
57
|
+
export var e_explicit_object_type;
|
|
58
|
+
(function (e_explicit_object_type) {
|
|
59
|
+
e_explicit_object_type[e_explicit_object_type["no_object"] = 0] = "no_object";
|
|
60
|
+
e_explicit_object_type[e_explicit_object_type["global_0"] = 1] = "global_0";
|
|
61
|
+
e_explicit_object_type[e_explicit_object_type["global_1"] = 2] = "global_1";
|
|
62
|
+
e_explicit_object_type[e_explicit_object_type["global_2"] = 3] = "global_2";
|
|
63
|
+
e_explicit_object_type[e_explicit_object_type["global_3"] = 4] = "global_3";
|
|
64
|
+
e_explicit_object_type[e_explicit_object_type["global_4"] = 5] = "global_4";
|
|
65
|
+
e_explicit_object_type[e_explicit_object_type["global_5"] = 6] = "global_5";
|
|
66
|
+
e_explicit_object_type[e_explicit_object_type["global_6"] = 7] = "global_6";
|
|
67
|
+
e_explicit_object_type[e_explicit_object_type["global_7"] = 8] = "global_7";
|
|
68
|
+
e_explicit_object_type[e_explicit_object_type["global_8"] = 9] = "global_8";
|
|
69
|
+
e_explicit_object_type[e_explicit_object_type["global_9"] = 10] = "global_9";
|
|
70
|
+
e_explicit_object_type[e_explicit_object_type["global_10"] = 11] = "global_10";
|
|
71
|
+
e_explicit_object_type[e_explicit_object_type["global_11"] = 12] = "global_11";
|
|
72
|
+
e_explicit_object_type[e_explicit_object_type["global_12"] = 13] = "global_12";
|
|
73
|
+
e_explicit_object_type[e_explicit_object_type["global_13"] = 14] = "global_13";
|
|
74
|
+
e_explicit_object_type[e_explicit_object_type["global_14"] = 15] = "global_14";
|
|
75
|
+
e_explicit_object_type[e_explicit_object_type["global_15"] = 16] = "global_15";
|
|
76
|
+
e_explicit_object_type[e_explicit_object_type["current"] = 17] = "current";
|
|
77
|
+
e_explicit_object_type[e_explicit_object_type["hud_target"] = 18] = "hud_target";
|
|
78
|
+
e_explicit_object_type[e_explicit_object_type["killed"] = 19] = "killed";
|
|
79
|
+
e_explicit_object_type[e_explicit_object_type["killer"] = 20] = "killer";
|
|
80
|
+
e_explicit_object_type[e_explicit_object_type["unknown_21"] = 21] = "unknown_21";
|
|
81
|
+
})(e_explicit_object_type || (e_explicit_object_type = {}));
|
|
82
|
+
export var e_action_team_or_player_target;
|
|
83
|
+
(function (e_action_team_or_player_target) {
|
|
84
|
+
e_action_team_or_player_target[e_action_team_or_player_target["team"] = 0] = "team";
|
|
85
|
+
e_action_team_or_player_target[e_action_team_or_player_target["player"] = 1] = "player";
|
|
86
|
+
e_action_team_or_player_target[e_action_team_or_player_target["all_players"] = 2] = "all_players";
|
|
87
|
+
})(e_action_team_or_player_target || (e_action_team_or_player_target = {}));
|
|
88
|
+
export var e_math_operation;
|
|
89
|
+
(function (e_math_operation) {
|
|
90
|
+
e_math_operation[e_math_operation["add"] = 0] = "add";
|
|
91
|
+
e_math_operation[e_math_operation["subtract"] = 1] = "subtract";
|
|
92
|
+
e_math_operation[e_math_operation["multiply_by"] = 2] = "multiply_by";
|
|
93
|
+
e_math_operation[e_math_operation["divide_by"] = 3] = "divide_by";
|
|
94
|
+
e_math_operation[e_math_operation["set_to"] = 4] = "set_to";
|
|
95
|
+
e_math_operation[e_math_operation["modulo_by"] = 5] = "modulo_by";
|
|
96
|
+
e_math_operation[e_math_operation["bitwise_and_with"] = 6] = "bitwise_and_with";
|
|
97
|
+
e_math_operation[e_math_operation["bitwise_or_with"] = 7] = "bitwise_or_with";
|
|
98
|
+
e_math_operation[e_math_operation["bitwise_xor_with"] = 8] = "bitwise_xor_with";
|
|
99
|
+
e_math_operation[e_math_operation["bitwise_not_with"] = 9] = "bitwise_not_with";
|
|
100
|
+
})(e_math_operation || (e_math_operation = {}));
|
|
101
|
+
export var e_grenade_type;
|
|
102
|
+
(function (e_grenade_type) {
|
|
103
|
+
e_grenade_type[e_grenade_type["frag_grenade"] = 0] = "frag_grenade";
|
|
104
|
+
e_grenade_type[e_grenade_type["plasma_grenade"] = 1] = "plasma_grenade";
|
|
105
|
+
})(e_grenade_type || (e_grenade_type = {}));
|
|
106
|
+
export var e_biped_give_weapon_mode;
|
|
107
|
+
(function (e_biped_give_weapon_mode) {
|
|
108
|
+
e_biped_give_weapon_mode[e_biped_give_weapon_mode["as_primary_weapon"] = 0] = "as_primary_weapon";
|
|
109
|
+
e_biped_give_weapon_mode[e_biped_give_weapon_mode["normally"] = 1] = "normally";
|
|
110
|
+
e_biped_give_weapon_mode[e_biped_give_weapon_mode["silently"] = 2] = "silently";
|
|
111
|
+
})(e_biped_give_weapon_mode || (e_biped_give_weapon_mode = {}));
|
|
112
|
+
export var e_player_filter_type;
|
|
113
|
+
(function (e_player_filter_type) {
|
|
114
|
+
e_player_filter_type[e_player_filter_type["no_one"] = 0] = "no_one";
|
|
115
|
+
e_player_filter_type[e_player_filter_type["everyone"] = 1] = "everyone";
|
|
116
|
+
e_player_filter_type[e_player_filter_type["allies"] = 2] = "allies";
|
|
117
|
+
e_player_filter_type[e_player_filter_type["enemies"] = 3] = "enemies";
|
|
118
|
+
e_player_filter_type[e_player_filter_type["specific_player"] = 4] = "specific_player";
|
|
119
|
+
e_player_filter_type[e_player_filter_type["normal"] = 5] = "normal";
|
|
120
|
+
})(e_player_filter_type || (e_player_filter_type = {}));
|
|
121
|
+
export var e_chud_navpoint_icon_type;
|
|
122
|
+
(function (e_chud_navpoint_icon_type) {
|
|
123
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["speaker"] = 0] = "speaker";
|
|
124
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["dead_teammate_marker"] = 1] = "dead_teammate_marker";
|
|
125
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["lightning_bolt"] = 2] = "lightning_bolt";
|
|
126
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["bullseye"] = 3] = "bullseye";
|
|
127
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["diamond"] = 4] = "diamond";
|
|
128
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["bomb"] = 5] = "bomb";
|
|
129
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["flag"] = 6] = "flag";
|
|
130
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["skull"] = 7] = "skull";
|
|
131
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["crown"] = 8] = "crown";
|
|
132
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["vip"] = 9] = "vip";
|
|
133
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["padlock"] = 10] = "padlock";
|
|
134
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_a"] = 11] = "territory_a";
|
|
135
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_b"] = 12] = "territory_b";
|
|
136
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_c"] = 13] = "territory_c";
|
|
137
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_d"] = 14] = "territory_d";
|
|
138
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_e"] = 15] = "territory_e";
|
|
139
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_f"] = 16] = "territory_f";
|
|
140
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_g"] = 17] = "territory_g";
|
|
141
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_h"] = 18] = "territory_h";
|
|
142
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_i"] = 19] = "territory_i";
|
|
143
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["supply"] = 20] = "supply";
|
|
144
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["supply_health"] = 21] = "supply_health";
|
|
145
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["supply_air_drop"] = 22] = "supply_air_drop";
|
|
146
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["supply_ammo"] = 23] = "supply_ammo";
|
|
147
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["arrow"] = 24] = "arrow";
|
|
148
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["defend"] = 25] = "defend";
|
|
149
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["ordnance"] = 26] = "ordnance";
|
|
150
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["inward"] = 27] = "inward";
|
|
151
|
+
})(e_chud_navpoint_icon_type || (e_chud_navpoint_icon_type = {}));
|
|
152
|
+
export var e_navpoint_priority;
|
|
153
|
+
(function (e_navpoint_priority) {
|
|
154
|
+
e_navpoint_priority[e_navpoint_priority["low"] = 0] = "low";
|
|
155
|
+
e_navpoint_priority[e_navpoint_priority["normal"] = 1] = "normal";
|
|
156
|
+
e_navpoint_priority[e_navpoint_priority["high"] = 2] = "high";
|
|
157
|
+
e_navpoint_priority[e_navpoint_priority["blink"] = 3] = "blink";
|
|
158
|
+
})(e_navpoint_priority || (e_navpoint_priority = {}));
|
|
159
|
+
export var e_megalogamengine_hud_meter_input_type;
|
|
160
|
+
(function (e_megalogamengine_hud_meter_input_type) {
|
|
161
|
+
e_megalogamengine_hud_meter_input_type[e_megalogamengine_hud_meter_input_type["none"] = 0] = "none";
|
|
162
|
+
e_megalogamengine_hud_meter_input_type[e_megalogamengine_hud_meter_input_type["number"] = 1] = "number";
|
|
163
|
+
e_megalogamengine_hud_meter_input_type[e_megalogamengine_hud_meter_input_type["timer"] = 2] = "timer";
|
|
164
|
+
})(e_megalogamengine_hud_meter_input_type || (e_megalogamengine_hud_meter_input_type = {}));
|
|
165
|
+
export var e_numeric_comparison;
|
|
166
|
+
(function (e_numeric_comparison) {
|
|
167
|
+
e_numeric_comparison[e_numeric_comparison["less_than"] = 0] = "less_than";
|
|
168
|
+
e_numeric_comparison[e_numeric_comparison["greater_than"] = 1] = "greater_than";
|
|
169
|
+
e_numeric_comparison[e_numeric_comparison["equal_to"] = 2] = "equal_to";
|
|
170
|
+
e_numeric_comparison[e_numeric_comparison["less_than_or_equal_to"] = 3] = "less_than_or_equal_to";
|
|
171
|
+
e_numeric_comparison[e_numeric_comparison["greater_than_or_equal_to"] = 4] = "greater_than_or_equal_to";
|
|
172
|
+
e_numeric_comparison[e_numeric_comparison["not_equal_to"] = 5] = "not_equal_to";
|
|
173
|
+
})(e_numeric_comparison || (e_numeric_comparison = {}));
|
|
174
|
+
/** Matches `e_create_object_flags` in blf_lib `megalogamengine_actions.rs`. */
|
|
175
|
+
export class e_create_object_flags {
|
|
176
|
+
never_garbage_collect = false;
|
|
177
|
+
suppress_effect = false;
|
|
178
|
+
absolute_orientation = false;
|
|
179
|
+
to_raw() {
|
|
180
|
+
return ((this.never_garbage_collect ? 1 : 0) |
|
|
181
|
+
(this.suppress_effect ? 1 << 1 : 0) |
|
|
182
|
+
(this.absolute_orientation ? 1 << 2 : 0));
|
|
183
|
+
}
|
|
184
|
+
static from_raw(raw) {
|
|
185
|
+
const flags = new e_create_object_flags();
|
|
186
|
+
flags.never_garbage_collect = (raw & 1) !== 0;
|
|
187
|
+
flags.suppress_effect = (raw & (1 << 1)) !== 0;
|
|
188
|
+
flags.absolute_orientation = (raw & (1 << 2)) !== 0;
|
|
189
|
+
return flags;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { c_bitstream_reader, c_bitstream_writer } from "../../../../../bitstream";
|
|
2
|
+
import { e_explicit_object_type, e_explicit_player_type, e_explicit_team_type } from "./megalogamengine_enums";
|
|
3
|
+
export { e_explicit_object_type, e_explicit_player_type, e_explicit_team_type, } from "./megalogamengine_enums";
|
|
2
4
|
export declare enum e_custom_timer_type {
|
|
3
5
|
global = 0,
|
|
4
6
|
player = 1,
|
|
@@ -9,17 +11,17 @@ export declare enum e_custom_timer_type {
|
|
|
9
11
|
grace_period = 6
|
|
10
12
|
}
|
|
11
13
|
export declare class c_explicit_player {
|
|
12
|
-
m_explicit_player_type:
|
|
14
|
+
m_explicit_player_type: e_explicit_player_type;
|
|
13
15
|
decode(bitstream: c_bitstream_reader): void;
|
|
14
16
|
encode(bitstream: c_bitstream_writer): void;
|
|
15
17
|
}
|
|
16
18
|
export declare class c_explicit_object {
|
|
17
|
-
m_explicit_object_type:
|
|
19
|
+
m_explicit_object_type: e_explicit_object_type;
|
|
18
20
|
decode(bitstream: c_bitstream_reader): void;
|
|
19
21
|
encode(bitstream: c_bitstream_writer): void;
|
|
20
22
|
}
|
|
21
23
|
export declare class c_explicit_team {
|
|
22
|
-
m_explicit_team_type:
|
|
24
|
+
m_explicit_team_type: e_explicit_team_type;
|
|
23
25
|
decode(bitstream: c_bitstream_reader): void;
|
|
24
26
|
encode(bitstream: c_bitstream_writer): void;
|
|
25
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"megalogamengine_references.d.ts","sourceRoot":"","sources":["../../../../../../src/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_references.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"megalogamengine_references.d.ts","sourceRoot":"","sources":["../../../../../../src/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_references.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { BlfError } from "../../../../../error";
|
|
2
|
+
import { e_explicit_object_type, e_explicit_player_type, e_explicit_team_type, } from "./megalogamengine_enums";
|
|
3
|
+
export { e_explicit_object_type, e_explicit_player_type, e_explicit_team_type, } from "./megalogamengine_enums";
|
|
2
4
|
function requireField(value, message) {
|
|
3
5
|
if (value === undefined) {
|
|
4
6
|
throw new BlfError(message);
|
|
@@ -16,30 +18,30 @@ export var e_custom_timer_type;
|
|
|
16
18
|
e_custom_timer_type[e_custom_timer_type["grace_period"] = 6] = "grace_period";
|
|
17
19
|
})(e_custom_timer_type || (e_custom_timer_type = {}));
|
|
18
20
|
export class c_explicit_player {
|
|
19
|
-
m_explicit_player_type =
|
|
21
|
+
m_explicit_player_type = e_explicit_player_type.no_player;
|
|
20
22
|
decode(bitstream) {
|
|
21
|
-
this.m_explicit_player_type = bitstream.
|
|
23
|
+
this.m_explicit_player_type = bitstream.read_enum("explicit-player-type", 5, e_explicit_player_type);
|
|
22
24
|
}
|
|
23
25
|
encode(bitstream) {
|
|
24
|
-
bitstream.
|
|
26
|
+
bitstream.write_enum(this.m_explicit_player_type, 5);
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
export class c_explicit_object {
|
|
28
|
-
m_explicit_object_type =
|
|
30
|
+
m_explicit_object_type = e_explicit_object_type.no_object;
|
|
29
31
|
decode(bitstream) {
|
|
30
|
-
this.m_explicit_object_type = bitstream.
|
|
32
|
+
this.m_explicit_object_type = bitstream.read_enum("explicit-object-type", 5, e_explicit_object_type);
|
|
31
33
|
}
|
|
32
34
|
encode(bitstream) {
|
|
33
|
-
bitstream.
|
|
35
|
+
bitstream.write_enum(this.m_explicit_object_type, 5);
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
export class c_explicit_team {
|
|
37
|
-
m_explicit_team_type =
|
|
39
|
+
m_explicit_team_type = e_explicit_team_type.no_team;
|
|
38
40
|
decode(bitstream) {
|
|
39
|
-
this.m_explicit_team_type = bitstream.
|
|
41
|
+
this.m_explicit_team_type = bitstream.read_enum("explicit-team-type", 5, e_explicit_team_type);
|
|
40
42
|
}
|
|
41
43
|
encode(bitstream) {
|
|
42
|
-
bitstream.
|
|
44
|
+
bitstream.write_enum(this.m_explicit_team_type, 5);
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
export class c_object_reference {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { c_bitstream_reader, c_bitstream_writer } from "../../../../../bitstream";
|
|
2
|
+
import { e_player_filter_type } from "./megalogamengine_enums";
|
|
2
3
|
import { c_custom_timer_reference, c_custom_variable_reference, c_object_reference, c_player_reference, c_team_reference } from "./megalogamengine_references";
|
|
3
4
|
export declare class c_player_filter_modifier {
|
|
4
|
-
m_type:
|
|
5
|
+
m_type: e_player_filter_type;
|
|
5
6
|
m_player?: c_player_reference;
|
|
6
7
|
m_variable?: c_custom_variable_reference;
|
|
7
8
|
decode(bitstream: c_bitstream_reader): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"megalogamengine_text.d.ts","sourceRoot":"","sources":["../../../../../../src/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AAStC,qBAAa,wBAAwB;IACnC,MAAM,
|
|
1
|
+
{"version":3,"file":"megalogamengine_text.d.ts","sourceRoot":"","sources":["../../../../../../src/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AAStC,qBAAa,wBAAwB;IACnC,MAAM,EAAE,oBAAoB,CAA+B;IAC3D,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,UAAU,CAAC,EAAE,2BAA2B,CAAC;IAEzC,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAY3C,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;CAS5C;AAED,qBAAa,mBAAmB;IAC9B,MAAM,SAAK;IACX,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,cAAc,CAAC,EAAE,wBAAwB,CAAC;IAC1C,iBAAiB,CAAC,EAAE,2BAA2B,CAAC;IAEhD,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAuC3C,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;CAgC5C;AAED,qBAAa,gBAAgB;IAC3B,cAAc,SAAK;IACnB,QAAQ,EAAE,mBAAmB,EAAE,CAAM;IAErC,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAU3C,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;CAO5C"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BlfError } from "../../../../../error";
|
|
2
|
+
import { e_player_filter_type } from "./megalogamengine_enums";
|
|
2
3
|
import { c_custom_timer_reference, c_custom_variable_reference, c_object_reference, c_player_reference, c_team_reference, } from "./megalogamengine_references";
|
|
3
4
|
function requireField(value, message) {
|
|
4
5
|
if (value === undefined) {
|
|
@@ -7,12 +8,12 @@ function requireField(value, message) {
|
|
|
7
8
|
return value;
|
|
8
9
|
}
|
|
9
10
|
export class c_player_filter_modifier {
|
|
10
|
-
m_type =
|
|
11
|
+
m_type = e_player_filter_type.no_one;
|
|
11
12
|
m_player;
|
|
12
13
|
m_variable;
|
|
13
14
|
decode(bitstream) {
|
|
14
|
-
this.m_type = bitstream.
|
|
15
|
-
if (this.m_type ===
|
|
15
|
+
this.m_type = bitstream.read_enum("type", 3, e_player_filter_type);
|
|
16
|
+
if (this.m_type === e_player_filter_type.specific_player) {
|
|
16
17
|
const player = new c_player_reference();
|
|
17
18
|
const variable = new c_custom_variable_reference();
|
|
18
19
|
player.decode(bitstream);
|
|
@@ -22,8 +23,8 @@ export class c_player_filter_modifier {
|
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
encode(bitstream) {
|
|
25
|
-
bitstream.
|
|
26
|
-
if (this.m_type ===
|
|
26
|
+
bitstream.write_enum(this.m_type, 3);
|
|
27
|
+
if (this.m_type === e_player_filter_type.specific_player) {
|
|
27
28
|
requireField(this.m_player, "m_player does not exist.").encode(bitstream);
|
|
28
29
|
requireField(this.m_variable, "m_variable does not exist.").encode(bitstream);
|
|
29
30
|
}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.c_game_engine_survival_variant = exports.s_survival_round_properties = exports.s_custom_skull = exports.s_survival_wave_properties = exports.c_ai_traits = void 0;
|
|
4
4
|
const c_game_engine_default_1 = require("./c_game_engine_default");
|
|
5
5
|
const c_player_traits_1 = require("./c_player_traits");
|
|
6
|
+
const game_engine_enums_1 = require("./game_engine_enums");
|
|
6
7
|
class c_ai_traits {
|
|
7
8
|
m_vision = 0;
|
|
8
9
|
m_sound = 0;
|
|
@@ -100,7 +101,7 @@ class s_survival_round_properties {
|
|
|
100
101
|
exports.s_survival_round_properties = s_survival_round_properties;
|
|
101
102
|
class c_game_engine_survival_variant {
|
|
102
103
|
m_base_variant = new c_game_engine_default_1.c_game_engine_base_variant();
|
|
103
|
-
m_variant_flags =
|
|
104
|
+
m_variant_flags = new game_engine_enums_1.e_survival_variant_flags();
|
|
104
105
|
m_campaign_difficulty_level = 0;
|
|
105
106
|
m_set_count = 0;
|
|
106
107
|
m_bonus_lives_awarded = 0;
|
|
@@ -126,7 +127,7 @@ class c_game_engine_survival_variant {
|
|
|
126
127
|
m_bonus_round_properties = new s_survival_wave_properties();
|
|
127
128
|
decode(bitstream) {
|
|
128
129
|
this.m_base_variant.decode(bitstream);
|
|
129
|
-
this.m_variant_flags = bitstream.read_integer("m_variant_flags", 5);
|
|
130
|
+
this.m_variant_flags = game_engine_enums_1.e_survival_variant_flags.from_raw(bitstream.read_integer("m_variant_flags", 5));
|
|
130
131
|
this.m_campaign_difficulty_level = bitstream.read_integer("campaign-difficulty-level", 3);
|
|
131
132
|
this.m_set_count = bitstream.read_integer("set-count", 8);
|
|
132
133
|
this.m_bonus_lives_awarded = bitstream.read_integer("bonus-lives-awarded", 4);
|
|
@@ -153,7 +154,7 @@ class c_game_engine_survival_variant {
|
|
|
153
154
|
}
|
|
154
155
|
encode(bitstream) {
|
|
155
156
|
this.m_base_variant.encode(bitstream);
|
|
156
|
-
bitstream.write_integer(this.m_variant_flags, 5);
|
|
157
|
+
bitstream.write_integer(this.m_variant_flags.to_raw(), 5);
|
|
157
158
|
bitstream.write_integer(this.m_campaign_difficulty_level, 3);
|
|
158
159
|
bitstream.write_integer(this.m_set_count, 8);
|
|
159
160
|
bitstream.write_integer(this.m_bonus_lives_awarded, 4);
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.e_survival_variant_flags = exports.e_weapon_pickup_priority = exports.e_game_engine_timer_rate = void 0;
|
|
4
|
+
var e_game_engine_timer_rate;
|
|
5
|
+
(function (e_game_engine_timer_rate) {
|
|
6
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["zero"] = 0] = "zero";
|
|
7
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["minus_10x"] = 1] = "minus_10x";
|
|
8
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["minus_25x"] = 2] = "minus_25x";
|
|
9
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["minus_50x"] = 3] = "minus_50x";
|
|
10
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["minus_75x"] = 4] = "minus_75x";
|
|
11
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["minus_100x"] = 5] = "minus_100x";
|
|
12
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["minus_125x"] = 6] = "minus_125x";
|
|
13
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["minus_150x"] = 7] = "minus_150x";
|
|
14
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["minus_175x"] = 8] = "minus_175x";
|
|
15
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["minus_200x"] = 9] = "minus_200x";
|
|
16
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["minus_300x"] = 10] = "minus_300x";
|
|
17
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["minus_400x"] = 11] = "minus_400x";
|
|
18
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["minus_500x"] = 12] = "minus_500x";
|
|
19
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["minus_1000x"] = 13] = "minus_1000x";
|
|
20
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["_10x"] = 14] = "_10x";
|
|
21
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["_25x"] = 15] = "_25x";
|
|
22
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["_50x"] = 16] = "_50x";
|
|
23
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["_75x"] = 17] = "_75x";
|
|
24
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["_100x"] = 18] = "_100x";
|
|
25
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["_125x"] = 19] = "_125x";
|
|
26
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["_150x"] = 20] = "_150x";
|
|
27
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["_175x"] = 21] = "_175x";
|
|
28
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["_200x"] = 22] = "_200x";
|
|
29
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["_300x"] = 23] = "_300x";
|
|
30
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["_400x"] = 24] = "_400x";
|
|
31
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["_500x"] = 25] = "_500x";
|
|
32
|
+
e_game_engine_timer_rate[e_game_engine_timer_rate["_1000x"] = 26] = "_1000x";
|
|
33
|
+
})(e_game_engine_timer_rate || (exports.e_game_engine_timer_rate = e_game_engine_timer_rate = {}));
|
|
34
|
+
var e_weapon_pickup_priority;
|
|
35
|
+
(function (e_weapon_pickup_priority) {
|
|
36
|
+
e_weapon_pickup_priority[e_weapon_pickup_priority["normal"] = 0] = "normal";
|
|
37
|
+
e_weapon_pickup_priority[e_weapon_pickup_priority["high"] = 1] = "high";
|
|
38
|
+
e_weapon_pickup_priority[e_weapon_pickup_priority["automatic"] = 2] = "automatic";
|
|
39
|
+
})(e_weapon_pickup_priority || (exports.e_weapon_pickup_priority = e_weapon_pickup_priority = {}));
|
|
40
|
+
/** Matches `e_survival_variant_flags` in blf_lib `game_engine_survival.rs`. */
|
|
41
|
+
class e_survival_variant_flags {
|
|
42
|
+
hazards_enabled = false;
|
|
43
|
+
all_generators_must_survive = false;
|
|
44
|
+
random_generator_spawns = false;
|
|
45
|
+
weapon_drops_enabled = false;
|
|
46
|
+
ammo_crates_enabled = false;
|
|
47
|
+
to_raw() {
|
|
48
|
+
return ((this.hazards_enabled ? 1 : 0) |
|
|
49
|
+
(this.all_generators_must_survive ? 1 << 1 : 0) |
|
|
50
|
+
(this.random_generator_spawns ? 1 << 2 : 0) |
|
|
51
|
+
(this.weapon_drops_enabled ? 1 << 3 : 0) |
|
|
52
|
+
(this.ammo_crates_enabled ? 1 << 4 : 0));
|
|
53
|
+
}
|
|
54
|
+
static from_raw(raw) {
|
|
55
|
+
const flags = new e_survival_variant_flags();
|
|
56
|
+
flags.hazards_enabled = (raw & 1) !== 0;
|
|
57
|
+
flags.all_generators_must_survive = (raw & (1 << 1)) !== 0;
|
|
58
|
+
flags.random_generator_spawns = (raw & (1 << 2)) !== 0;
|
|
59
|
+
flags.weapon_drops_enabled = (raw & (1 << 3)) !== 0;
|
|
60
|
+
flags.ammo_crates_enabled = (raw & (1 << 4)) !== 0;
|
|
61
|
+
return flags;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.e_survival_variant_flags = e_survival_variant_flags;
|
|
@@ -22,4 +22,5 @@ __exportStar(require("./c_game_engine_traits"), exports);
|
|
|
22
22
|
__exportStar(require("./c_game_variant"), exports);
|
|
23
23
|
__exportStar(require("./c_player_traits"), exports);
|
|
24
24
|
__exportStar(require("./c_string_table"), exports);
|
|
25
|
+
__exportStar(require("./game_engine_enums"), exports);
|
|
25
26
|
__exportStar(require("./megalogamengine"), exports);
|
package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./c_object_filter"), exports);
|
|
|
20
20
|
__exportStar(require("./c_trigger"), exports);
|
|
21
21
|
__exportStar(require("./megalogamengine_actions"), exports);
|
|
22
22
|
__exportStar(require("./megalogamengine_conditions"), exports);
|
|
23
|
+
__exportStar(require("./megalogamengine_enums"), exports);
|
|
23
24
|
__exportStar(require("./megalogamengine_references"), exports);
|
|
24
25
|
__exportStar(require("./megalogamengine_text"), exports);
|
|
25
26
|
__exportStar(require("./s_custom_game_engine_definition"), exports);
|