@blamnetwork/blf 1.0.0-alpha.4 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -7
- 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 +4 -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 +4 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_actions.d.ts +97 -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 +159 -55
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_conditions.d.ts +10 -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 +13 -3
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_explicit_object.d.ts +26 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_explicit_object.d.ts.map +1 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_explicit_object.js +26 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_explicit_player.d.ts +33 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_explicit_player.d.ts.map +1 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_explicit_player.js +33 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_explicit_team.d.ts +25 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_explicit_team.d.ts.map +1 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_explicit_team.js +25 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_hud_widgets.d.ts +7 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_hud_widgets.d.ts.map +1 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_hud_widgets.js +7 -0
- package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_references.d.ts +9 -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 +15 -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/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_custom_variant.d.ts +37 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_custom_variant.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_custom_variant.js +125 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_custom_variant_au1_settings.d.ts +14 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_custom_variant_au1_settings.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_custom_variant_au1_settings.js +30 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_default.d.ts +114 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_default.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_default.js +292 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_survival_variant.d.ts +74 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_survival_variant.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_survival_variant.js +184 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_traits.d.ts +10 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_traits.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_traits.js +16 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_variant.d.ts +28 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_variant.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_variant.js +109 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_player_traits.d.ts +56 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_player_traits.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_player_traits.js +142 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_string_table.d.ts +27 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_string_table.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_string_table.js +190 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/game_engine_enums.d.ts +45 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/game_engine_enums.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/game_engine_enums.js +60 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/index.d.ts +11 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/index.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/index.js +10 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/c_megalo_game_statistic.d.ts +10 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/c_megalo_game_statistic.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/c_megalo_game_statistic.js +18 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/c_megalogamengine_map_permissions.d.ts +8 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/c_megalogamengine_map_permissions.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/c_megalogamengine_map_permissions.js +18 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/c_object_filter.d.ts +13 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/c_object_filter.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/c_object_filter.js +39 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/c_trigger.d.ts +34 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/c_trigger.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/c_trigger.js +59 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/index.d.ts +18 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/index.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/index.js +17 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_actions.d.ts +478 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_actions.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_actions.js +1696 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_conditions.d.ts +58 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_conditions.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_conditions.js +226 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_explicit_object.d.ts +34 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_explicit_object.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_explicit_object.js +34 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_explicit_player.d.ts +36 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_explicit_player.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_explicit_player.js +36 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_explicit_team.d.ts +31 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_explicit_team.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_explicit_team.js +31 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_hud_widgets.d.ts +7 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_hud_widgets.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_hud_widgets.js +7 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_references.d.ts +85 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_references.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_references.js +502 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_text.d.ts +27 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_text.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_text.js +119 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_custom_game_engine_definition.d.ts +29 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_custom_game_engine_definition.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_custom_game_engine_definition.js +116 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_game_engine_player_rating_parameters.d.ts +22 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_game_engine_player_rating_parameters.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_game_engine_player_rating_parameters.js +54 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_user_defined_option.d.ts +22 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_user_defined_option.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_user_defined_option.js +82 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_variable_metadata.d.ts +22 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_variable_metadata.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_variable_metadata.js +85 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_variant_variable.d.ts +13 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_variant_variable.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_variant_variable.js +75 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/index.d.ts +4 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/index.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/index.js +3 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/saved_games/index.d.ts +2 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/saved_games/index.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/saved_games/index.js +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/saved_games/saved_game_files.d.ts +66 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/saved_games/saved_game_files.d.ts.map +1 -0
- package/dist/blam/haloreach_mcc/v_untracked_25_08_19_1352/saved_games/saved_game_files.js +586 -0
- package/dist/chunks/haloreach_mcc/v_untracked_25_08_19_1352/index.d.ts +5 -0
- package/dist/chunks/haloreach_mcc/v_untracked_25_08_19_1352/index.d.ts.map +1 -0
- package/dist/chunks/haloreach_mcc/v_untracked_25_08_19_1352/index.js +4 -0
- package/dist/chunks/haloreach_mcc/v_untracked_25_08_19_1352/s_blf_chunk_game_variant.d.ts +24 -0
- package/dist/chunks/haloreach_mcc/v_untracked_25_08_19_1352/s_blf_chunk_game_variant.d.ts.map +1 -0
- package/dist/chunks/haloreach_mcc/v_untracked_25_08_19_1352/s_blf_chunk_game_variant.js +130 -0
- package/dist/chunks/haloreach_mcc/v_untracked_25_08_19_1352/s_blf_chunk_packed_game_variant.d.ts +15 -0
- package/dist/chunks/haloreach_mcc/v_untracked_25_08_19_1352/s_blf_chunk_packed_game_variant.d.ts.map +1 -0
- package/dist/chunks/haloreach_mcc/v_untracked_25_08_19_1352/s_blf_chunk_packed_game_variant.js +85 -0
- package/dist/helpers/convert_reach_gametype.d.ts +17 -0
- package/dist/helpers/convert_reach_gametype.d.ts.map +1 -0
- package/dist/helpers/convert_reach_gametype.js +191 -0
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/index.js +1 -0
- package/dist/versions/haloreach_mcc/v_untracked_25_08_19_1352.d.ts +9 -0
- package/dist/versions/haloreach_mcc/v_untracked_25_08_19_1352.d.ts.map +1 -0
- package/dist/versions/haloreach_mcc/v_untracked_25_08_19_1352.js +8 -0
- 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 +4 -0
- package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_actions.js +162 -56
- package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_conditions.js +14 -4
- package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_explicit_object.js +29 -0
- package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_explicit_player.js +36 -0
- package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_explicit_team.js +28 -0
- package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_hud_widgets.js +10 -0
- package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_references.js +19 -10
- package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_text.js +6 -5
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_custom_variant.js +129 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_custom_variant_au1_settings.js +34 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_default.js +305 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_survival_variant.js +192 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_traits.js +20 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_variant.js +113 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_player_traits.js +151 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_string_table.js +195 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/game_engine_enums.js +64 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/index.js +26 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/c_megalo_game_statistic.js +22 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/c_megalogamengine_map_permissions.js +22 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/c_object_filter.js +43 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/c_trigger.js +63 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/index.js +33 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_actions.js +1748 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_conditions.js +234 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_explicit_object.js +37 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_explicit_player.js +39 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_explicit_team.js +34 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_hud_widgets.js +10 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_references.js +517 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/megalogamengine_text.js +125 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_custom_game_engine_definition.js +120 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_game_engine_player_rating_parameters.js +58 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_user_defined_option.js +87 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_variable_metadata.js +93 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/megalogamengine/s_variant_variable.js +79 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/index.js +19 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/saved_games/index.js +17 -0
- package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/saved_games/saved_game_files.js +591 -0
- package/dist-cjs/chunks/haloreach_mcc/v_untracked_25_08_19_1352/index.js +19 -0
- package/dist-cjs/chunks/haloreach_mcc/v_untracked_25_08_19_1352/s_blf_chunk_game_variant.js +133 -0
- package/dist-cjs/chunks/haloreach_mcc/v_untracked_25_08_19_1352/s_blf_chunk_packed_game_variant.js +88 -0
- package/dist-cjs/helpers/convert_reach_gametype.js +194 -0
- package/dist-cjs/helpers/index.js +5 -0
- package/dist-cjs/versions/haloreach_mcc/v_untracked_25_08_19_1352.js +24 -0
- package/package.json +26 -4
|
@@ -1,7 +1,16 @@
|
|
|
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_explicit_object_1 = require("./megalogamengine_explicit_object");
|
|
6
|
+
const megalogamengine_explicit_player_1 = require("./megalogamengine_explicit_player");
|
|
7
|
+
const megalogamengine_explicit_team_1 = require("./megalogamengine_explicit_team");
|
|
8
|
+
var megalogamengine_explicit_object_2 = require("./megalogamengine_explicit_object");
|
|
9
|
+
Object.defineProperty(exports, "e_explicit_object_type", { enumerable: true, get: function () { return megalogamengine_explicit_object_2.e_explicit_object_type; } });
|
|
10
|
+
var megalogamengine_explicit_player_2 = require("./megalogamengine_explicit_player");
|
|
11
|
+
Object.defineProperty(exports, "e_explicit_player_type", { enumerable: true, get: function () { return megalogamengine_explicit_player_2.e_explicit_player_type; } });
|
|
12
|
+
var megalogamengine_explicit_team_2 = require("./megalogamengine_explicit_team");
|
|
13
|
+
Object.defineProperty(exports, "e_explicit_team_type", { enumerable: true, get: function () { return megalogamengine_explicit_team_2.e_explicit_team_type; } });
|
|
5
14
|
function requireField(value, message) {
|
|
6
15
|
if (value === undefined) {
|
|
7
16
|
throw new error_1.BlfError(message);
|
|
@@ -19,32 +28,32 @@ var e_custom_timer_type;
|
|
|
19
28
|
e_custom_timer_type[e_custom_timer_type["grace_period"] = 6] = "grace_period";
|
|
20
29
|
})(e_custom_timer_type || (exports.e_custom_timer_type = e_custom_timer_type = {}));
|
|
21
30
|
class c_explicit_player {
|
|
22
|
-
m_explicit_player_type =
|
|
31
|
+
m_explicit_player_type = megalogamengine_explicit_player_1.e_explicit_player_type.no_player;
|
|
23
32
|
decode(bitstream) {
|
|
24
|
-
this.m_explicit_player_type = bitstream.
|
|
33
|
+
this.m_explicit_player_type = bitstream.read_enum("explicit-player-type", 5, megalogamengine_explicit_player_1.e_explicit_player_type);
|
|
25
34
|
}
|
|
26
35
|
encode(bitstream) {
|
|
27
|
-
bitstream.
|
|
36
|
+
bitstream.write_enum(this.m_explicit_player_type, 5);
|
|
28
37
|
}
|
|
29
38
|
}
|
|
30
39
|
exports.c_explicit_player = c_explicit_player;
|
|
31
40
|
class c_explicit_object {
|
|
32
|
-
m_explicit_object_type =
|
|
41
|
+
m_explicit_object_type = megalogamengine_explicit_object_1.e_explicit_object_type.no_object;
|
|
33
42
|
decode(bitstream) {
|
|
34
|
-
this.m_explicit_object_type = bitstream.
|
|
43
|
+
this.m_explicit_object_type = bitstream.read_enum("explicit-object-type", 5, megalogamengine_explicit_object_1.e_explicit_object_type);
|
|
35
44
|
}
|
|
36
45
|
encode(bitstream) {
|
|
37
|
-
bitstream.
|
|
46
|
+
bitstream.write_enum(this.m_explicit_object_type, 5);
|
|
38
47
|
}
|
|
39
48
|
}
|
|
40
49
|
exports.c_explicit_object = c_explicit_object;
|
|
41
50
|
class c_explicit_team {
|
|
42
|
-
m_explicit_team_type =
|
|
51
|
+
m_explicit_team_type = megalogamengine_explicit_team_1.e_explicit_team_type.no_team;
|
|
43
52
|
decode(bitstream) {
|
|
44
|
-
this.m_explicit_team_type = bitstream.
|
|
53
|
+
this.m_explicit_team_type = bitstream.read_enum("explicit-team-type", 5, megalogamengine_explicit_team_1.e_explicit_team_type);
|
|
45
54
|
}
|
|
46
55
|
encode(bitstream) {
|
|
47
|
-
bitstream.
|
|
56
|
+
bitstream.write_enum(this.m_explicit_team_type, 5);
|
|
48
57
|
}
|
|
49
58
|
}
|
|
50
59
|
exports.c_explicit_team = c_explicit_team;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.c_dynamic_string = exports.c_replaceable_token = exports.c_player_filter_modifier = void 0;
|
|
4
4
|
const error_1 = require("../../../../../error");
|
|
5
|
+
const megalogamengine_actions_1 = require("./megalogamengine_actions");
|
|
5
6
|
const megalogamengine_references_1 = require("./megalogamengine_references");
|
|
6
7
|
function requireField(value, message) {
|
|
7
8
|
if (value === undefined) {
|
|
@@ -10,12 +11,12 @@ function requireField(value, message) {
|
|
|
10
11
|
return value;
|
|
11
12
|
}
|
|
12
13
|
class c_player_filter_modifier {
|
|
13
|
-
m_type =
|
|
14
|
+
m_type = megalogamengine_actions_1.e_player_filter_type.no_one;
|
|
14
15
|
m_player;
|
|
15
16
|
m_variable;
|
|
16
17
|
decode(bitstream) {
|
|
17
|
-
this.m_type = bitstream.
|
|
18
|
-
if (this.m_type ===
|
|
18
|
+
this.m_type = bitstream.read_enum("type", 3, megalogamengine_actions_1.e_player_filter_type);
|
|
19
|
+
if (this.m_type === megalogamengine_actions_1.e_player_filter_type.specific_player) {
|
|
19
20
|
const player = new megalogamengine_references_1.c_player_reference();
|
|
20
21
|
const variable = new megalogamengine_references_1.c_custom_variable_reference();
|
|
21
22
|
player.decode(bitstream);
|
|
@@ -25,8 +26,8 @@ class c_player_filter_modifier {
|
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
encode(bitstream) {
|
|
28
|
-
bitstream.
|
|
29
|
-
if (this.m_type ===
|
|
29
|
+
bitstream.write_enum(this.m_type, 3);
|
|
30
|
+
if (this.m_type === megalogamengine_actions_1.e_player_filter_type.specific_player) {
|
|
30
31
|
requireField(this.m_player, "m_player does not exist.").encode(bitstream);
|
|
31
32
|
requireField(this.m_variable, "m_variable does not exist.").encode(bitstream);
|
|
32
33
|
}
|
package/dist-cjs/blam/haloreach_mcc/v_untracked_25_08_19_1352/game/c_game_engine_custom_variant.js
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.c_game_engine_custom_variant = void 0;
|
|
4
|
+
const error_1 = require("../../../../error");
|
|
5
|
+
const c_game_engine_custom_variant_au1_settings_1 = require("./c_game_engine_custom_variant_au1_settings");
|
|
6
|
+
const c_game_engine_default_1 = require("./c_game_engine_default");
|
|
7
|
+
const c_game_engine_traits_1 = require("./c_game_engine_traits");
|
|
8
|
+
const c_string_table_1 = require("./c_string_table");
|
|
9
|
+
const c_megalogamengine_map_permissions_1 = require("./megalogamengine/c_megalogamengine_map_permissions");
|
|
10
|
+
const s_custom_game_engine_definition_1 = require("./megalogamengine/s_custom_game_engine_definition");
|
|
11
|
+
const s_game_engine_player_rating_parameters_1 = require("./megalogamengine/s_game_engine_player_rating_parameters");
|
|
12
|
+
const s_user_defined_option_1 = require("./megalogamengine/s_user_defined_option");
|
|
13
|
+
class c_game_engine_custom_variant {
|
|
14
|
+
m_encoding_version = 0;
|
|
15
|
+
m_build_number = 0;
|
|
16
|
+
m_base_variant = new c_game_engine_default_1.c_game_engine_base_variant();
|
|
17
|
+
m_player_traits = [];
|
|
18
|
+
m_user_defined_options = [];
|
|
19
|
+
m_script_strings = new c_string_table_1.c_string_table(112, 0x4c00, 15, 15, 7);
|
|
20
|
+
m_base_name_string_index = 0;
|
|
21
|
+
m_localized_name = new c_string_table_1.c_string_table(1, 0x180, 9, 9, 1);
|
|
22
|
+
m_localized_description = new c_string_table_1.c_string_table(1, 0xc00, 12, 12, 1);
|
|
23
|
+
m_localized_category = new c_string_table_1.c_string_table(1, 0x180, 9, 9, 1);
|
|
24
|
+
m_engine_icon = 0;
|
|
25
|
+
m_engine_category = 0;
|
|
26
|
+
m_map_permissions = new c_megalogamengine_map_permissions_1.c_megalogamengine_map_permissions();
|
|
27
|
+
m_player_ratings = new s_game_engine_player_rating_parameters_1.s_game_engine_player_rating_parameters();
|
|
28
|
+
m_score_to_win_round = 0;
|
|
29
|
+
m_fire_teams_enabled = false;
|
|
30
|
+
m_symmetric_gametype = false;
|
|
31
|
+
m_base_variant_parameters_locked = Array.from({ length: 1280 }, () => false);
|
|
32
|
+
m_base_variant_parameters_hidden = Array.from({ length: 1280 }, () => false);
|
|
33
|
+
m_user_defined_options_locked = Array.from({ length: 32 }, () => false);
|
|
34
|
+
m_user_defined_options_hidden = Array.from({ length: 32 }, () => false);
|
|
35
|
+
m_game_engine = new s_custom_game_engine_definition_1.s_custom_game_engine_definition();
|
|
36
|
+
m_au1_settings;
|
|
37
|
+
decode(bitstream) {
|
|
38
|
+
this.m_encoding_version = bitstream.read_signed_integer("encoding-version", 32);
|
|
39
|
+
this.m_build_number = bitstream.read_signed_integer("version", 32);
|
|
40
|
+
this.m_base_variant.decode(bitstream);
|
|
41
|
+
const player_trait_count = bitstream.read_integer("player-trait-count", 5);
|
|
42
|
+
for (let i = 0; i < player_trait_count; i++) {
|
|
43
|
+
const traits = new c_game_engine_traits_1.s_player_trait_option();
|
|
44
|
+
traits.decode(bitstream);
|
|
45
|
+
this.m_player_traits.push(traits);
|
|
46
|
+
}
|
|
47
|
+
const user_defined_option_count = bitstream.read_integer("user-defined-option-count", 5);
|
|
48
|
+
for (let i = 0; i < user_defined_option_count; i++) {
|
|
49
|
+
const option = new s_user_defined_option_1.s_user_defined_option();
|
|
50
|
+
option.decode(bitstream);
|
|
51
|
+
this.m_user_defined_options.push(option);
|
|
52
|
+
}
|
|
53
|
+
this.m_script_strings.decode(bitstream);
|
|
54
|
+
this.m_base_name_string_index = bitstream.read_integer("base-name-string-index", 7);
|
|
55
|
+
this.m_localized_name.decode(bitstream);
|
|
56
|
+
this.m_localized_description.decode(bitstream);
|
|
57
|
+
this.m_localized_category.decode(bitstream);
|
|
58
|
+
this.m_engine_icon = bitstream.read_integer("engine-icon-index", 5);
|
|
59
|
+
this.m_engine_category = bitstream.read_integer("engine-category", 5);
|
|
60
|
+
this.m_map_permissions.decode(bitstream);
|
|
61
|
+
this.m_player_ratings.decode(bitstream);
|
|
62
|
+
this.m_score_to_win_round = bitstream.read_signed_integer("score-to-win-round", 16);
|
|
63
|
+
this.m_fire_teams_enabled = bitstream.read_bool("fire-teams-enabled");
|
|
64
|
+
this.m_symmetric_gametype = bitstream.read_bool("symmetric-gametype");
|
|
65
|
+
for (let i = 0; i < 1280; i++) {
|
|
66
|
+
this.m_base_variant_parameters_locked[i] = bitstream.read_bool("base-variant-parameters-locked");
|
|
67
|
+
}
|
|
68
|
+
for (let i = 0; i < 1280; i++) {
|
|
69
|
+
this.m_base_variant_parameters_hidden[i] = bitstream.read_bool("base-variant-parameters-hidden");
|
|
70
|
+
}
|
|
71
|
+
for (let i = 0; i < 32; i++) {
|
|
72
|
+
this.m_user_defined_options_locked[i] = bitstream.read_bool("user-defined-options-locked");
|
|
73
|
+
}
|
|
74
|
+
for (let i = 0; i < 32; i++) {
|
|
75
|
+
this.m_user_defined_options_hidden[i] = bitstream.read_bool("user-defined-options-hidden");
|
|
76
|
+
}
|
|
77
|
+
this.m_game_engine.decode(bitstream);
|
|
78
|
+
if (this.m_encoding_version > 106) {
|
|
79
|
+
const au1 = new c_game_engine_custom_variant_au1_settings_1.c_game_engine_custom_variant_au1_settings();
|
|
80
|
+
au1.decode(bitstream);
|
|
81
|
+
this.m_au1_settings = au1;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
encode(bitstream) {
|
|
85
|
+
bitstream.write_signed_integer(this.m_encoding_version, 32);
|
|
86
|
+
bitstream.write_signed_integer(this.m_build_number, 32);
|
|
87
|
+
this.m_base_variant.encode(bitstream);
|
|
88
|
+
bitstream.write_integer(this.m_player_traits.length, 5);
|
|
89
|
+
for (const player_trait of this.m_player_traits) {
|
|
90
|
+
player_trait.encode(bitstream);
|
|
91
|
+
}
|
|
92
|
+
bitstream.write_integer(this.m_user_defined_options.length, 5);
|
|
93
|
+
for (const option of this.m_user_defined_options) {
|
|
94
|
+
option.encode(bitstream);
|
|
95
|
+
}
|
|
96
|
+
this.m_script_strings.encode(bitstream);
|
|
97
|
+
bitstream.write_integer(this.m_base_name_string_index, 7);
|
|
98
|
+
this.m_localized_name.encode(bitstream);
|
|
99
|
+
this.m_localized_description.encode(bitstream);
|
|
100
|
+
this.m_localized_category.encode(bitstream);
|
|
101
|
+
bitstream.write_integer(this.m_engine_icon, 5);
|
|
102
|
+
bitstream.write_integer(this.m_engine_category, 5);
|
|
103
|
+
this.m_map_permissions.encode(bitstream);
|
|
104
|
+
this.m_player_ratings.encode(bitstream);
|
|
105
|
+
bitstream.write_signed_integer(this.m_score_to_win_round, 16);
|
|
106
|
+
bitstream.write_bool(this.m_fire_teams_enabled);
|
|
107
|
+
bitstream.write_bool(this.m_symmetric_gametype);
|
|
108
|
+
for (const parameter of this.m_base_variant_parameters_locked) {
|
|
109
|
+
bitstream.write_bool(parameter);
|
|
110
|
+
}
|
|
111
|
+
for (const parameter of this.m_base_variant_parameters_hidden) {
|
|
112
|
+
bitstream.write_bool(parameter);
|
|
113
|
+
}
|
|
114
|
+
for (const parameter of this.m_user_defined_options_locked) {
|
|
115
|
+
bitstream.write_bool(parameter);
|
|
116
|
+
}
|
|
117
|
+
for (const parameter of this.m_user_defined_options_hidden) {
|
|
118
|
+
bitstream.write_bool(parameter);
|
|
119
|
+
}
|
|
120
|
+
this.m_game_engine.encode(bitstream);
|
|
121
|
+
if (this.m_encoding_version > 106) {
|
|
122
|
+
if (!this.m_au1_settings) {
|
|
123
|
+
throw new error_1.BlfError("Writing v107 gametypes (and higher) requires AU1 Options to be set.");
|
|
124
|
+
}
|
|
125
|
+
this.m_au1_settings.encode(bitstream);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
exports.c_game_engine_custom_variant = c_game_engine_custom_variant;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.c_game_engine_custom_variant_au1_settings = void 0;
|
|
4
|
+
class c_game_engine_custom_variant_au1_settings {
|
|
5
|
+
m_flags = 0;
|
|
6
|
+
m_precision_bloom = 0;
|
|
7
|
+
m_active_camo_energy_curve_min = 0;
|
|
8
|
+
m_active_camo_energy_curve_max = 0;
|
|
9
|
+
m_armor_lock_damage_drain = 0;
|
|
10
|
+
m_armor_lock_damage_drain_limit = 0;
|
|
11
|
+
m_magnum_damage = 0;
|
|
12
|
+
m_magnum_fire_delay = 0;
|
|
13
|
+
decode(bitstream) {
|
|
14
|
+
this.m_flags = bitstream.read_integer("flags", 32);
|
|
15
|
+
this.m_precision_bloom = bitstream.read_quantized_real(0, 2, 8, false, true);
|
|
16
|
+
this.m_active_camo_energy_curve_min = bitstream.read_quantized_real(0, 2, 8, false, true);
|
|
17
|
+
this.m_active_camo_energy_curve_max = bitstream.read_quantized_real(0, 2, 8, false, true);
|
|
18
|
+
this.m_armor_lock_damage_drain = bitstream.read_quantized_real(0, 2, 8, false, true);
|
|
19
|
+
this.m_armor_lock_damage_drain_limit = bitstream.read_quantized_real(0, 2, 8, false, true);
|
|
20
|
+
this.m_magnum_damage = bitstream.read_quantized_real(0, 10, 8, false, true);
|
|
21
|
+
this.m_magnum_fire_delay = bitstream.read_quantized_real(0, 10, 8, false, true);
|
|
22
|
+
}
|
|
23
|
+
encode(bitstream) {
|
|
24
|
+
bitstream.write_integer(this.m_flags, 32);
|
|
25
|
+
bitstream.write_quantized_real(this.m_precision_bloom, 0, 2, 8, false, true);
|
|
26
|
+
bitstream.write_quantized_real(this.m_active_camo_energy_curve_min, 0, 2, 8, false, true);
|
|
27
|
+
bitstream.write_quantized_real(this.m_active_camo_energy_curve_max, 0, 2, 8, false, true);
|
|
28
|
+
bitstream.write_quantized_real(this.m_armor_lock_damage_drain, 0, 2, 8, false, true);
|
|
29
|
+
bitstream.write_quantized_real(this.m_armor_lock_damage_drain_limit, 0, 2, 8, false, true);
|
|
30
|
+
bitstream.write_quantized_real(this.m_magnum_damage, 0, 10, 8, false, true);
|
|
31
|
+
bitstream.write_quantized_real(this.m_magnum_fire_delay, 0, 10, 8, false, true);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.c_game_engine_custom_variant_au1_settings = c_game_engine_custom_variant_au1_settings;
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.c_game_engine_base_variant = exports.c_game_engine_loadout_traits = exports.c_loadout_palette_traits = exports.c_loadout_traits = exports.c_game_engine_team_options = exports.c_game_engine_team_options_team = exports.k_game_variant_team_count = exports.c_game_engine_map_override_options = exports.c_game_engine_social_options = exports.c_game_engine_respawn_options = exports.c_game_engine_miscellaneous_options = void 0;
|
|
4
|
+
const saved_game_files_1 = require("../saved_games/saved_game_files");
|
|
5
|
+
const c_player_traits_1 = require("./c_player_traits");
|
|
6
|
+
const c_string_table_1 = require("./c_string_table");
|
|
7
|
+
class c_game_engine_miscellaneous_options {
|
|
8
|
+
m_teams_enabled = false;
|
|
9
|
+
m_round_reset_players = false;
|
|
10
|
+
m_round_reset_map = false;
|
|
11
|
+
m_perfection_enabled = false;
|
|
12
|
+
m_round_time_limit_minutes = 0;
|
|
13
|
+
m_round_limit = 0;
|
|
14
|
+
m_early_victory_win_count = 0;
|
|
15
|
+
m_sudden_death_time = 0;
|
|
16
|
+
m_grace_period = 0;
|
|
17
|
+
decode(bitstream) {
|
|
18
|
+
this.m_teams_enabled = bitstream.read_bool("miscellaneous-options-teams");
|
|
19
|
+
this.m_round_reset_players = bitstream.read_bool("miscellaneous-options-round-reset-players");
|
|
20
|
+
this.m_round_reset_map = bitstream.read_bool("miscellaneous-options-round-reset-map");
|
|
21
|
+
this.m_perfection_enabled = bitstream.read_bool("miscellaneous-options-perfection-enabled");
|
|
22
|
+
this.m_round_time_limit_minutes = bitstream.read_integer("miscellaneous-options-round-time-limit-minutes", 8);
|
|
23
|
+
this.m_round_limit = bitstream.read_integer("miscellaneous-options-round-limit", 5);
|
|
24
|
+
this.m_early_victory_win_count = bitstream.read_integer("miscellaneous-options-early-victory-win-count", 4);
|
|
25
|
+
this.m_sudden_death_time = bitstream.read_integer("sudden-death-time-limit", 7);
|
|
26
|
+
this.m_grace_period = bitstream.read_integer("grace-period", 5);
|
|
27
|
+
}
|
|
28
|
+
encode(bitstream) {
|
|
29
|
+
bitstream.write_bool(this.m_teams_enabled);
|
|
30
|
+
bitstream.write_bool(this.m_round_reset_players);
|
|
31
|
+
bitstream.write_bool(this.m_round_reset_map);
|
|
32
|
+
bitstream.write_bool(this.m_perfection_enabled);
|
|
33
|
+
bitstream.write_integer(this.m_round_time_limit_minutes, 8);
|
|
34
|
+
bitstream.write_integer(this.m_round_limit, 5);
|
|
35
|
+
bitstream.write_integer(this.m_early_victory_win_count, 4);
|
|
36
|
+
bitstream.write_integer(this.m_sudden_death_time, 7);
|
|
37
|
+
bitstream.write_integer(this.m_grace_period, 5);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.c_game_engine_miscellaneous_options = c_game_engine_miscellaneous_options;
|
|
41
|
+
class c_game_engine_respawn_options {
|
|
42
|
+
m_inherit_respawn_time = false;
|
|
43
|
+
m_respawn_with_teammate = false;
|
|
44
|
+
m_respawn_at_location = false;
|
|
45
|
+
m_respawn_on_kills = false;
|
|
46
|
+
m_lives_per_round = 0;
|
|
47
|
+
m_team_lives_per_round = 0;
|
|
48
|
+
m_respawn_time_seconds = 0;
|
|
49
|
+
m_suicide_penalty_seconds = 0;
|
|
50
|
+
m_betrayal_penalty_seconds = 0;
|
|
51
|
+
m_respawn_growth_seconds = 0;
|
|
52
|
+
m_loadout_cam_time = 0;
|
|
53
|
+
m_respawn_player_traits_duration_seconds = 0;
|
|
54
|
+
m_respawn_player_traits = new c_player_traits_1.c_player_traits();
|
|
55
|
+
decode(bitstream) {
|
|
56
|
+
this.m_inherit_respawn_time = bitstream.read_bool("respawn-options-inherit-respawn-time");
|
|
57
|
+
this.m_respawn_with_teammate = bitstream.read_bool("respawn-options-respawn-with-teammate");
|
|
58
|
+
this.m_respawn_at_location = bitstream.read_bool("respawn-options-respawn-at-location");
|
|
59
|
+
this.m_respawn_on_kills = bitstream.read_bool("respawn-options-respawn-on-kills");
|
|
60
|
+
this.m_lives_per_round = bitstream.read_integer("respawn-options-lives-per-round", 6);
|
|
61
|
+
this.m_team_lives_per_round = bitstream.read_integer("respawn-options-team-lives-per-round", 7);
|
|
62
|
+
this.m_respawn_time_seconds = bitstream.read_integer("respawn-options-respawn-time", 8);
|
|
63
|
+
this.m_suicide_penalty_seconds = bitstream.read_integer("respawn-options-suicide-time", 8);
|
|
64
|
+
this.m_betrayal_penalty_seconds = bitstream.read_integer("respawn-options-betrayal-time", 8);
|
|
65
|
+
this.m_respawn_growth_seconds = bitstream.read_integer("respawn-options-respawn-growth-time", 4);
|
|
66
|
+
this.m_loadout_cam_time = bitstream.read_integer("respawn-options-initial-loadout-selection-time", 4);
|
|
67
|
+
this.m_respawn_player_traits_duration_seconds = bitstream.read_integer("respawn-options-player-traits-duration", 6);
|
|
68
|
+
this.m_respawn_player_traits.decode(bitstream);
|
|
69
|
+
}
|
|
70
|
+
encode(bitstream) {
|
|
71
|
+
bitstream.write_bool(this.m_inherit_respawn_time);
|
|
72
|
+
bitstream.write_bool(this.m_respawn_with_teammate);
|
|
73
|
+
bitstream.write_bool(this.m_respawn_at_location);
|
|
74
|
+
bitstream.write_bool(this.m_respawn_on_kills);
|
|
75
|
+
bitstream.write_integer(this.m_lives_per_round, 6);
|
|
76
|
+
bitstream.write_integer(this.m_team_lives_per_round, 7);
|
|
77
|
+
bitstream.write_integer(this.m_respawn_time_seconds, 8);
|
|
78
|
+
bitstream.write_integer(this.m_suicide_penalty_seconds, 8);
|
|
79
|
+
bitstream.write_integer(this.m_betrayal_penalty_seconds, 8);
|
|
80
|
+
bitstream.write_integer(this.m_respawn_growth_seconds, 4);
|
|
81
|
+
bitstream.write_integer(this.m_loadout_cam_time, 4);
|
|
82
|
+
bitstream.write_integer(this.m_respawn_player_traits_duration_seconds, 6);
|
|
83
|
+
this.m_respawn_player_traits.encode(bitstream);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.c_game_engine_respawn_options = c_game_engine_respawn_options;
|
|
87
|
+
class c_game_engine_social_options {
|
|
88
|
+
m_flags = 0;
|
|
89
|
+
m_team_changing = 0;
|
|
90
|
+
m_observers_enabled = false;
|
|
91
|
+
decode(bitstream) {
|
|
92
|
+
this.m_observers_enabled = bitstream.read_bool("observers-enabled");
|
|
93
|
+
this.m_team_changing = bitstream.read_integer("team-changing", 2);
|
|
94
|
+
for (let i = 0; i < 5; i++) {
|
|
95
|
+
if (bitstream.read_bool(`social-flag-${i}`)) {
|
|
96
|
+
this.m_flags |= 1 << i;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
encode(bitstream) {
|
|
101
|
+
bitstream.write_bool(this.m_observers_enabled);
|
|
102
|
+
bitstream.write_integer(this.m_team_changing, 2);
|
|
103
|
+
for (let i = 0; i < 5; i++) {
|
|
104
|
+
bitstream.write_bool(((this.m_flags >> i) & 1) !== 0);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.c_game_engine_social_options = c_game_engine_social_options;
|
|
109
|
+
class c_game_engine_map_override_options {
|
|
110
|
+
m_flags = 0;
|
|
111
|
+
m_base_player_traits = new c_player_traits_1.c_player_traits();
|
|
112
|
+
m_weapon_set_absolute_index = 0;
|
|
113
|
+
m_vehicle_set_absolute_index = 0;
|
|
114
|
+
m_red_powerup_traits = new c_player_traits_1.c_player_traits();
|
|
115
|
+
m_blue_powerup_traits = new c_player_traits_1.c_player_traits();
|
|
116
|
+
m_yellow_powerup_traits = new c_player_traits_1.c_player_traits();
|
|
117
|
+
m_red_powerup_duration_seconds = 0;
|
|
118
|
+
m_blue_powerup_duration_seconds = 0;
|
|
119
|
+
m_yellow_powerup_duration_seconds = 0;
|
|
120
|
+
decode(bitstream) {
|
|
121
|
+
this.m_flags = bitstream.read_integer("flags", 6);
|
|
122
|
+
this.m_base_player_traits.decode(bitstream);
|
|
123
|
+
this.m_weapon_set_absolute_index = bitstream.read_signed_integer("map-override-weapon-set", 8);
|
|
124
|
+
this.m_vehicle_set_absolute_index = bitstream.read_signed_integer("map-override-vehicle-set", 8);
|
|
125
|
+
this.m_red_powerup_traits.decode(bitstream);
|
|
126
|
+
this.m_blue_powerup_traits.decode(bitstream);
|
|
127
|
+
this.m_yellow_powerup_traits.decode(bitstream);
|
|
128
|
+
this.m_red_powerup_duration_seconds = bitstream.read_integer("map-override-red-powerup-duration", 7);
|
|
129
|
+
this.m_blue_powerup_duration_seconds = bitstream.read_integer("map-override-blue-powerup-duration", 7);
|
|
130
|
+
this.m_yellow_powerup_duration_seconds = bitstream.read_integer("map-override-yellow-powerup-duration", 7);
|
|
131
|
+
}
|
|
132
|
+
encode(bitstream) {
|
|
133
|
+
bitstream.write_integer(this.m_flags, 6);
|
|
134
|
+
this.m_base_player_traits.encode(bitstream);
|
|
135
|
+
bitstream.write_signed_integer(this.m_weapon_set_absolute_index, 8);
|
|
136
|
+
bitstream.write_signed_integer(this.m_vehicle_set_absolute_index, 8);
|
|
137
|
+
this.m_red_powerup_traits.encode(bitstream);
|
|
138
|
+
this.m_blue_powerup_traits.encode(bitstream);
|
|
139
|
+
this.m_yellow_powerup_traits.encode(bitstream);
|
|
140
|
+
bitstream.write_integer(this.m_red_powerup_duration_seconds, 7);
|
|
141
|
+
bitstream.write_integer(this.m_blue_powerup_duration_seconds, 7);
|
|
142
|
+
bitstream.write_integer(this.m_yellow_powerup_duration_seconds, 7);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
exports.c_game_engine_map_override_options = c_game_engine_map_override_options;
|
|
146
|
+
exports.k_game_variant_team_count = 8;
|
|
147
|
+
class c_game_engine_team_options_team {
|
|
148
|
+
m_team_enabled = false;
|
|
149
|
+
m_override_color_armour = false;
|
|
150
|
+
m_override_color_ui_text = false;
|
|
151
|
+
m_override_color_ui_bitmap = false;
|
|
152
|
+
m_name = new c_string_table_1.c_string_table(1, 32, 5, 6, 1);
|
|
153
|
+
m_team_initial_designator = 0;
|
|
154
|
+
m_model_override = 0;
|
|
155
|
+
m_team_color_override = 0;
|
|
156
|
+
m_team_ui_text_tint_color_override = 0;
|
|
157
|
+
m_team_ui_bitmap_tint_color_override = 0;
|
|
158
|
+
m_fireteam_count = 0;
|
|
159
|
+
decode(bitstream) {
|
|
160
|
+
this.m_override_color_ui_bitmap = bitstream.read_bool("team-override-ui-bitmap-color");
|
|
161
|
+
this.m_override_color_ui_text = bitstream.read_bool("team-override-ui-text-color");
|
|
162
|
+
this.m_override_color_armour = bitstream.read_bool("team-override-armour-color");
|
|
163
|
+
this.m_team_enabled = bitstream.read_bool("team-enabled");
|
|
164
|
+
this.m_name.decode(bitstream);
|
|
165
|
+
this.m_team_initial_designator = bitstream.read_integer("team-initial-designator", 4);
|
|
166
|
+
this.m_model_override = bitstream.read_integer("team-model-override", 1);
|
|
167
|
+
this.m_team_color_override = bitstream.read_integer("team-color-override", 32);
|
|
168
|
+
this.m_team_ui_text_tint_color_override = bitstream.read_integer("team-ui-text-tint-color-override", 32);
|
|
169
|
+
this.m_team_ui_bitmap_tint_color_override = bitstream.read_integer("team-ui-bitmap-tint-color-override", 32);
|
|
170
|
+
this.m_fireteam_count = bitstream.read_integer("fireteam-count", 5);
|
|
171
|
+
}
|
|
172
|
+
encode(bitstream) {
|
|
173
|
+
bitstream.write_bool(this.m_override_color_ui_bitmap);
|
|
174
|
+
bitstream.write_bool(this.m_override_color_ui_text);
|
|
175
|
+
bitstream.write_bool(this.m_override_color_armour);
|
|
176
|
+
bitstream.write_bool(this.m_team_enabled);
|
|
177
|
+
this.m_name.encode(bitstream);
|
|
178
|
+
bitstream.write_integer(this.m_team_initial_designator, 4);
|
|
179
|
+
bitstream.write_integer(this.m_model_override, 1);
|
|
180
|
+
bitstream.write_integer(this.m_team_color_override, 32);
|
|
181
|
+
bitstream.write_integer(this.m_team_ui_text_tint_color_override, 32);
|
|
182
|
+
bitstream.write_integer(this.m_team_ui_bitmap_tint_color_override, 32);
|
|
183
|
+
bitstream.write_integer(this.m_fireteam_count, 5);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
exports.c_game_engine_team_options_team = c_game_engine_team_options_team;
|
|
187
|
+
class c_game_engine_team_options {
|
|
188
|
+
m_model_override = 0;
|
|
189
|
+
m_designator_switch_type = 0;
|
|
190
|
+
m_teams = Array.from({ length: exports.k_game_variant_team_count }, () => new c_game_engine_team_options_team());
|
|
191
|
+
decode(bitstream) {
|
|
192
|
+
this.m_model_override = bitstream.read_integer("model-override", 3);
|
|
193
|
+
this.m_designator_switch_type = bitstream.read_integer("designator-switch-type", 2);
|
|
194
|
+
for (const team of this.m_teams) {
|
|
195
|
+
team.decode(bitstream);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
encode(bitstream) {
|
|
199
|
+
bitstream.write_integer(this.m_model_override, 3);
|
|
200
|
+
bitstream.write_integer(this.m_designator_switch_type, 2);
|
|
201
|
+
for (const team of this.m_teams) {
|
|
202
|
+
team.encode(bitstream);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
exports.c_game_engine_team_options = c_game_engine_team_options;
|
|
207
|
+
class c_loadout_traits {
|
|
208
|
+
m_visible = false;
|
|
209
|
+
m_name = 0;
|
|
210
|
+
m_initial_primary_weapon_absolute_index = 0;
|
|
211
|
+
m_initial_secondary_weapon_absolute_index = 0;
|
|
212
|
+
m_initial_equipment_absolute_index = 0;
|
|
213
|
+
m_initial_grenade_count_setting = 0;
|
|
214
|
+
decode(bitstream) {
|
|
215
|
+
this.m_visible = bitstream.read_bool("flags");
|
|
216
|
+
this.m_name = bitstream.read_index("name", 128, 7);
|
|
217
|
+
this.m_initial_primary_weapon_absolute_index =
|
|
218
|
+
bitstream.read_signed_integer("initial-primary-weapon", 8);
|
|
219
|
+
this.m_initial_secondary_weapon_absolute_index =
|
|
220
|
+
bitstream.read_signed_integer("initial-secondary-weapon", 8);
|
|
221
|
+
this.m_initial_equipment_absolute_index = bitstream.read_signed_integer("initial-equipment", 8);
|
|
222
|
+
this.m_initial_grenade_count_setting = bitstream.read_integer("initial-grenade-count", 4);
|
|
223
|
+
}
|
|
224
|
+
encode(bitstream) {
|
|
225
|
+
bitstream.write_bool(this.m_visible);
|
|
226
|
+
bitstream.write_index(this.m_name, 128, 7);
|
|
227
|
+
bitstream.write_signed_integer(this.m_initial_primary_weapon_absolute_index, 8);
|
|
228
|
+
bitstream.write_signed_integer(this.m_initial_secondary_weapon_absolute_index, 8);
|
|
229
|
+
bitstream.write_signed_integer(this.m_initial_equipment_absolute_index, 8);
|
|
230
|
+
bitstream.write_integer(this.m_initial_grenade_count_setting, 4);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
exports.c_loadout_traits = c_loadout_traits;
|
|
234
|
+
class c_loadout_palette_traits {
|
|
235
|
+
m_loadouts = Array.from({ length: 5 }, () => new c_loadout_traits());
|
|
236
|
+
decode(bitstream) {
|
|
237
|
+
for (const loadout of this.m_loadouts) {
|
|
238
|
+
loadout.decode(bitstream);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
encode(bitstream) {
|
|
242
|
+
for (const loadout of this.m_loadouts) {
|
|
243
|
+
loadout.encode(bitstream);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
exports.c_loadout_palette_traits = c_loadout_palette_traits;
|
|
248
|
+
class c_game_engine_loadout_traits {
|
|
249
|
+
m_flags = 0;
|
|
250
|
+
m_loadout_palettes = Array.from({ length: 6 }, () => new c_loadout_palette_traits());
|
|
251
|
+
decode(bitstream) {
|
|
252
|
+
this.m_flags = bitstream.read_integer("loadout-flags", 2);
|
|
253
|
+
for (const palette of this.m_loadout_palettes) {
|
|
254
|
+
palette.decode(bitstream);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
encode(bitstream) {
|
|
258
|
+
bitstream.write_integer(this.m_flags, 2);
|
|
259
|
+
for (const palette of this.m_loadout_palettes) {
|
|
260
|
+
palette.encode(bitstream);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
exports.c_game_engine_loadout_traits = c_game_engine_loadout_traits;
|
|
265
|
+
class c_game_engine_base_variant {
|
|
266
|
+
m_metadata = (() => {
|
|
267
|
+
const metadata = new saved_game_files_1.s_content_item_metadata();
|
|
268
|
+
metadata.general = new saved_game_files_1.s_content_item_general_metadata();
|
|
269
|
+
metadata.display = new saved_game_files_1.s_content_item_display_metadata();
|
|
270
|
+
metadata.creation_history = new saved_game_files_1.s_content_item_history();
|
|
271
|
+
metadata.modification_history = new saved_game_files_1.s_content_item_history();
|
|
272
|
+
return metadata;
|
|
273
|
+
})();
|
|
274
|
+
m_built_in = false;
|
|
275
|
+
m_miscellaneous_options = new c_game_engine_miscellaneous_options();
|
|
276
|
+
m_respawn_options = new c_game_engine_respawn_options();
|
|
277
|
+
m_social_options = new c_game_engine_social_options();
|
|
278
|
+
m_map_override_options = new c_game_engine_map_override_options();
|
|
279
|
+
m_team_scoring_method = 0;
|
|
280
|
+
m_team_options = new c_game_engine_team_options();
|
|
281
|
+
m_loadouts = new c_game_engine_loadout_traits();
|
|
282
|
+
decode(bitstream) {
|
|
283
|
+
(0, saved_game_files_1.content_item_metadata_decode)(bitstream, this.m_metadata);
|
|
284
|
+
this.m_built_in = bitstream.read_bool("variant-built-in");
|
|
285
|
+
this.m_miscellaneous_options.decode(bitstream);
|
|
286
|
+
this.m_respawn_options.decode(bitstream);
|
|
287
|
+
this.m_social_options.decode(bitstream);
|
|
288
|
+
this.m_map_override_options.decode(bitstream);
|
|
289
|
+
this.m_team_scoring_method = bitstream.read_integer("team-scoring-method", 3);
|
|
290
|
+
this.m_team_options.decode(bitstream);
|
|
291
|
+
this.m_loadouts.decode(bitstream);
|
|
292
|
+
}
|
|
293
|
+
encode(bitstream) {
|
|
294
|
+
(0, saved_game_files_1.content_item_metadata_encode)(bitstream, this.m_metadata);
|
|
295
|
+
bitstream.write_bool(this.m_built_in);
|
|
296
|
+
this.m_miscellaneous_options.encode(bitstream);
|
|
297
|
+
this.m_respawn_options.encode(bitstream);
|
|
298
|
+
this.m_social_options.encode(bitstream);
|
|
299
|
+
this.m_map_override_options.encode(bitstream);
|
|
300
|
+
bitstream.write_integer(this.m_team_scoring_method, 3);
|
|
301
|
+
this.m_team_options.encode(bitstream);
|
|
302
|
+
this.m_loadouts.encode(bitstream);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
exports.c_game_engine_base_variant = c_game_engine_base_variant;
|