@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
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { e_game_engine_timer_rate, e_weapon_pickup_priority, } from "../game_engine_enums";
|
|
2
|
+
import { e_action_team_or_player_target, e_biped_give_weapon_mode, e_chud_navpoint_icon_type, e_create_object_flags, e_grenade_type, e_math_operation, e_megalogamengine_hud_meter_input_type, e_navpoint_priority, } from "./megalogamengine_enums";
|
|
1
3
|
import { c_custom_timer_reference, c_custom_variable_reference, c_object_reference, c_object_type_reference, c_player_reference, c_team_reference, } from "./megalogamengine_references";
|
|
2
4
|
import { c_dynamic_string, c_player_filter_modifier, } from "./megalogamengine_text";
|
|
3
5
|
import { s_variant_variable } from "./s_variant_variable";
|
|
@@ -10,52 +12,54 @@ var e_boundary_shape;
|
|
|
10
12
|
e_boundary_shape[e_boundary_shape["box"] = 3] = "box";
|
|
11
13
|
})(e_boundary_shape || (e_boundary_shape = {}));
|
|
12
14
|
export class s_team_or_player_target {
|
|
13
|
-
m_target =
|
|
15
|
+
m_target = e_action_team_or_player_target.team;
|
|
14
16
|
m_team;
|
|
15
17
|
m_player;
|
|
16
18
|
decode(bitstream) {
|
|
17
|
-
this.m_target = bitstream.
|
|
19
|
+
this.m_target = bitstream.read_enum("target", 2, e_action_team_or_player_target);
|
|
18
20
|
switch (this.m_target) {
|
|
19
|
-
case
|
|
21
|
+
case e_action_team_or_player_target.team: {
|
|
20
22
|
const team = new c_team_reference();
|
|
21
23
|
team.decode(bitstream);
|
|
22
24
|
this.m_team = team;
|
|
23
25
|
break;
|
|
24
26
|
}
|
|
25
|
-
case
|
|
27
|
+
case e_action_team_or_player_target.player: {
|
|
26
28
|
const player = new c_player_reference();
|
|
27
29
|
player.decode(bitstream);
|
|
28
30
|
this.m_player = player;
|
|
29
31
|
break;
|
|
30
32
|
}
|
|
31
|
-
|
|
33
|
+
case e_action_team_or_player_target.all_players:
|
|
32
34
|
break;
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
encode(bitstream) {
|
|
36
|
-
bitstream.
|
|
38
|
+
bitstream.write_enum(this.m_target, 2);
|
|
37
39
|
switch (this.m_target) {
|
|
38
|
-
case
|
|
40
|
+
case e_action_team_or_player_target.team:
|
|
39
41
|
this.m_team?.encode(bitstream);
|
|
40
42
|
break;
|
|
41
|
-
case
|
|
43
|
+
case e_action_team_or_player_target.player:
|
|
42
44
|
this.m_player?.encode(bitstream);
|
|
43
45
|
break;
|
|
46
|
+
case e_action_team_or_player_target.all_players:
|
|
47
|
+
break;
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
50
|
}
|
|
47
51
|
export class s_action_set_score_parameters {
|
|
48
52
|
m_target = new s_team_or_player_target();
|
|
49
|
-
m_operation =
|
|
53
|
+
m_operation = e_math_operation.add;
|
|
50
54
|
m_variable = new c_custom_variable_reference();
|
|
51
55
|
decode(bitstream) {
|
|
52
56
|
this.m_target.decode(bitstream);
|
|
53
|
-
this.m_operation = bitstream.
|
|
57
|
+
this.m_operation = bitstream.read_enum("operation", 4, e_math_operation);
|
|
54
58
|
this.m_variable.decode(bitstream);
|
|
55
59
|
}
|
|
56
60
|
encode(bitstream) {
|
|
57
61
|
this.m_target.encode(bitstream);
|
|
58
|
-
bitstream.
|
|
62
|
+
bitstream.write_enum(this.m_operation, 4);
|
|
59
63
|
this.m_variable.encode(bitstream);
|
|
60
64
|
}
|
|
61
65
|
}
|
|
@@ -64,7 +68,7 @@ export class s_action_create_object_parameters {
|
|
|
64
68
|
m_object_reference_1 = new c_object_reference();
|
|
65
69
|
m_object_reference_2 = new c_object_reference();
|
|
66
70
|
m_filter_index = 0;
|
|
67
|
-
m_flags =
|
|
71
|
+
m_flags = new e_create_object_flags();
|
|
68
72
|
m_offset = 0;
|
|
69
73
|
m_variant_name_index = 0;
|
|
70
74
|
decode(bitstream) {
|
|
@@ -72,7 +76,7 @@ export class s_action_create_object_parameters {
|
|
|
72
76
|
this.m_object_reference_1.decode(bitstream);
|
|
73
77
|
this.m_object_reference_2.decode(bitstream);
|
|
74
78
|
this.m_filter_index = bitstream.read_index("filter_index", 16, 4);
|
|
75
|
-
this.m_flags = bitstream.read_integer("flags", 3);
|
|
79
|
+
this.m_flags = e_create_object_flags.from_raw(bitstream.read_integer("flags", 3));
|
|
76
80
|
this.m_offset = bitstream.read_integer("offset", 24);
|
|
77
81
|
this.m_variant_name_index = bitstream.read_integer("variant-name-index", 8);
|
|
78
82
|
}
|
|
@@ -81,19 +85,19 @@ export class s_action_create_object_parameters {
|
|
|
81
85
|
this.m_object_reference_1.encode(bitstream);
|
|
82
86
|
this.m_object_reference_2.encode(bitstream);
|
|
83
87
|
bitstream.write_index(this.m_filter_index, 16, 4);
|
|
84
|
-
bitstream.write_integer(this.m_flags, 3);
|
|
88
|
+
bitstream.write_integer(this.m_flags.to_raw(), 3);
|
|
85
89
|
bitstream.write_integer(this.m_offset, 24);
|
|
86
90
|
bitstream.write_integer(this.m_variant_name_index, 8);
|
|
87
91
|
}
|
|
88
92
|
}
|
|
89
93
|
export class s_action_navpoint_set_icon_parameters {
|
|
90
94
|
m_object = new c_object_reference();
|
|
91
|
-
m_navpoint_icon =
|
|
95
|
+
m_navpoint_icon = e_chud_navpoint_icon_type.speaker;
|
|
92
96
|
m_variable;
|
|
93
97
|
decode(bitstream) {
|
|
94
98
|
this.m_object.decode(bitstream);
|
|
95
|
-
this.m_navpoint_icon = bitstream.
|
|
96
|
-
if (this.m_navpoint_icon ===
|
|
99
|
+
this.m_navpoint_icon = bitstream.read_enum("navpoint-icon", 5, e_chud_navpoint_icon_type);
|
|
100
|
+
if (this.m_navpoint_icon === e_chud_navpoint_icon_type.territory_b) {
|
|
97
101
|
const variable = new c_custom_variable_reference();
|
|
98
102
|
variable.decode(bitstream);
|
|
99
103
|
this.m_variable = variable;
|
|
@@ -101,22 +105,22 @@ export class s_action_navpoint_set_icon_parameters {
|
|
|
101
105
|
}
|
|
102
106
|
encode(bitstream) {
|
|
103
107
|
this.m_object.encode(bitstream);
|
|
104
|
-
bitstream.
|
|
105
|
-
if (this.m_navpoint_icon ===
|
|
108
|
+
bitstream.write_enum(this.m_navpoint_icon, 5);
|
|
109
|
+
if (this.m_navpoint_icon === e_chud_navpoint_icon_type.territory_b) {
|
|
106
110
|
this.m_variable.encode(bitstream);
|
|
107
111
|
}
|
|
108
112
|
}
|
|
109
113
|
}
|
|
110
114
|
export class s_action_navpoint_set_priority_parameters {
|
|
111
115
|
m_object = new c_object_reference();
|
|
112
|
-
m_priority =
|
|
116
|
+
m_priority = e_navpoint_priority.low;
|
|
113
117
|
decode(bitstream) {
|
|
114
118
|
this.m_object.decode(bitstream);
|
|
115
|
-
this.m_priority = bitstream.
|
|
119
|
+
this.m_priority = bitstream.read_enum("priority", 2, e_navpoint_priority);
|
|
116
120
|
}
|
|
117
121
|
encode(bitstream) {
|
|
118
122
|
this.m_object.encode(bitstream);
|
|
119
|
-
bitstream.
|
|
123
|
+
bitstream.write_enum(this.m_priority, 2);
|
|
120
124
|
}
|
|
121
125
|
}
|
|
122
126
|
export class s_action_navpoint_set_timer_parameters {
|
|
@@ -149,16 +153,16 @@ export class s_action_navpoint_set_visible_range_parameters {
|
|
|
149
153
|
export class s_action_set_parameters {
|
|
150
154
|
m_variable_1 = new s_variant_variable();
|
|
151
155
|
m_variable_2 = new s_variant_variable();
|
|
152
|
-
m_operation =
|
|
156
|
+
m_operation = e_math_operation.add;
|
|
153
157
|
decode(bitstream) {
|
|
154
158
|
this.m_variable_1.decode(bitstream);
|
|
155
159
|
this.m_variable_2.decode(bitstream);
|
|
156
|
-
this.m_operation = bitstream.
|
|
160
|
+
this.m_operation = bitstream.read_enum("operation", 4, e_math_operation);
|
|
157
161
|
}
|
|
158
162
|
encode(bitstream) {
|
|
159
163
|
this.m_variable_1.encode(bitstream);
|
|
160
164
|
this.m_variable_2.encode(bitstream);
|
|
161
|
-
bitstream.
|
|
165
|
+
bitstream.write_enum(this.m_operation, 4);
|
|
162
166
|
}
|
|
163
167
|
}
|
|
164
168
|
export class s_action_set_boundary_parameters {
|
|
@@ -288,14 +292,14 @@ export class s_action_hud_post_message_parameters {
|
|
|
288
292
|
}
|
|
289
293
|
export class s_action_timer_set_rate_parameters {
|
|
290
294
|
m_timer = new c_custom_timer_reference();
|
|
291
|
-
m_rate =
|
|
295
|
+
m_rate = e_game_engine_timer_rate.zero;
|
|
292
296
|
decode(bitstream) {
|
|
293
297
|
this.m_timer.decode(bitstream);
|
|
294
|
-
this.m_rate = bitstream.
|
|
298
|
+
this.m_rate = bitstream.read_enum("timer-rate", 5, e_game_engine_timer_rate);
|
|
295
299
|
}
|
|
296
300
|
encode(bitstream) {
|
|
297
301
|
this.m_timer.encode(bitstream);
|
|
298
|
-
bitstream.
|
|
302
|
+
bitstream.write_enum(this.m_rate, 5);
|
|
299
303
|
}
|
|
300
304
|
}
|
|
301
305
|
export class s_action_for_each_parameters {
|
|
@@ -339,16 +343,16 @@ export class s_action_object_attach_parameters {
|
|
|
339
343
|
}
|
|
340
344
|
export class s_action_player_adjust_money_parameters {
|
|
341
345
|
m_player = new c_player_reference();
|
|
342
|
-
m_math_operation =
|
|
346
|
+
m_math_operation = e_math_operation.add;
|
|
343
347
|
m_variable = new c_custom_variable_reference();
|
|
344
348
|
decode(bitstream) {
|
|
345
349
|
this.m_player.decode(bitstream);
|
|
346
|
-
this.m_math_operation = bitstream.
|
|
350
|
+
this.m_math_operation = bitstream.read_enum("math-operation", 4, e_math_operation);
|
|
347
351
|
this.m_variable.decode(bitstream);
|
|
348
352
|
}
|
|
349
353
|
encode(bitstream) {
|
|
350
354
|
this.m_player.encode(bitstream);
|
|
351
|
-
bitstream.
|
|
355
|
+
bitstream.write_enum(this.m_math_operation, 4);
|
|
352
356
|
this.m_variable.encode(bitstream);
|
|
353
357
|
}
|
|
354
358
|
}
|
|
@@ -369,14 +373,14 @@ export class s_action_player_enable_purchases_parameters {
|
|
|
369
373
|
}
|
|
370
374
|
export class s_action_weapon_set_pickup_priority_parameters {
|
|
371
375
|
m_object = new c_object_reference();
|
|
372
|
-
m_weapon_pickup_priority =
|
|
376
|
+
m_weapon_pickup_priority = e_weapon_pickup_priority.normal;
|
|
373
377
|
decode(bitstream) {
|
|
374
378
|
this.m_object.decode(bitstream);
|
|
375
|
-
this.m_weapon_pickup_priority = bitstream.
|
|
379
|
+
this.m_weapon_pickup_priority = bitstream.read_enum("weapon-pickup-priority", 2, e_weapon_pickup_priority);
|
|
376
380
|
}
|
|
377
381
|
encode(bitstream) {
|
|
378
382
|
this.m_object.encode(bitstream);
|
|
379
|
-
bitstream.
|
|
383
|
+
bitstream.write_enum(this.m_weapon_pickup_priority, 2);
|
|
380
384
|
}
|
|
381
385
|
}
|
|
382
386
|
export class s_action_hud_widget_text_base {
|
|
@@ -392,14 +396,14 @@ export class s_action_hud_widget_text_base {
|
|
|
392
396
|
}
|
|
393
397
|
}
|
|
394
398
|
export class c_megalogamengine_hud_meter_input {
|
|
395
|
-
m_type =
|
|
399
|
+
m_type = e_megalogamengine_hud_meter_input_type.none;
|
|
396
400
|
m_variable_1;
|
|
397
401
|
m_variable_2;
|
|
398
402
|
m_timer;
|
|
399
403
|
decode(bitstream) {
|
|
400
|
-
this.m_type = bitstream.
|
|
404
|
+
this.m_type = bitstream.read_enum("type", 2, e_megalogamengine_hud_meter_input_type);
|
|
401
405
|
switch (this.m_type) {
|
|
402
|
-
case
|
|
406
|
+
case e_megalogamengine_hud_meter_input_type.number: {
|
|
403
407
|
const variable1 = new c_custom_variable_reference();
|
|
404
408
|
const variable2 = new c_custom_variable_reference();
|
|
405
409
|
variable1.decode(bitstream);
|
|
@@ -408,27 +412,29 @@ export class c_megalogamengine_hud_meter_input {
|
|
|
408
412
|
this.m_variable_2 = variable2;
|
|
409
413
|
break;
|
|
410
414
|
}
|
|
411
|
-
case
|
|
415
|
+
case e_megalogamengine_hud_meter_input_type.timer: {
|
|
412
416
|
const timer = new c_custom_timer_reference();
|
|
413
417
|
timer.decode(bitstream);
|
|
414
418
|
this.m_timer = timer;
|
|
415
419
|
break;
|
|
416
420
|
}
|
|
417
|
-
|
|
421
|
+
case e_megalogamengine_hud_meter_input_type.none:
|
|
418
422
|
break;
|
|
419
423
|
}
|
|
420
424
|
}
|
|
421
425
|
encode(bitstream) {
|
|
422
426
|
switch (this.m_type) {
|
|
423
|
-
case
|
|
424
|
-
bitstream.
|
|
427
|
+
case e_megalogamengine_hud_meter_input_type.number:
|
|
428
|
+
bitstream.write_enum(e_megalogamengine_hud_meter_input_type.number, 2);
|
|
425
429
|
this.m_variable_1.encode(bitstream);
|
|
426
430
|
this.m_variable_2.encode(bitstream);
|
|
427
431
|
break;
|
|
428
|
-
case
|
|
429
|
-
bitstream.
|
|
432
|
+
case e_megalogamengine_hud_meter_input_type.timer:
|
|
433
|
+
bitstream.write_enum(e_megalogamengine_hud_meter_input_type.timer, 2);
|
|
430
434
|
this.m_timer.encode(bitstream);
|
|
431
435
|
break;
|
|
436
|
+
case e_megalogamengine_hud_meter_input_type.none:
|
|
437
|
+
break;
|
|
432
438
|
}
|
|
433
439
|
}
|
|
434
440
|
}
|
|
@@ -512,16 +518,16 @@ export class s_action_team_set_coop_spawning_parameters {
|
|
|
512
518
|
}
|
|
513
519
|
export class s_action_vitality_adjustment_parameters {
|
|
514
520
|
m_object = new c_object_reference();
|
|
515
|
-
m_operation =
|
|
521
|
+
m_operation = e_math_operation.add;
|
|
516
522
|
m_variable = new c_custom_variable_reference();
|
|
517
523
|
decode(bitstream) {
|
|
518
524
|
this.m_object.decode(bitstream);
|
|
519
|
-
this.m_operation = bitstream.
|
|
525
|
+
this.m_operation = bitstream.read_enum("operation", 4, e_math_operation);
|
|
520
526
|
this.m_variable.decode(bitstream);
|
|
521
527
|
}
|
|
522
528
|
encode(bitstream) {
|
|
523
529
|
this.m_object.encode(bitstream);
|
|
524
|
-
bitstream.
|
|
530
|
+
bitstream.write_enum(this.m_operation, 4);
|
|
525
531
|
this.m_variable.encode(bitstream);
|
|
526
532
|
}
|
|
527
533
|
}
|
|
@@ -554,19 +560,19 @@ export class s_action_player_set_requisition_palette_parameters {
|
|
|
554
560
|
}
|
|
555
561
|
export class s_action_adjust_grenades_parameters {
|
|
556
562
|
m_player = new c_player_reference();
|
|
557
|
-
m_grenade_type =
|
|
558
|
-
m_math_operation =
|
|
563
|
+
m_grenade_type = e_grenade_type.frag_grenade;
|
|
564
|
+
m_math_operation = e_math_operation.add;
|
|
559
565
|
m_variable = new c_custom_variable_reference();
|
|
560
566
|
decode(bitstream) {
|
|
561
567
|
this.m_player.decode(bitstream);
|
|
562
|
-
this.m_grenade_type = bitstream.
|
|
563
|
-
this.m_math_operation = bitstream.
|
|
568
|
+
this.m_grenade_type = bitstream.read_enum("grenade-type", 1, e_grenade_type);
|
|
569
|
+
this.m_math_operation = bitstream.read_enum("math-operation", 4, e_math_operation);
|
|
564
570
|
this.m_variable.decode(bitstream);
|
|
565
571
|
}
|
|
566
572
|
encode(bitstream) {
|
|
567
573
|
this.m_player.encode(bitstream);
|
|
568
|
-
bitstream.
|
|
569
|
-
bitstream.
|
|
574
|
+
bitstream.write_enum(this.m_grenade_type, 1);
|
|
575
|
+
bitstream.write_enum(this.m_math_operation, 4);
|
|
570
576
|
this.m_variable.encode(bitstream);
|
|
571
577
|
}
|
|
572
578
|
}
|
|
@@ -732,16 +738,16 @@ export class s_action_object_face_object_parameters {
|
|
|
732
738
|
export class s_action_biped_give_weapon_parameters {
|
|
733
739
|
m_object = new c_object_reference();
|
|
734
740
|
m_object_type = new c_object_type_reference();
|
|
735
|
-
m_mode =
|
|
741
|
+
m_mode = e_biped_give_weapon_mode.as_primary_weapon;
|
|
736
742
|
decode(bitstream) {
|
|
737
743
|
this.m_object.decode(bitstream);
|
|
738
744
|
this.m_object_type.decode(bitstream);
|
|
739
|
-
this.m_mode = bitstream.
|
|
745
|
+
this.m_mode = bitstream.read_enum("mode", 2, e_biped_give_weapon_mode);
|
|
740
746
|
}
|
|
741
747
|
encode(bitstream) {
|
|
742
748
|
this.m_object.encode(bitstream);
|
|
743
749
|
this.m_object_type.encode(bitstream);
|
|
744
|
-
bitstream.
|
|
750
|
+
bitstream.write_enum(this.m_mode, 2);
|
|
745
751
|
}
|
|
746
752
|
}
|
|
747
753
|
export class s_action_biped_drop_weapon_parameters {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { c_bitstream_reader, c_bitstream_writer } from "../../../../../bitstream";
|
|
2
|
+
import { e_numeric_comparison } from "./megalogamengine_enums";
|
|
2
3
|
import { c_custom_timer_reference, c_object_reference, c_object_type_reference, c_player_reference, c_team_reference } from "./megalogamengine_references";
|
|
3
4
|
import { s_variant_variable } from "./s_variant_variable";
|
|
4
5
|
export declare class s_condition_if_parameters {
|
|
5
6
|
m_left: s_variant_variable;
|
|
6
7
|
m_right: s_variant_variable;
|
|
7
|
-
m_comparison:
|
|
8
|
+
m_comparison: e_numeric_comparison;
|
|
8
9
|
decode(bitstream: c_bitstream_reader): void;
|
|
9
10
|
encode(bitstream: c_bitstream_writer): void;
|
|
10
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"megalogamengine_conditions.d.ts","sourceRoot":"","sources":["../../../../../../src/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_conditions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,yBAAyB;IACpC,MAAM,qBAA4B;IAClC,OAAO,qBAA4B;IACnC,YAAY,
|
|
1
|
+
{"version":3,"file":"megalogamengine_conditions.d.ts","sourceRoot":"","sources":["../../../../../../src/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_conditions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,yBAAyB;IACpC,MAAM,qBAA4B;IAClC,OAAO,qBAA4B;IACnC,YAAY,EAAE,oBAAoB,CAAkC;IAEpE,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAU3C,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;CAK5C;AAED,qBAAa,kCAAkC;IAC7C,QAAQ,qBAA4B;IACpC,aAAa,SAAK;IAElB,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAK3C,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;CAI5C;AAED,qBAAa,uCAAuC;IAClD,QAAQ,mBAA0B;IAClC,QAAQ,mBAA0B;IAClC,aAAa,SAAK;IAElB,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAM3C,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;CAK5C;AAED,qBAAa,4CAA4C;IACvD,QAAQ,qBAA4B;IACpC,cAAc,SAAK;IAEnB,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAK3C,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;CAI5C;AAED,qBAAa,WAAW;IACtB,MAAM,SAAK;IACX,SAAS,UAAS;IAClB,aAAa,SAAK;IAClB,uBAAuB,SAAK;IAC5B,eAAe,CAAC,EAAE,yBAAyB,CAAC;IAC5C,oBAAoB,CAAC,EAAE,kBAAkB,CAAC;IAC1C,oBAAoB,CAAC,EAAE,kBAAkB,CAAC;IAC1C,wBAAwB,CAAC,EAAE,kCAAkC,CAAC;IAC9D,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC,6BAA6B,CAAC,EAAE,uCAAuC,CAAC;IACxE,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAClD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,oBAAoB,CAAC,EAAE,kBAAkB,CAAC;IAC1C,oBAAoB,CAAC,EAAE,kBAAkB,CAAC;IAC1C,kCAAkC,CAAC,EAAE,4CAA4C,CAAC;IAElF,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAiG3C,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;CAoD5C"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
+
import { e_numeric_comparison } from "./megalogamengine_enums";
|
|
1
2
|
import { c_custom_timer_reference, c_object_reference, c_object_type_reference, c_player_reference, c_team_reference, } from "./megalogamengine_references";
|
|
2
3
|
import { s_variant_variable } from "./s_variant_variable";
|
|
3
4
|
export class s_condition_if_parameters {
|
|
4
5
|
m_left = new s_variant_variable();
|
|
5
6
|
m_right = new s_variant_variable();
|
|
6
|
-
m_comparison =
|
|
7
|
+
m_comparison = e_numeric_comparison.less_than;
|
|
7
8
|
decode(bitstream) {
|
|
8
9
|
this.m_left.decode(bitstream);
|
|
9
10
|
this.m_right.decode(bitstream);
|
|
10
|
-
this.m_comparison = bitstream.
|
|
11
|
+
this.m_comparison = bitstream.read_enum("comparison", 3, e_numeric_comparison);
|
|
11
12
|
}
|
|
12
13
|
encode(bitstream) {
|
|
13
14
|
this.m_left.encode(bitstream);
|
|
14
15
|
this.m_right.encode(bitstream);
|
|
15
|
-
bitstream.
|
|
16
|
+
bitstream.write_enum(this.m_comparison, 3);
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
export class s_condition_player_died_parameters {
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
export declare enum e_explicit_team_type {
|
|
2
|
+
no_team = 0,
|
|
3
|
+
team_0 = 1,
|
|
4
|
+
team_1 = 2,
|
|
5
|
+
team_2 = 3,
|
|
6
|
+
team_3 = 4,
|
|
7
|
+
team_4 = 5,
|
|
8
|
+
team_5 = 6,
|
|
9
|
+
team_6 = 7,
|
|
10
|
+
team_7 = 8,
|
|
11
|
+
neutral_team = 9,
|
|
12
|
+
global_0 = 10,
|
|
13
|
+
global_1 = 11,
|
|
14
|
+
global_2 = 12,
|
|
15
|
+
global_3 = 13,
|
|
16
|
+
global_4 = 14,
|
|
17
|
+
global_5 = 15,
|
|
18
|
+
global_6 = 16,
|
|
19
|
+
global_7 = 17,
|
|
20
|
+
current = 18,
|
|
21
|
+
hud_player_owner_team = 19,
|
|
22
|
+
hud_target_player_owner_team = 20
|
|
23
|
+
}
|
|
24
|
+
export declare enum e_explicit_player_type {
|
|
25
|
+
no_player = 0,
|
|
26
|
+
player_0 = 1,
|
|
27
|
+
player_1 = 2,
|
|
28
|
+
player_2 = 3,
|
|
29
|
+
player_3 = 4,
|
|
30
|
+
player_4 = 5,
|
|
31
|
+
player_5 = 6,
|
|
32
|
+
player_6 = 7,
|
|
33
|
+
player_7 = 8,
|
|
34
|
+
player_8 = 9,
|
|
35
|
+
player_9 = 10,
|
|
36
|
+
player_10 = 11,
|
|
37
|
+
player_11 = 12,
|
|
38
|
+
player_12 = 13,
|
|
39
|
+
player_13 = 14,
|
|
40
|
+
player_14 = 15,
|
|
41
|
+
player_15 = 16,
|
|
42
|
+
global_0 = 17,
|
|
43
|
+
global_1 = 18,
|
|
44
|
+
global_2 = 19,
|
|
45
|
+
global_3 = 20,
|
|
46
|
+
global_4 = 21,
|
|
47
|
+
global_5 = 22,
|
|
48
|
+
global_6 = 23,
|
|
49
|
+
global_7 = 24,
|
|
50
|
+
current = 25,
|
|
51
|
+
hud = 26,
|
|
52
|
+
hud_target = 27,
|
|
53
|
+
killer = 28
|
|
54
|
+
}
|
|
55
|
+
export declare enum e_explicit_object_type {
|
|
56
|
+
no_object = 0,
|
|
57
|
+
global_0 = 1,
|
|
58
|
+
global_1 = 2,
|
|
59
|
+
global_2 = 3,
|
|
60
|
+
global_3 = 4,
|
|
61
|
+
global_4 = 5,
|
|
62
|
+
global_5 = 6,
|
|
63
|
+
global_6 = 7,
|
|
64
|
+
global_7 = 8,
|
|
65
|
+
global_8 = 9,
|
|
66
|
+
global_9 = 10,
|
|
67
|
+
global_10 = 11,
|
|
68
|
+
global_11 = 12,
|
|
69
|
+
global_12 = 13,
|
|
70
|
+
global_13 = 14,
|
|
71
|
+
global_14 = 15,
|
|
72
|
+
global_15 = 16,
|
|
73
|
+
current = 17,
|
|
74
|
+
hud_target = 18,
|
|
75
|
+
killed = 19,
|
|
76
|
+
killer = 20,
|
|
77
|
+
unknown_21 = 21
|
|
78
|
+
}
|
|
79
|
+
export declare enum e_action_team_or_player_target {
|
|
80
|
+
team = 0,
|
|
81
|
+
player = 1,
|
|
82
|
+
all_players = 2
|
|
83
|
+
}
|
|
84
|
+
export declare enum e_math_operation {
|
|
85
|
+
add = 0,
|
|
86
|
+
subtract = 1,
|
|
87
|
+
multiply_by = 2,
|
|
88
|
+
divide_by = 3,
|
|
89
|
+
set_to = 4,
|
|
90
|
+
modulo_by = 5,
|
|
91
|
+
bitwise_and_with = 6,
|
|
92
|
+
bitwise_or_with = 7,
|
|
93
|
+
bitwise_xor_with = 8,
|
|
94
|
+
bitwise_not_with = 9
|
|
95
|
+
}
|
|
96
|
+
export declare enum e_grenade_type {
|
|
97
|
+
frag_grenade = 0,
|
|
98
|
+
plasma_grenade = 1
|
|
99
|
+
}
|
|
100
|
+
export declare enum e_biped_give_weapon_mode {
|
|
101
|
+
as_primary_weapon = 0,
|
|
102
|
+
normally = 1,
|
|
103
|
+
silently = 2
|
|
104
|
+
}
|
|
105
|
+
export declare enum e_player_filter_type {
|
|
106
|
+
no_one = 0,
|
|
107
|
+
everyone = 1,
|
|
108
|
+
allies = 2,
|
|
109
|
+
enemies = 3,
|
|
110
|
+
specific_player = 4,
|
|
111
|
+
normal = 5
|
|
112
|
+
}
|
|
113
|
+
export declare enum e_chud_navpoint_icon_type {
|
|
114
|
+
speaker = 0,
|
|
115
|
+
dead_teammate_marker = 1,
|
|
116
|
+
lightning_bolt = 2,
|
|
117
|
+
bullseye = 3,
|
|
118
|
+
diamond = 4,
|
|
119
|
+
bomb = 5,
|
|
120
|
+
flag = 6,
|
|
121
|
+
skull = 7,
|
|
122
|
+
crown = 8,
|
|
123
|
+
vip = 9,
|
|
124
|
+
padlock = 10,
|
|
125
|
+
territory_a = 11,
|
|
126
|
+
territory_b = 12,
|
|
127
|
+
territory_c = 13,
|
|
128
|
+
territory_d = 14,
|
|
129
|
+
territory_e = 15,
|
|
130
|
+
territory_f = 16,
|
|
131
|
+
territory_g = 17,
|
|
132
|
+
territory_h = 18,
|
|
133
|
+
territory_i = 19,
|
|
134
|
+
supply = 20,
|
|
135
|
+
supply_health = 21,
|
|
136
|
+
supply_air_drop = 22,
|
|
137
|
+
supply_ammo = 23,
|
|
138
|
+
arrow = 24,
|
|
139
|
+
defend = 25,
|
|
140
|
+
ordnance = 26,
|
|
141
|
+
inward = 27
|
|
142
|
+
}
|
|
143
|
+
export declare enum e_navpoint_priority {
|
|
144
|
+
low = 0,
|
|
145
|
+
normal = 1,
|
|
146
|
+
high = 2,
|
|
147
|
+
blink = 3
|
|
148
|
+
}
|
|
149
|
+
export declare enum e_megalogamengine_hud_meter_input_type {
|
|
150
|
+
none = 0,
|
|
151
|
+
number = 1,
|
|
152
|
+
timer = 2
|
|
153
|
+
}
|
|
154
|
+
export declare enum e_numeric_comparison {
|
|
155
|
+
less_than = 0,
|
|
156
|
+
greater_than = 1,
|
|
157
|
+
equal_to = 2,
|
|
158
|
+
less_than_or_equal_to = 3,
|
|
159
|
+
greater_than_or_equal_to = 4,
|
|
160
|
+
not_equal_to = 5
|
|
161
|
+
}
|
|
162
|
+
/** Matches `e_create_object_flags` in blf_lib `megalogamengine_actions.rs`. */
|
|
163
|
+
export declare class e_create_object_flags {
|
|
164
|
+
never_garbage_collect: boolean;
|
|
165
|
+
suppress_effect: boolean;
|
|
166
|
+
absolute_orientation: boolean;
|
|
167
|
+
to_raw(): number;
|
|
168
|
+
static from_raw(raw: number): e_create_object_flags;
|
|
169
|
+
}
|
|
170
|
+
//# sourceMappingURL=megalogamengine_enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"megalogamengine_enums.d.ts","sourceRoot":"","sources":["../../../../../../src/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_enums.ts"],"names":[],"mappings":"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"}
|