@blamnetwork/blf 1.0.0-alpha.1 → 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/README.md +9 -9
- 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/blf_chunk.js +11 -11
- 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/dist-cjs/blf_chunk.js +11 -11
- package/package.json +2 -5
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.c_action = exports.s_action_boundary_set_player_color_parameters = exports.s_action_get_random_object_parameters = exports.s_action_biped_drop_weapon_parameters = exports.s_action_biped_give_weapon_parameters = exports.s_action_object_face_object_parameters = exports.s_action_object_set_orientation_parameters = exports.s_action_player_set_coop_spawning_parameters = exports.s_action_create_tunnel_parameters = exports.s_action_player_get_weapon_parameters = exports.s_action_device_animate_position_parameters = exports.s_action_device_set_position_track_parameters = exports.s_action_set_loadout_palette_parameters = exports.s_action_submit_incident_with_custom_value_parameters = exports.s_action_submit_incident_parameters = exports.s_action_adjust_grenades_parameters = exports.s_action_player_set_requisition_palette_parameters = exports.s_action_object_get_distance_parameters = exports.s_action_vitality_adjustment_parameters = exports.s_action_team_set_coop_spawning_parameters = exports.s_action_player_set_objective_allegiance_icon_parameters = exports.s_action_play_sound_parameters = exports.s_action_hud_widget_set_visibility_parameters = exports.s_action_hud_widget_set_icon_parameters = exports.s_action_hud_widget_set_meter_parameters = exports.c_megalogamengine_hud_meter_input = exports.s_action_hud_widget_text_base = exports.s_action_weapon_set_pickup_priority_parameters = exports.s_action_player_enable_purchases_parameters = exports.s_action_player_adjust_money_parameters = exports.s_action_object_attach_parameters = exports.s_action_object_destroy_parameters = exports.s_action_for_each_parameters = exports.s_action_timer_set_rate_parameters = exports.s_action_hud_post_message_parameters = exports.s_action_set_progress_bar_parameters = exports.s_action_set_fireteam_respawn_filter_parameters = exports.s_action_apply_player_traits_parameters = exports.s_action_set_boundary_parameters = exports.s_action_set_parameters = exports.s_action_navpoint_set_visible_range_parameters = exports.s_action_navpoint_set_timer_parameters = exports.s_action_navpoint_set_priority_parameters = exports.s_action_navpoint_set_icon_parameters = exports.s_action_create_object_parameters = exports.s_action_set_score_parameters = exports.s_team_or_player_target = void 0;
|
|
4
|
+
const game_engine_enums_1 = require("../game_engine_enums");
|
|
5
|
+
const megalogamengine_enums_1 = require("./megalogamengine_enums");
|
|
4
6
|
const megalogamengine_references_1 = require("./megalogamengine_references");
|
|
5
7
|
const megalogamengine_text_1 = require("./megalogamengine_text");
|
|
6
8
|
const s_variant_variable_1 = require("./s_variant_variable");
|
|
@@ -13,53 +15,55 @@ var e_boundary_shape;
|
|
|
13
15
|
e_boundary_shape[e_boundary_shape["box"] = 3] = "box";
|
|
14
16
|
})(e_boundary_shape || (e_boundary_shape = {}));
|
|
15
17
|
class s_team_or_player_target {
|
|
16
|
-
m_target =
|
|
18
|
+
m_target = megalogamengine_enums_1.e_action_team_or_player_target.team;
|
|
17
19
|
m_team;
|
|
18
20
|
m_player;
|
|
19
21
|
decode(bitstream) {
|
|
20
|
-
this.m_target = bitstream.
|
|
22
|
+
this.m_target = bitstream.read_enum("target", 2, megalogamengine_enums_1.e_action_team_or_player_target);
|
|
21
23
|
switch (this.m_target) {
|
|
22
|
-
case
|
|
24
|
+
case megalogamengine_enums_1.e_action_team_or_player_target.team: {
|
|
23
25
|
const team = new megalogamengine_references_1.c_team_reference();
|
|
24
26
|
team.decode(bitstream);
|
|
25
27
|
this.m_team = team;
|
|
26
28
|
break;
|
|
27
29
|
}
|
|
28
|
-
case
|
|
30
|
+
case megalogamengine_enums_1.e_action_team_or_player_target.player: {
|
|
29
31
|
const player = new megalogamengine_references_1.c_player_reference();
|
|
30
32
|
player.decode(bitstream);
|
|
31
33
|
this.m_player = player;
|
|
32
34
|
break;
|
|
33
35
|
}
|
|
34
|
-
|
|
36
|
+
case megalogamengine_enums_1.e_action_team_or_player_target.all_players:
|
|
35
37
|
break;
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
encode(bitstream) {
|
|
39
|
-
bitstream.
|
|
41
|
+
bitstream.write_enum(this.m_target, 2);
|
|
40
42
|
switch (this.m_target) {
|
|
41
|
-
case
|
|
43
|
+
case megalogamengine_enums_1.e_action_team_or_player_target.team:
|
|
42
44
|
this.m_team?.encode(bitstream);
|
|
43
45
|
break;
|
|
44
|
-
case
|
|
46
|
+
case megalogamengine_enums_1.e_action_team_or_player_target.player:
|
|
45
47
|
this.m_player?.encode(bitstream);
|
|
46
48
|
break;
|
|
49
|
+
case megalogamengine_enums_1.e_action_team_or_player_target.all_players:
|
|
50
|
+
break;
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
53
|
}
|
|
50
54
|
exports.s_team_or_player_target = s_team_or_player_target;
|
|
51
55
|
class s_action_set_score_parameters {
|
|
52
56
|
m_target = new s_team_or_player_target();
|
|
53
|
-
m_operation =
|
|
57
|
+
m_operation = megalogamengine_enums_1.e_math_operation.add;
|
|
54
58
|
m_variable = new megalogamengine_references_1.c_custom_variable_reference();
|
|
55
59
|
decode(bitstream) {
|
|
56
60
|
this.m_target.decode(bitstream);
|
|
57
|
-
this.m_operation = bitstream.
|
|
61
|
+
this.m_operation = bitstream.read_enum("operation", 4, megalogamengine_enums_1.e_math_operation);
|
|
58
62
|
this.m_variable.decode(bitstream);
|
|
59
63
|
}
|
|
60
64
|
encode(bitstream) {
|
|
61
65
|
this.m_target.encode(bitstream);
|
|
62
|
-
bitstream.
|
|
66
|
+
bitstream.write_enum(this.m_operation, 4);
|
|
63
67
|
this.m_variable.encode(bitstream);
|
|
64
68
|
}
|
|
65
69
|
}
|
|
@@ -69,7 +73,7 @@ class s_action_create_object_parameters {
|
|
|
69
73
|
m_object_reference_1 = new megalogamengine_references_1.c_object_reference();
|
|
70
74
|
m_object_reference_2 = new megalogamengine_references_1.c_object_reference();
|
|
71
75
|
m_filter_index = 0;
|
|
72
|
-
m_flags =
|
|
76
|
+
m_flags = new megalogamengine_enums_1.e_create_object_flags();
|
|
73
77
|
m_offset = 0;
|
|
74
78
|
m_variant_name_index = 0;
|
|
75
79
|
decode(bitstream) {
|
|
@@ -77,7 +81,7 @@ class s_action_create_object_parameters {
|
|
|
77
81
|
this.m_object_reference_1.decode(bitstream);
|
|
78
82
|
this.m_object_reference_2.decode(bitstream);
|
|
79
83
|
this.m_filter_index = bitstream.read_index("filter_index", 16, 4);
|
|
80
|
-
this.m_flags = bitstream.read_integer("flags", 3);
|
|
84
|
+
this.m_flags = megalogamengine_enums_1.e_create_object_flags.from_raw(bitstream.read_integer("flags", 3));
|
|
81
85
|
this.m_offset = bitstream.read_integer("offset", 24);
|
|
82
86
|
this.m_variant_name_index = bitstream.read_integer("variant-name-index", 8);
|
|
83
87
|
}
|
|
@@ -86,7 +90,7 @@ class s_action_create_object_parameters {
|
|
|
86
90
|
this.m_object_reference_1.encode(bitstream);
|
|
87
91
|
this.m_object_reference_2.encode(bitstream);
|
|
88
92
|
bitstream.write_index(this.m_filter_index, 16, 4);
|
|
89
|
-
bitstream.write_integer(this.m_flags, 3);
|
|
93
|
+
bitstream.write_integer(this.m_flags.to_raw(), 3);
|
|
90
94
|
bitstream.write_integer(this.m_offset, 24);
|
|
91
95
|
bitstream.write_integer(this.m_variant_name_index, 8);
|
|
92
96
|
}
|
|
@@ -94,12 +98,12 @@ class s_action_create_object_parameters {
|
|
|
94
98
|
exports.s_action_create_object_parameters = s_action_create_object_parameters;
|
|
95
99
|
class s_action_navpoint_set_icon_parameters {
|
|
96
100
|
m_object = new megalogamengine_references_1.c_object_reference();
|
|
97
|
-
m_navpoint_icon =
|
|
101
|
+
m_navpoint_icon = megalogamengine_enums_1.e_chud_navpoint_icon_type.speaker;
|
|
98
102
|
m_variable;
|
|
99
103
|
decode(bitstream) {
|
|
100
104
|
this.m_object.decode(bitstream);
|
|
101
|
-
this.m_navpoint_icon = bitstream.
|
|
102
|
-
if (this.m_navpoint_icon ===
|
|
105
|
+
this.m_navpoint_icon = bitstream.read_enum("navpoint-icon", 5, megalogamengine_enums_1.e_chud_navpoint_icon_type);
|
|
106
|
+
if (this.m_navpoint_icon === megalogamengine_enums_1.e_chud_navpoint_icon_type.territory_b) {
|
|
103
107
|
const variable = new megalogamengine_references_1.c_custom_variable_reference();
|
|
104
108
|
variable.decode(bitstream);
|
|
105
109
|
this.m_variable = variable;
|
|
@@ -107,8 +111,8 @@ class s_action_navpoint_set_icon_parameters {
|
|
|
107
111
|
}
|
|
108
112
|
encode(bitstream) {
|
|
109
113
|
this.m_object.encode(bitstream);
|
|
110
|
-
bitstream.
|
|
111
|
-
if (this.m_navpoint_icon ===
|
|
114
|
+
bitstream.write_enum(this.m_navpoint_icon, 5);
|
|
115
|
+
if (this.m_navpoint_icon === megalogamengine_enums_1.e_chud_navpoint_icon_type.territory_b) {
|
|
112
116
|
this.m_variable.encode(bitstream);
|
|
113
117
|
}
|
|
114
118
|
}
|
|
@@ -116,14 +120,14 @@ class s_action_navpoint_set_icon_parameters {
|
|
|
116
120
|
exports.s_action_navpoint_set_icon_parameters = s_action_navpoint_set_icon_parameters;
|
|
117
121
|
class s_action_navpoint_set_priority_parameters {
|
|
118
122
|
m_object = new megalogamengine_references_1.c_object_reference();
|
|
119
|
-
m_priority =
|
|
123
|
+
m_priority = megalogamengine_enums_1.e_navpoint_priority.low;
|
|
120
124
|
decode(bitstream) {
|
|
121
125
|
this.m_object.decode(bitstream);
|
|
122
|
-
this.m_priority = bitstream.
|
|
126
|
+
this.m_priority = bitstream.read_enum("priority", 2, megalogamengine_enums_1.e_navpoint_priority);
|
|
123
127
|
}
|
|
124
128
|
encode(bitstream) {
|
|
125
129
|
this.m_object.encode(bitstream);
|
|
126
|
-
bitstream.
|
|
130
|
+
bitstream.write_enum(this.m_priority, 2);
|
|
127
131
|
}
|
|
128
132
|
}
|
|
129
133
|
exports.s_action_navpoint_set_priority_parameters = s_action_navpoint_set_priority_parameters;
|
|
@@ -159,16 +163,16 @@ exports.s_action_navpoint_set_visible_range_parameters = s_action_navpoint_set_v
|
|
|
159
163
|
class s_action_set_parameters {
|
|
160
164
|
m_variable_1 = new s_variant_variable_1.s_variant_variable();
|
|
161
165
|
m_variable_2 = new s_variant_variable_1.s_variant_variable();
|
|
162
|
-
m_operation =
|
|
166
|
+
m_operation = megalogamengine_enums_1.e_math_operation.add;
|
|
163
167
|
decode(bitstream) {
|
|
164
168
|
this.m_variable_1.decode(bitstream);
|
|
165
169
|
this.m_variable_2.decode(bitstream);
|
|
166
|
-
this.m_operation = bitstream.
|
|
170
|
+
this.m_operation = bitstream.read_enum("operation", 4, megalogamengine_enums_1.e_math_operation);
|
|
167
171
|
}
|
|
168
172
|
encode(bitstream) {
|
|
169
173
|
this.m_variable_1.encode(bitstream);
|
|
170
174
|
this.m_variable_2.encode(bitstream);
|
|
171
|
-
bitstream.
|
|
175
|
+
bitstream.write_enum(this.m_operation, 4);
|
|
172
176
|
}
|
|
173
177
|
}
|
|
174
178
|
exports.s_action_set_parameters = s_action_set_parameters;
|
|
@@ -304,14 +308,14 @@ class s_action_hud_post_message_parameters {
|
|
|
304
308
|
exports.s_action_hud_post_message_parameters = s_action_hud_post_message_parameters;
|
|
305
309
|
class s_action_timer_set_rate_parameters {
|
|
306
310
|
m_timer = new megalogamengine_references_1.c_custom_timer_reference();
|
|
307
|
-
m_rate =
|
|
311
|
+
m_rate = game_engine_enums_1.e_game_engine_timer_rate.zero;
|
|
308
312
|
decode(bitstream) {
|
|
309
313
|
this.m_timer.decode(bitstream);
|
|
310
|
-
this.m_rate = bitstream.
|
|
314
|
+
this.m_rate = bitstream.read_enum("timer-rate", 5, game_engine_enums_1.e_game_engine_timer_rate);
|
|
311
315
|
}
|
|
312
316
|
encode(bitstream) {
|
|
313
317
|
this.m_timer.encode(bitstream);
|
|
314
|
-
bitstream.
|
|
318
|
+
bitstream.write_enum(this.m_rate, 5);
|
|
315
319
|
}
|
|
316
320
|
}
|
|
317
321
|
exports.s_action_timer_set_rate_parameters = s_action_timer_set_rate_parameters;
|
|
@@ -359,16 +363,16 @@ class s_action_object_attach_parameters {
|
|
|
359
363
|
exports.s_action_object_attach_parameters = s_action_object_attach_parameters;
|
|
360
364
|
class s_action_player_adjust_money_parameters {
|
|
361
365
|
m_player = new megalogamengine_references_1.c_player_reference();
|
|
362
|
-
m_math_operation =
|
|
366
|
+
m_math_operation = megalogamengine_enums_1.e_math_operation.add;
|
|
363
367
|
m_variable = new megalogamengine_references_1.c_custom_variable_reference();
|
|
364
368
|
decode(bitstream) {
|
|
365
369
|
this.m_player.decode(bitstream);
|
|
366
|
-
this.m_math_operation = bitstream.
|
|
370
|
+
this.m_math_operation = bitstream.read_enum("math-operation", 4, megalogamengine_enums_1.e_math_operation);
|
|
367
371
|
this.m_variable.decode(bitstream);
|
|
368
372
|
}
|
|
369
373
|
encode(bitstream) {
|
|
370
374
|
this.m_player.encode(bitstream);
|
|
371
|
-
bitstream.
|
|
375
|
+
bitstream.write_enum(this.m_math_operation, 4);
|
|
372
376
|
this.m_variable.encode(bitstream);
|
|
373
377
|
}
|
|
374
378
|
}
|
|
@@ -391,14 +395,14 @@ class s_action_player_enable_purchases_parameters {
|
|
|
391
395
|
exports.s_action_player_enable_purchases_parameters = s_action_player_enable_purchases_parameters;
|
|
392
396
|
class s_action_weapon_set_pickup_priority_parameters {
|
|
393
397
|
m_object = new megalogamengine_references_1.c_object_reference();
|
|
394
|
-
m_weapon_pickup_priority =
|
|
398
|
+
m_weapon_pickup_priority = game_engine_enums_1.e_weapon_pickup_priority.normal;
|
|
395
399
|
decode(bitstream) {
|
|
396
400
|
this.m_object.decode(bitstream);
|
|
397
|
-
this.m_weapon_pickup_priority = bitstream.
|
|
401
|
+
this.m_weapon_pickup_priority = bitstream.read_enum("weapon-pickup-priority", 2, game_engine_enums_1.e_weapon_pickup_priority);
|
|
398
402
|
}
|
|
399
403
|
encode(bitstream) {
|
|
400
404
|
this.m_object.encode(bitstream);
|
|
401
|
-
bitstream.
|
|
405
|
+
bitstream.write_enum(this.m_weapon_pickup_priority, 2);
|
|
402
406
|
}
|
|
403
407
|
}
|
|
404
408
|
exports.s_action_weapon_set_pickup_priority_parameters = s_action_weapon_set_pickup_priority_parameters;
|
|
@@ -416,14 +420,14 @@ class s_action_hud_widget_text_base {
|
|
|
416
420
|
}
|
|
417
421
|
exports.s_action_hud_widget_text_base = s_action_hud_widget_text_base;
|
|
418
422
|
class c_megalogamengine_hud_meter_input {
|
|
419
|
-
m_type =
|
|
423
|
+
m_type = megalogamengine_enums_1.e_megalogamengine_hud_meter_input_type.none;
|
|
420
424
|
m_variable_1;
|
|
421
425
|
m_variable_2;
|
|
422
426
|
m_timer;
|
|
423
427
|
decode(bitstream) {
|
|
424
|
-
this.m_type = bitstream.
|
|
428
|
+
this.m_type = bitstream.read_enum("type", 2, megalogamengine_enums_1.e_megalogamengine_hud_meter_input_type);
|
|
425
429
|
switch (this.m_type) {
|
|
426
|
-
case
|
|
430
|
+
case megalogamengine_enums_1.e_megalogamengine_hud_meter_input_type.number: {
|
|
427
431
|
const variable1 = new megalogamengine_references_1.c_custom_variable_reference();
|
|
428
432
|
const variable2 = new megalogamengine_references_1.c_custom_variable_reference();
|
|
429
433
|
variable1.decode(bitstream);
|
|
@@ -432,27 +436,29 @@ class c_megalogamengine_hud_meter_input {
|
|
|
432
436
|
this.m_variable_2 = variable2;
|
|
433
437
|
break;
|
|
434
438
|
}
|
|
435
|
-
case
|
|
439
|
+
case megalogamengine_enums_1.e_megalogamengine_hud_meter_input_type.timer: {
|
|
436
440
|
const timer = new megalogamengine_references_1.c_custom_timer_reference();
|
|
437
441
|
timer.decode(bitstream);
|
|
438
442
|
this.m_timer = timer;
|
|
439
443
|
break;
|
|
440
444
|
}
|
|
441
|
-
|
|
445
|
+
case megalogamengine_enums_1.e_megalogamengine_hud_meter_input_type.none:
|
|
442
446
|
break;
|
|
443
447
|
}
|
|
444
448
|
}
|
|
445
449
|
encode(bitstream) {
|
|
446
450
|
switch (this.m_type) {
|
|
447
|
-
case
|
|
448
|
-
bitstream.
|
|
451
|
+
case megalogamengine_enums_1.e_megalogamengine_hud_meter_input_type.number:
|
|
452
|
+
bitstream.write_enum(megalogamengine_enums_1.e_megalogamengine_hud_meter_input_type.number, 2);
|
|
449
453
|
this.m_variable_1.encode(bitstream);
|
|
450
454
|
this.m_variable_2.encode(bitstream);
|
|
451
455
|
break;
|
|
452
|
-
case
|
|
453
|
-
bitstream.
|
|
456
|
+
case megalogamengine_enums_1.e_megalogamengine_hud_meter_input_type.timer:
|
|
457
|
+
bitstream.write_enum(megalogamengine_enums_1.e_megalogamengine_hud_meter_input_type.timer, 2);
|
|
454
458
|
this.m_timer.encode(bitstream);
|
|
455
459
|
break;
|
|
460
|
+
case megalogamengine_enums_1.e_megalogamengine_hud_meter_input_type.none:
|
|
461
|
+
break;
|
|
456
462
|
}
|
|
457
463
|
}
|
|
458
464
|
}
|
|
@@ -543,16 +549,16 @@ class s_action_team_set_coop_spawning_parameters {
|
|
|
543
549
|
exports.s_action_team_set_coop_spawning_parameters = s_action_team_set_coop_spawning_parameters;
|
|
544
550
|
class s_action_vitality_adjustment_parameters {
|
|
545
551
|
m_object = new megalogamengine_references_1.c_object_reference();
|
|
546
|
-
m_operation =
|
|
552
|
+
m_operation = megalogamengine_enums_1.e_math_operation.add;
|
|
547
553
|
m_variable = new megalogamengine_references_1.c_custom_variable_reference();
|
|
548
554
|
decode(bitstream) {
|
|
549
555
|
this.m_object.decode(bitstream);
|
|
550
|
-
this.m_operation = bitstream.
|
|
556
|
+
this.m_operation = bitstream.read_enum("operation", 4, megalogamengine_enums_1.e_math_operation);
|
|
551
557
|
this.m_variable.decode(bitstream);
|
|
552
558
|
}
|
|
553
559
|
encode(bitstream) {
|
|
554
560
|
this.m_object.encode(bitstream);
|
|
555
|
-
bitstream.
|
|
561
|
+
bitstream.write_enum(this.m_operation, 4);
|
|
556
562
|
this.m_variable.encode(bitstream);
|
|
557
563
|
}
|
|
558
564
|
}
|
|
@@ -588,19 +594,19 @@ class s_action_player_set_requisition_palette_parameters {
|
|
|
588
594
|
exports.s_action_player_set_requisition_palette_parameters = s_action_player_set_requisition_palette_parameters;
|
|
589
595
|
class s_action_adjust_grenades_parameters {
|
|
590
596
|
m_player = new megalogamengine_references_1.c_player_reference();
|
|
591
|
-
m_grenade_type =
|
|
592
|
-
m_math_operation =
|
|
597
|
+
m_grenade_type = megalogamengine_enums_1.e_grenade_type.frag_grenade;
|
|
598
|
+
m_math_operation = megalogamengine_enums_1.e_math_operation.add;
|
|
593
599
|
m_variable = new megalogamengine_references_1.c_custom_variable_reference();
|
|
594
600
|
decode(bitstream) {
|
|
595
601
|
this.m_player.decode(bitstream);
|
|
596
|
-
this.m_grenade_type = bitstream.
|
|
597
|
-
this.m_math_operation = bitstream.
|
|
602
|
+
this.m_grenade_type = bitstream.read_enum("grenade-type", 1, megalogamengine_enums_1.e_grenade_type);
|
|
603
|
+
this.m_math_operation = bitstream.read_enum("math-operation", 4, megalogamengine_enums_1.e_math_operation);
|
|
598
604
|
this.m_variable.decode(bitstream);
|
|
599
605
|
}
|
|
600
606
|
encode(bitstream) {
|
|
601
607
|
this.m_player.encode(bitstream);
|
|
602
|
-
bitstream.
|
|
603
|
-
bitstream.
|
|
608
|
+
bitstream.write_enum(this.m_grenade_type, 1);
|
|
609
|
+
bitstream.write_enum(this.m_math_operation, 4);
|
|
604
610
|
this.m_variable.encode(bitstream);
|
|
605
611
|
}
|
|
606
612
|
}
|
|
@@ -777,16 +783,16 @@ exports.s_action_object_face_object_parameters = s_action_object_face_object_par
|
|
|
777
783
|
class s_action_biped_give_weapon_parameters {
|
|
778
784
|
m_object = new megalogamengine_references_1.c_object_reference();
|
|
779
785
|
m_object_type = new megalogamengine_references_1.c_object_type_reference();
|
|
780
|
-
m_mode =
|
|
786
|
+
m_mode = megalogamengine_enums_1.e_biped_give_weapon_mode.as_primary_weapon;
|
|
781
787
|
decode(bitstream) {
|
|
782
788
|
this.m_object.decode(bitstream);
|
|
783
789
|
this.m_object_type.decode(bitstream);
|
|
784
|
-
this.m_mode = bitstream.
|
|
790
|
+
this.m_mode = bitstream.read_enum("mode", 2, megalogamengine_enums_1.e_biped_give_weapon_mode);
|
|
785
791
|
}
|
|
786
792
|
encode(bitstream) {
|
|
787
793
|
this.m_object.encode(bitstream);
|
|
788
794
|
this.m_object_type.encode(bitstream);
|
|
789
|
-
bitstream.
|
|
795
|
+
bitstream.write_enum(this.m_mode, 2);
|
|
790
796
|
}
|
|
791
797
|
}
|
|
792
798
|
exports.s_action_biped_give_weapon_parameters = s_action_biped_give_weapon_parameters;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.c_condition = exports.s_condition_object_matches_filter_parameters = exports.s_condition_team_disposition_parameters = exports.s_condition_player_died_parameters = exports.s_condition_if_parameters = void 0;
|
|
4
|
+
const megalogamengine_enums_1 = require("./megalogamengine_enums");
|
|
4
5
|
const megalogamengine_references_1 = require("./megalogamengine_references");
|
|
5
6
|
const s_variant_variable_1 = require("./s_variant_variable");
|
|
6
7
|
class s_condition_if_parameters {
|
|
7
8
|
m_left = new s_variant_variable_1.s_variant_variable();
|
|
8
9
|
m_right = new s_variant_variable_1.s_variant_variable();
|
|
9
|
-
m_comparison =
|
|
10
|
+
m_comparison = megalogamengine_enums_1.e_numeric_comparison.less_than;
|
|
10
11
|
decode(bitstream) {
|
|
11
12
|
this.m_left.decode(bitstream);
|
|
12
13
|
this.m_right.decode(bitstream);
|
|
13
|
-
this.m_comparison = bitstream.
|
|
14
|
+
this.m_comparison = bitstream.read_enum("comparison", 3, megalogamengine_enums_1.e_numeric_comparison);
|
|
14
15
|
}
|
|
15
16
|
encode(bitstream) {
|
|
16
17
|
this.m_left.encode(bitstream);
|
|
17
18
|
this.m_right.encode(bitstream);
|
|
18
|
-
bitstream.
|
|
19
|
+
bitstream.write_enum(this.m_comparison, 3);
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
exports.s_condition_if_parameters = s_condition_if_parameters;
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.e_create_object_flags = exports.e_numeric_comparison = exports.e_megalogamengine_hud_meter_input_type = exports.e_navpoint_priority = exports.e_chud_navpoint_icon_type = exports.e_player_filter_type = exports.e_biped_give_weapon_mode = exports.e_grenade_type = exports.e_math_operation = exports.e_action_team_or_player_target = exports.e_explicit_object_type = exports.e_explicit_player_type = exports.e_explicit_team_type = void 0;
|
|
4
|
+
var e_explicit_team_type;
|
|
5
|
+
(function (e_explicit_team_type) {
|
|
6
|
+
e_explicit_team_type[e_explicit_team_type["no_team"] = 0] = "no_team";
|
|
7
|
+
e_explicit_team_type[e_explicit_team_type["team_0"] = 1] = "team_0";
|
|
8
|
+
e_explicit_team_type[e_explicit_team_type["team_1"] = 2] = "team_1";
|
|
9
|
+
e_explicit_team_type[e_explicit_team_type["team_2"] = 3] = "team_2";
|
|
10
|
+
e_explicit_team_type[e_explicit_team_type["team_3"] = 4] = "team_3";
|
|
11
|
+
e_explicit_team_type[e_explicit_team_type["team_4"] = 5] = "team_4";
|
|
12
|
+
e_explicit_team_type[e_explicit_team_type["team_5"] = 6] = "team_5";
|
|
13
|
+
e_explicit_team_type[e_explicit_team_type["team_6"] = 7] = "team_6";
|
|
14
|
+
e_explicit_team_type[e_explicit_team_type["team_7"] = 8] = "team_7";
|
|
15
|
+
e_explicit_team_type[e_explicit_team_type["neutral_team"] = 9] = "neutral_team";
|
|
16
|
+
e_explicit_team_type[e_explicit_team_type["global_0"] = 10] = "global_0";
|
|
17
|
+
e_explicit_team_type[e_explicit_team_type["global_1"] = 11] = "global_1";
|
|
18
|
+
e_explicit_team_type[e_explicit_team_type["global_2"] = 12] = "global_2";
|
|
19
|
+
e_explicit_team_type[e_explicit_team_type["global_3"] = 13] = "global_3";
|
|
20
|
+
e_explicit_team_type[e_explicit_team_type["global_4"] = 14] = "global_4";
|
|
21
|
+
e_explicit_team_type[e_explicit_team_type["global_5"] = 15] = "global_5";
|
|
22
|
+
e_explicit_team_type[e_explicit_team_type["global_6"] = 16] = "global_6";
|
|
23
|
+
e_explicit_team_type[e_explicit_team_type["global_7"] = 17] = "global_7";
|
|
24
|
+
e_explicit_team_type[e_explicit_team_type["current"] = 18] = "current";
|
|
25
|
+
e_explicit_team_type[e_explicit_team_type["hud_player_owner_team"] = 19] = "hud_player_owner_team";
|
|
26
|
+
e_explicit_team_type[e_explicit_team_type["hud_target_player_owner_team"] = 20] = "hud_target_player_owner_team";
|
|
27
|
+
})(e_explicit_team_type || (exports.e_explicit_team_type = e_explicit_team_type = {}));
|
|
28
|
+
var e_explicit_player_type;
|
|
29
|
+
(function (e_explicit_player_type) {
|
|
30
|
+
e_explicit_player_type[e_explicit_player_type["no_player"] = 0] = "no_player";
|
|
31
|
+
e_explicit_player_type[e_explicit_player_type["player_0"] = 1] = "player_0";
|
|
32
|
+
e_explicit_player_type[e_explicit_player_type["player_1"] = 2] = "player_1";
|
|
33
|
+
e_explicit_player_type[e_explicit_player_type["player_2"] = 3] = "player_2";
|
|
34
|
+
e_explicit_player_type[e_explicit_player_type["player_3"] = 4] = "player_3";
|
|
35
|
+
e_explicit_player_type[e_explicit_player_type["player_4"] = 5] = "player_4";
|
|
36
|
+
e_explicit_player_type[e_explicit_player_type["player_5"] = 6] = "player_5";
|
|
37
|
+
e_explicit_player_type[e_explicit_player_type["player_6"] = 7] = "player_6";
|
|
38
|
+
e_explicit_player_type[e_explicit_player_type["player_7"] = 8] = "player_7";
|
|
39
|
+
e_explicit_player_type[e_explicit_player_type["player_8"] = 9] = "player_8";
|
|
40
|
+
e_explicit_player_type[e_explicit_player_type["player_9"] = 10] = "player_9";
|
|
41
|
+
e_explicit_player_type[e_explicit_player_type["player_10"] = 11] = "player_10";
|
|
42
|
+
e_explicit_player_type[e_explicit_player_type["player_11"] = 12] = "player_11";
|
|
43
|
+
e_explicit_player_type[e_explicit_player_type["player_12"] = 13] = "player_12";
|
|
44
|
+
e_explicit_player_type[e_explicit_player_type["player_13"] = 14] = "player_13";
|
|
45
|
+
e_explicit_player_type[e_explicit_player_type["player_14"] = 15] = "player_14";
|
|
46
|
+
e_explicit_player_type[e_explicit_player_type["player_15"] = 16] = "player_15";
|
|
47
|
+
e_explicit_player_type[e_explicit_player_type["global_0"] = 17] = "global_0";
|
|
48
|
+
e_explicit_player_type[e_explicit_player_type["global_1"] = 18] = "global_1";
|
|
49
|
+
e_explicit_player_type[e_explicit_player_type["global_2"] = 19] = "global_2";
|
|
50
|
+
e_explicit_player_type[e_explicit_player_type["global_3"] = 20] = "global_3";
|
|
51
|
+
e_explicit_player_type[e_explicit_player_type["global_4"] = 21] = "global_4";
|
|
52
|
+
e_explicit_player_type[e_explicit_player_type["global_5"] = 22] = "global_5";
|
|
53
|
+
e_explicit_player_type[e_explicit_player_type["global_6"] = 23] = "global_6";
|
|
54
|
+
e_explicit_player_type[e_explicit_player_type["global_7"] = 24] = "global_7";
|
|
55
|
+
e_explicit_player_type[e_explicit_player_type["current"] = 25] = "current";
|
|
56
|
+
e_explicit_player_type[e_explicit_player_type["hud"] = 26] = "hud";
|
|
57
|
+
e_explicit_player_type[e_explicit_player_type["hud_target"] = 27] = "hud_target";
|
|
58
|
+
e_explicit_player_type[e_explicit_player_type["killer"] = 28] = "killer";
|
|
59
|
+
})(e_explicit_player_type || (exports.e_explicit_player_type = e_explicit_player_type = {}));
|
|
60
|
+
var e_explicit_object_type;
|
|
61
|
+
(function (e_explicit_object_type) {
|
|
62
|
+
e_explicit_object_type[e_explicit_object_type["no_object"] = 0] = "no_object";
|
|
63
|
+
e_explicit_object_type[e_explicit_object_type["global_0"] = 1] = "global_0";
|
|
64
|
+
e_explicit_object_type[e_explicit_object_type["global_1"] = 2] = "global_1";
|
|
65
|
+
e_explicit_object_type[e_explicit_object_type["global_2"] = 3] = "global_2";
|
|
66
|
+
e_explicit_object_type[e_explicit_object_type["global_3"] = 4] = "global_3";
|
|
67
|
+
e_explicit_object_type[e_explicit_object_type["global_4"] = 5] = "global_4";
|
|
68
|
+
e_explicit_object_type[e_explicit_object_type["global_5"] = 6] = "global_5";
|
|
69
|
+
e_explicit_object_type[e_explicit_object_type["global_6"] = 7] = "global_6";
|
|
70
|
+
e_explicit_object_type[e_explicit_object_type["global_7"] = 8] = "global_7";
|
|
71
|
+
e_explicit_object_type[e_explicit_object_type["global_8"] = 9] = "global_8";
|
|
72
|
+
e_explicit_object_type[e_explicit_object_type["global_9"] = 10] = "global_9";
|
|
73
|
+
e_explicit_object_type[e_explicit_object_type["global_10"] = 11] = "global_10";
|
|
74
|
+
e_explicit_object_type[e_explicit_object_type["global_11"] = 12] = "global_11";
|
|
75
|
+
e_explicit_object_type[e_explicit_object_type["global_12"] = 13] = "global_12";
|
|
76
|
+
e_explicit_object_type[e_explicit_object_type["global_13"] = 14] = "global_13";
|
|
77
|
+
e_explicit_object_type[e_explicit_object_type["global_14"] = 15] = "global_14";
|
|
78
|
+
e_explicit_object_type[e_explicit_object_type["global_15"] = 16] = "global_15";
|
|
79
|
+
e_explicit_object_type[e_explicit_object_type["current"] = 17] = "current";
|
|
80
|
+
e_explicit_object_type[e_explicit_object_type["hud_target"] = 18] = "hud_target";
|
|
81
|
+
e_explicit_object_type[e_explicit_object_type["killed"] = 19] = "killed";
|
|
82
|
+
e_explicit_object_type[e_explicit_object_type["killer"] = 20] = "killer";
|
|
83
|
+
e_explicit_object_type[e_explicit_object_type["unknown_21"] = 21] = "unknown_21";
|
|
84
|
+
})(e_explicit_object_type || (exports.e_explicit_object_type = e_explicit_object_type = {}));
|
|
85
|
+
var e_action_team_or_player_target;
|
|
86
|
+
(function (e_action_team_or_player_target) {
|
|
87
|
+
e_action_team_or_player_target[e_action_team_or_player_target["team"] = 0] = "team";
|
|
88
|
+
e_action_team_or_player_target[e_action_team_or_player_target["player"] = 1] = "player";
|
|
89
|
+
e_action_team_or_player_target[e_action_team_or_player_target["all_players"] = 2] = "all_players";
|
|
90
|
+
})(e_action_team_or_player_target || (exports.e_action_team_or_player_target = e_action_team_or_player_target = {}));
|
|
91
|
+
var e_math_operation;
|
|
92
|
+
(function (e_math_operation) {
|
|
93
|
+
e_math_operation[e_math_operation["add"] = 0] = "add";
|
|
94
|
+
e_math_operation[e_math_operation["subtract"] = 1] = "subtract";
|
|
95
|
+
e_math_operation[e_math_operation["multiply_by"] = 2] = "multiply_by";
|
|
96
|
+
e_math_operation[e_math_operation["divide_by"] = 3] = "divide_by";
|
|
97
|
+
e_math_operation[e_math_operation["set_to"] = 4] = "set_to";
|
|
98
|
+
e_math_operation[e_math_operation["modulo_by"] = 5] = "modulo_by";
|
|
99
|
+
e_math_operation[e_math_operation["bitwise_and_with"] = 6] = "bitwise_and_with";
|
|
100
|
+
e_math_operation[e_math_operation["bitwise_or_with"] = 7] = "bitwise_or_with";
|
|
101
|
+
e_math_operation[e_math_operation["bitwise_xor_with"] = 8] = "bitwise_xor_with";
|
|
102
|
+
e_math_operation[e_math_operation["bitwise_not_with"] = 9] = "bitwise_not_with";
|
|
103
|
+
})(e_math_operation || (exports.e_math_operation = e_math_operation = {}));
|
|
104
|
+
var e_grenade_type;
|
|
105
|
+
(function (e_grenade_type) {
|
|
106
|
+
e_grenade_type[e_grenade_type["frag_grenade"] = 0] = "frag_grenade";
|
|
107
|
+
e_grenade_type[e_grenade_type["plasma_grenade"] = 1] = "plasma_grenade";
|
|
108
|
+
})(e_grenade_type || (exports.e_grenade_type = e_grenade_type = {}));
|
|
109
|
+
var e_biped_give_weapon_mode;
|
|
110
|
+
(function (e_biped_give_weapon_mode) {
|
|
111
|
+
e_biped_give_weapon_mode[e_biped_give_weapon_mode["as_primary_weapon"] = 0] = "as_primary_weapon";
|
|
112
|
+
e_biped_give_weapon_mode[e_biped_give_weapon_mode["normally"] = 1] = "normally";
|
|
113
|
+
e_biped_give_weapon_mode[e_biped_give_weapon_mode["silently"] = 2] = "silently";
|
|
114
|
+
})(e_biped_give_weapon_mode || (exports.e_biped_give_weapon_mode = e_biped_give_weapon_mode = {}));
|
|
115
|
+
var e_player_filter_type;
|
|
116
|
+
(function (e_player_filter_type) {
|
|
117
|
+
e_player_filter_type[e_player_filter_type["no_one"] = 0] = "no_one";
|
|
118
|
+
e_player_filter_type[e_player_filter_type["everyone"] = 1] = "everyone";
|
|
119
|
+
e_player_filter_type[e_player_filter_type["allies"] = 2] = "allies";
|
|
120
|
+
e_player_filter_type[e_player_filter_type["enemies"] = 3] = "enemies";
|
|
121
|
+
e_player_filter_type[e_player_filter_type["specific_player"] = 4] = "specific_player";
|
|
122
|
+
e_player_filter_type[e_player_filter_type["normal"] = 5] = "normal";
|
|
123
|
+
})(e_player_filter_type || (exports.e_player_filter_type = e_player_filter_type = {}));
|
|
124
|
+
var e_chud_navpoint_icon_type;
|
|
125
|
+
(function (e_chud_navpoint_icon_type) {
|
|
126
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["speaker"] = 0] = "speaker";
|
|
127
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["dead_teammate_marker"] = 1] = "dead_teammate_marker";
|
|
128
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["lightning_bolt"] = 2] = "lightning_bolt";
|
|
129
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["bullseye"] = 3] = "bullseye";
|
|
130
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["diamond"] = 4] = "diamond";
|
|
131
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["bomb"] = 5] = "bomb";
|
|
132
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["flag"] = 6] = "flag";
|
|
133
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["skull"] = 7] = "skull";
|
|
134
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["crown"] = 8] = "crown";
|
|
135
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["vip"] = 9] = "vip";
|
|
136
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["padlock"] = 10] = "padlock";
|
|
137
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_a"] = 11] = "territory_a";
|
|
138
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_b"] = 12] = "territory_b";
|
|
139
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_c"] = 13] = "territory_c";
|
|
140
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_d"] = 14] = "territory_d";
|
|
141
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_e"] = 15] = "territory_e";
|
|
142
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_f"] = 16] = "territory_f";
|
|
143
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_g"] = 17] = "territory_g";
|
|
144
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_h"] = 18] = "territory_h";
|
|
145
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["territory_i"] = 19] = "territory_i";
|
|
146
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["supply"] = 20] = "supply";
|
|
147
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["supply_health"] = 21] = "supply_health";
|
|
148
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["supply_air_drop"] = 22] = "supply_air_drop";
|
|
149
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["supply_ammo"] = 23] = "supply_ammo";
|
|
150
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["arrow"] = 24] = "arrow";
|
|
151
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["defend"] = 25] = "defend";
|
|
152
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["ordnance"] = 26] = "ordnance";
|
|
153
|
+
e_chud_navpoint_icon_type[e_chud_navpoint_icon_type["inward"] = 27] = "inward";
|
|
154
|
+
})(e_chud_navpoint_icon_type || (exports.e_chud_navpoint_icon_type = e_chud_navpoint_icon_type = {}));
|
|
155
|
+
var e_navpoint_priority;
|
|
156
|
+
(function (e_navpoint_priority) {
|
|
157
|
+
e_navpoint_priority[e_navpoint_priority["low"] = 0] = "low";
|
|
158
|
+
e_navpoint_priority[e_navpoint_priority["normal"] = 1] = "normal";
|
|
159
|
+
e_navpoint_priority[e_navpoint_priority["high"] = 2] = "high";
|
|
160
|
+
e_navpoint_priority[e_navpoint_priority["blink"] = 3] = "blink";
|
|
161
|
+
})(e_navpoint_priority || (exports.e_navpoint_priority = e_navpoint_priority = {}));
|
|
162
|
+
var e_megalogamengine_hud_meter_input_type;
|
|
163
|
+
(function (e_megalogamengine_hud_meter_input_type) {
|
|
164
|
+
e_megalogamengine_hud_meter_input_type[e_megalogamengine_hud_meter_input_type["none"] = 0] = "none";
|
|
165
|
+
e_megalogamengine_hud_meter_input_type[e_megalogamengine_hud_meter_input_type["number"] = 1] = "number";
|
|
166
|
+
e_megalogamengine_hud_meter_input_type[e_megalogamengine_hud_meter_input_type["timer"] = 2] = "timer";
|
|
167
|
+
})(e_megalogamengine_hud_meter_input_type || (exports.e_megalogamengine_hud_meter_input_type = e_megalogamengine_hud_meter_input_type = {}));
|
|
168
|
+
var e_numeric_comparison;
|
|
169
|
+
(function (e_numeric_comparison) {
|
|
170
|
+
e_numeric_comparison[e_numeric_comparison["less_than"] = 0] = "less_than";
|
|
171
|
+
e_numeric_comparison[e_numeric_comparison["greater_than"] = 1] = "greater_than";
|
|
172
|
+
e_numeric_comparison[e_numeric_comparison["equal_to"] = 2] = "equal_to";
|
|
173
|
+
e_numeric_comparison[e_numeric_comparison["less_than_or_equal_to"] = 3] = "less_than_or_equal_to";
|
|
174
|
+
e_numeric_comparison[e_numeric_comparison["greater_than_or_equal_to"] = 4] = "greater_than_or_equal_to";
|
|
175
|
+
e_numeric_comparison[e_numeric_comparison["not_equal_to"] = 5] = "not_equal_to";
|
|
176
|
+
})(e_numeric_comparison || (exports.e_numeric_comparison = e_numeric_comparison = {}));
|
|
177
|
+
/** Matches `e_create_object_flags` in blf_lib `megalogamengine_actions.rs`. */
|
|
178
|
+
class e_create_object_flags {
|
|
179
|
+
never_garbage_collect = false;
|
|
180
|
+
suppress_effect = false;
|
|
181
|
+
absolute_orientation = false;
|
|
182
|
+
to_raw() {
|
|
183
|
+
return ((this.never_garbage_collect ? 1 : 0) |
|
|
184
|
+
(this.suppress_effect ? 1 << 1 : 0) |
|
|
185
|
+
(this.absolute_orientation ? 1 << 2 : 0));
|
|
186
|
+
}
|
|
187
|
+
static from_raw(raw) {
|
|
188
|
+
const flags = new e_create_object_flags();
|
|
189
|
+
flags.never_garbage_collect = (raw & 1) !== 0;
|
|
190
|
+
flags.suppress_effect = (raw & (1 << 1)) !== 0;
|
|
191
|
+
flags.absolute_orientation = (raw & (1 << 2)) !== 0;
|
|
192
|
+
return flags;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
exports.e_create_object_flags = e_create_object_flags;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.c_object_type_reference = exports.c_custom_timer_reference = exports.c_custom_variable_reference = exports.c_team_reference = exports.c_player_reference = exports.c_object_reference = exports.c_explicit_team = exports.c_explicit_object = exports.c_explicit_player = exports.e_custom_timer_type = void 0;
|
|
3
|
+
exports.c_object_type_reference = exports.c_custom_timer_reference = exports.c_custom_variable_reference = exports.c_team_reference = exports.c_player_reference = exports.c_object_reference = exports.c_explicit_team = exports.c_explicit_object = exports.c_explicit_player = exports.e_custom_timer_type = exports.e_explicit_team_type = exports.e_explicit_player_type = exports.e_explicit_object_type = void 0;
|
|
4
4
|
const error_1 = require("../../../../../error");
|
|
5
|
+
const megalogamengine_enums_1 = require("./megalogamengine_enums");
|
|
6
|
+
var megalogamengine_enums_2 = require("./megalogamengine_enums");
|
|
7
|
+
Object.defineProperty(exports, "e_explicit_object_type", { enumerable: true, get: function () { return megalogamengine_enums_2.e_explicit_object_type; } });
|
|
8
|
+
Object.defineProperty(exports, "e_explicit_player_type", { enumerable: true, get: function () { return megalogamengine_enums_2.e_explicit_player_type; } });
|
|
9
|
+
Object.defineProperty(exports, "e_explicit_team_type", { enumerable: true, get: function () { return megalogamengine_enums_2.e_explicit_team_type; } });
|
|
5
10
|
function requireField(value, message) {
|
|
6
11
|
if (value === undefined) {
|
|
7
12
|
throw new error_1.BlfError(message);
|
|
@@ -19,32 +24,32 @@ var e_custom_timer_type;
|
|
|
19
24
|
e_custom_timer_type[e_custom_timer_type["grace_period"] = 6] = "grace_period";
|
|
20
25
|
})(e_custom_timer_type || (exports.e_custom_timer_type = e_custom_timer_type = {}));
|
|
21
26
|
class c_explicit_player {
|
|
22
|
-
m_explicit_player_type =
|
|
27
|
+
m_explicit_player_type = megalogamengine_enums_1.e_explicit_player_type.no_player;
|
|
23
28
|
decode(bitstream) {
|
|
24
|
-
this.m_explicit_player_type = bitstream.
|
|
29
|
+
this.m_explicit_player_type = bitstream.read_enum("explicit-player-type", 5, megalogamengine_enums_1.e_explicit_player_type);
|
|
25
30
|
}
|
|
26
31
|
encode(bitstream) {
|
|
27
|
-
bitstream.
|
|
32
|
+
bitstream.write_enum(this.m_explicit_player_type, 5);
|
|
28
33
|
}
|
|
29
34
|
}
|
|
30
35
|
exports.c_explicit_player = c_explicit_player;
|
|
31
36
|
class c_explicit_object {
|
|
32
|
-
m_explicit_object_type =
|
|
37
|
+
m_explicit_object_type = megalogamengine_enums_1.e_explicit_object_type.no_object;
|
|
33
38
|
decode(bitstream) {
|
|
34
|
-
this.m_explicit_object_type = bitstream.
|
|
39
|
+
this.m_explicit_object_type = bitstream.read_enum("explicit-object-type", 5, megalogamengine_enums_1.e_explicit_object_type);
|
|
35
40
|
}
|
|
36
41
|
encode(bitstream) {
|
|
37
|
-
bitstream.
|
|
42
|
+
bitstream.write_enum(this.m_explicit_object_type, 5);
|
|
38
43
|
}
|
|
39
44
|
}
|
|
40
45
|
exports.c_explicit_object = c_explicit_object;
|
|
41
46
|
class c_explicit_team {
|
|
42
|
-
m_explicit_team_type =
|
|
47
|
+
m_explicit_team_type = megalogamengine_enums_1.e_explicit_team_type.no_team;
|
|
43
48
|
decode(bitstream) {
|
|
44
|
-
this.m_explicit_team_type = bitstream.
|
|
49
|
+
this.m_explicit_team_type = bitstream.read_enum("explicit-team-type", 5, megalogamengine_enums_1.e_explicit_team_type);
|
|
45
50
|
}
|
|
46
51
|
encode(bitstream) {
|
|
47
|
-
bitstream.
|
|
52
|
+
bitstream.write_enum(this.m_explicit_team_type, 5);
|
|
48
53
|
}
|
|
49
54
|
}
|
|
50
55
|
exports.c_explicit_team = c_explicit_team;
|