@blamnetwork/blf 1.0.0-alpha.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.
Files changed (235) hide show
  1. package/README.md +82 -0
  2. package/dist/bitstream/enum.d.ts +6 -0
  3. package/dist/bitstream/enum.d.ts.map +1 -0
  4. package/dist/bitstream/enum.js +15 -0
  5. package/dist/bitstream/enums.d.ts +21 -0
  6. package/dist/bitstream/enums.d.ts.map +1 -0
  7. package/dist/bitstream/enums.js +31 -0
  8. package/dist/bitstream/errors.d.ts +5 -0
  9. package/dist/bitstream/errors.d.ts.map +1 -0
  10. package/dist/bitstream/errors.js +11 -0
  11. package/dist/bitstream/index.d.ts +7 -0
  12. package/dist/bitstream/index.d.ts.map +1 -0
  13. package/dist/bitstream/index.js +5 -0
  14. package/dist/bitstream/math.d.ts +28 -0
  15. package/dist/bitstream/math.d.ts.map +1 -0
  16. package/dist/bitstream/math.js +149 -0
  17. package/dist/bitstream/reader.d.ts +81 -0
  18. package/dist/bitstream/reader.d.ts.map +1 -0
  19. package/dist/bitstream/reader.js +400 -0
  20. package/dist/bitstream/writer.d.ts +56 -0
  21. package/dist/bitstream/writer.d.ts.map +1 -0
  22. package/dist/bitstream/writer.js +330 -0
  23. package/dist/blam/common/cache/index.d.ts +2 -0
  24. package/dist/blam/common/cache/index.d.ts.map +1 -0
  25. package/dist/blam/common/cache/index.js +1 -0
  26. package/dist/blam/common/cache/security_functions.d.ts +2 -0
  27. package/dist/blam/common/cache/security_functions.d.ts.map +1 -0
  28. package/dist/blam/common/cache/security_functions.js +19 -0
  29. package/dist/blam/common/index.d.ts +3 -0
  30. package/dist/blam/common/index.d.ts.map +1 -0
  31. package/dist/blam/common/index.js +2 -0
  32. package/dist/blam/common/memory/data_compress.d.ts +10 -0
  33. package/dist/blam/common/memory/data_compress.d.ts.map +1 -0
  34. package/dist/blam/common/memory/data_compress.js +28 -0
  35. package/dist/blam/common/memory/index.d.ts +2 -0
  36. package/dist/blam/common/memory/index.d.ts.map +1 -0
  37. package/dist/blam/common/memory/index.js +1 -0
  38. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_custom_variant.d.ts +37 -0
  39. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_custom_variant.d.ts.map +1 -0
  40. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_custom_variant.js +125 -0
  41. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_custom_variant_au1_settings.d.ts +14 -0
  42. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_custom_variant_au1_settings.d.ts.map +1 -0
  43. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_custom_variant_au1_settings.js +30 -0
  44. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_default.d.ts +114 -0
  45. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_default.d.ts.map +1 -0
  46. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_default.js +292 -0
  47. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_survival_variant.d.ts +70 -0
  48. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_survival_variant.d.ts.map +1 -0
  49. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_survival_variant.js +174 -0
  50. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_traits.d.ts +10 -0
  51. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_traits.d.ts.map +1 -0
  52. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_traits.js +16 -0
  53. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_variant.d.ts +28 -0
  54. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_variant.d.ts.map +1 -0
  55. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_variant.js +109 -0
  56. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_player_traits.d.ts +56 -0
  57. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_player_traits.d.ts.map +1 -0
  58. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_player_traits.js +142 -0
  59. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_string_table.d.ts +27 -0
  60. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_string_table.d.ts.map +1 -0
  61. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_string_table.js +190 -0
  62. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/index.d.ts +10 -0
  63. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/index.d.ts.map +1 -0
  64. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/index.js +9 -0
  65. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/c_megalo_game_statistic.d.ts +10 -0
  66. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/c_megalo_game_statistic.d.ts.map +1 -0
  67. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/c_megalo_game_statistic.js +18 -0
  68. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/c_megalogamengine_map_permissions.d.ts +8 -0
  69. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/c_megalogamengine_map_permissions.d.ts.map +1 -0
  70. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/c_megalogamengine_map_permissions.js +18 -0
  71. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/c_object_filter.d.ts +13 -0
  72. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/c_object_filter.d.ts.map +1 -0
  73. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/c_object_filter.js +39 -0
  74. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/c_trigger.d.ts +34 -0
  75. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/c_trigger.d.ts.map +1 -0
  76. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/c_trigger.js +59 -0
  77. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/index.d.ts +14 -0
  78. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/index.d.ts.map +1 -0
  79. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/index.js +13 -0
  80. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_actions.d.ts +393 -0
  81. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_actions.d.ts.map +1 -0
  82. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_actions.js +1590 -0
  83. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_conditions.d.ts +49 -0
  84. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_conditions.d.ts.map +1 -0
  85. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_conditions.js +216 -0
  86. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_references.d.ts +79 -0
  87. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_references.d.ts.map +1 -0
  88. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_references.js +496 -0
  89. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_text.d.ts +26 -0
  90. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_text.d.ts.map +1 -0
  91. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_text.js +118 -0
  92. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_custom_game_engine_definition.d.ts +29 -0
  93. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_custom_game_engine_definition.d.ts.map +1 -0
  94. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_custom_game_engine_definition.js +116 -0
  95. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_game_engine_player_rating_parameters.d.ts +22 -0
  96. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_game_engine_player_rating_parameters.d.ts.map +1 -0
  97. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_game_engine_player_rating_parameters.js +54 -0
  98. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_user_defined_option.d.ts +22 -0
  99. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_user_defined_option.d.ts.map +1 -0
  100. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_user_defined_option.js +82 -0
  101. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_variable_metadata.d.ts +22 -0
  102. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_variable_metadata.d.ts.map +1 -0
  103. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_variable_metadata.js +85 -0
  104. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_variant_variable.d.ts +13 -0
  105. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_variant_variable.d.ts.map +1 -0
  106. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_variant_variable.js +75 -0
  107. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/index.d.ts +4 -0
  108. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/index.d.ts.map +1 -0
  109. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/index.js +3 -0
  110. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/saved_games/index.d.ts +2 -0
  111. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/saved_games/index.d.ts.map +1 -0
  112. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/saved_games/index.js +1 -0
  113. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/saved_games/saved_game_files.d.ts +66 -0
  114. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/saved_games/saved_game_files.d.ts.map +1 -0
  115. package/dist/blam/haloreach/v12065_11_08_24_1738_tu1actual/saved_games/saved_game_files.js +586 -0
  116. package/dist/blf_chunk.d.ts +41 -0
  117. package/dist/blf_chunk.d.ts.map +1 -0
  118. package/dist/blf_chunk.js +126 -0
  119. package/dist/blffile.d.ts +5 -0
  120. package/dist/blffile.d.ts.map +1 -0
  121. package/dist/blffile.js +23 -0
  122. package/dist/chunk_signature.d.ts +10 -0
  123. package/dist/chunk_signature.d.ts.map +1 -0
  124. package/dist/chunk_signature.js +47 -0
  125. package/dist/chunks/halo3/v12070_08_09_05_2031_halo3_ship/index.d.ts +4 -0
  126. package/dist/chunks/halo3/v12070_08_09_05_2031_halo3_ship/index.d.ts.map +1 -0
  127. package/dist/chunks/halo3/v12070_08_09_05_2031_halo3_ship/index.js +3 -0
  128. package/dist/chunks/halo3/v12070_08_09_05_2031_halo3_ship/s_blf_chunk_compressed_data.d.ts +21 -0
  129. package/dist/chunks/halo3/v12070_08_09_05_2031_halo3_ship/s_blf_chunk_compressed_data.d.ts.map +1 -0
  130. package/dist/chunks/halo3/v12070_08_09_05_2031_halo3_ship/s_blf_chunk_compressed_data.js +112 -0
  131. package/dist/chunks/halo3/v12070_08_09_05_2031_halo3_ship/s_blf_chunk_end_of_file.d.ts +7 -0
  132. package/dist/chunks/halo3/v12070_08_09_05_2031_halo3_ship/s_blf_chunk_end_of_file.d.ts.map +1 -0
  133. package/dist/chunks/halo3/v12070_08_09_05_2031_halo3_ship/s_blf_chunk_end_of_file.js +72 -0
  134. package/dist/chunks/halo3/v12070_08_09_05_2031_halo3_ship/s_blf_chunk_start_of_file.d.ts +13 -0
  135. package/dist/chunks/halo3/v12070_08_09_05_2031_halo3_ship/s_blf_chunk_start_of_file.d.ts.map +1 -0
  136. package/dist/chunks/halo3/v12070_08_09_05_2031_halo3_ship/s_blf_chunk_start_of_file.js +83 -0
  137. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/index.d.ts +7 -0
  138. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/index.d.ts.map +1 -0
  139. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/index.js +6 -0
  140. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_author.d.ts +26 -0
  141. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_author.d.ts.map +1 -0
  142. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_author.js +109 -0
  143. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_compressed_data.d.ts +4 -0
  144. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_compressed_data.d.ts.map +1 -0
  145. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_compressed_data.js +3 -0
  146. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_content_header.d.ts +8 -0
  147. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_content_header.d.ts.map +1 -0
  148. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_content_header.js +78 -0
  149. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_game_variant.d.ts +24 -0
  150. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_game_variant.d.ts.map +1 -0
  151. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_game_variant.js +130 -0
  152. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_packed_game_variant.d.ts +15 -0
  153. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_packed_game_variant.d.ts.map +1 -0
  154. package/dist/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_packed_game_variant.js +85 -0
  155. package/dist/decorators.d.ts +38 -0
  156. package/dist/decorators.d.ts.map +1 -0
  157. package/dist/decorators.js +68 -0
  158. package/dist/error.d.ts +4 -0
  159. package/dist/error.d.ts.map +1 -0
  160. package/dist/error.js +6 -0
  161. package/dist/index.d.ts +7 -0
  162. package/dist/index.d.ts.map +1 -0
  163. package/dist/index.js +6 -0
  164. package/dist/s_blf_header.d.ts +14 -0
  165. package/dist/s_blf_header.d.ts.map +1 -0
  166. package/dist/s_blf_header.js +113 -0
  167. package/dist/versions/halo3/v12070_08_09_05_2031_halo3_ship.d.ts +5 -0
  168. package/dist/versions/halo3/v12070_08_09_05_2031_halo3_ship.d.ts.map +1 -0
  169. package/dist/versions/halo3/v12070_08_09_05_2031_halo3_ship.js +4 -0
  170. package/dist/versions/halo3odst/v13895_09_04_27_2201_atlas_release.d.ts +5 -0
  171. package/dist/versions/halo3odst/v13895_09_04_27_2201_atlas_release.d.ts.map +1 -0
  172. package/dist/versions/halo3odst/v13895_09_04_27_2201_atlas_release.js +4 -0
  173. package/dist/versions/haloreach/v12065_11_08_24_1738_tu1actual.d.ts +10 -0
  174. package/dist/versions/haloreach/v12065_11_08_24_1738_tu1actual.d.ts.map +1 -0
  175. package/dist/versions/haloreach/v12065_11_08_24_1738_tu1actual.js +9 -0
  176. package/dist-cjs/bitstream/enum.js +19 -0
  177. package/dist-cjs/bitstream/enums.js +34 -0
  178. package/dist-cjs/bitstream/errors.js +16 -0
  179. package/dist-cjs/bitstream/index.js +29 -0
  180. package/dist-cjs/bitstream/math.js +167 -0
  181. package/dist-cjs/bitstream/reader.js +404 -0
  182. package/dist-cjs/bitstream/writer.js +334 -0
  183. package/dist-cjs/blam/common/cache/index.js +17 -0
  184. package/dist-cjs/blam/common/cache/security_functions.js +22 -0
  185. package/dist-cjs/blam/common/index.js +18 -0
  186. package/dist-cjs/blam/common/memory/data_compress.js +33 -0
  187. package/dist-cjs/blam/common/memory/index.js +17 -0
  188. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_custom_variant.js +129 -0
  189. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_custom_variant_au1_settings.js +34 -0
  190. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_default.js +305 -0
  191. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_survival_variant.js +182 -0
  192. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_engine_traits.js +20 -0
  193. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_game_variant.js +113 -0
  194. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_player_traits.js +151 -0
  195. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/c_string_table.js +195 -0
  196. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/index.js +25 -0
  197. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/c_megalo_game_statistic.js +22 -0
  198. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/c_megalogamengine_map_permissions.js +22 -0
  199. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/c_object_filter.js +43 -0
  200. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/c_trigger.js +63 -0
  201. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/index.js +29 -0
  202. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_actions.js +1640 -0
  203. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_conditions.js +224 -0
  204. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_references.js +508 -0
  205. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_text.js +124 -0
  206. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_custom_game_engine_definition.js +120 -0
  207. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_game_engine_player_rating_parameters.js +58 -0
  208. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_user_defined_option.js +87 -0
  209. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_variable_metadata.js +93 -0
  210. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_variant_variable.js +79 -0
  211. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/index.js +19 -0
  212. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/saved_games/index.js +17 -0
  213. package/dist-cjs/blam/haloreach/v12065_11_08_24_1738_tu1actual/saved_games/saved_game_files.js +591 -0
  214. package/dist-cjs/blf_chunk.js +139 -0
  215. package/dist-cjs/blffile.js +26 -0
  216. package/dist-cjs/chunk_signature.js +52 -0
  217. package/dist-cjs/chunks/halo3/v12070_08_09_05_2031_halo3_ship/index.js +10 -0
  218. package/dist-cjs/chunks/halo3/v12070_08_09_05_2031_halo3_ship/s_blf_chunk_compressed_data.js +115 -0
  219. package/dist-cjs/chunks/halo3/v12070_08_09_05_2031_halo3_ship/s_blf_chunk_end_of_file.js +75 -0
  220. package/dist-cjs/chunks/halo3/v12070_08_09_05_2031_halo3_ship/s_blf_chunk_start_of_file.js +86 -0
  221. package/dist-cjs/chunks/haloreach/v12065_11_08_24_1738_tu1actual/index.js +23 -0
  222. package/dist-cjs/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_author.js +115 -0
  223. package/dist-cjs/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_compressed_data.js +10 -0
  224. package/dist-cjs/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_content_header.js +81 -0
  225. package/dist-cjs/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_game_variant.js +133 -0
  226. package/dist-cjs/chunks/haloreach/v12065_11_08_24_1738_tu1actual/s_blf_chunk_packed_game_variant.js +88 -0
  227. package/dist-cjs/decorators.js +75 -0
  228. package/dist-cjs/error.js +10 -0
  229. package/dist-cjs/index.js +53 -0
  230. package/dist-cjs/package.json +1 -0
  231. package/dist-cjs/s_blf_header.js +117 -0
  232. package/dist-cjs/versions/halo3/v12070_08_09_05_2031_halo3_ship.js +20 -0
  233. package/dist-cjs/versions/halo3odst/v13895_09_04_27_2201_atlas_release.js +20 -0
  234. package/dist-cjs/versions/haloreach/v12065_11_08_24_1738_tu1actual.js +25 -0
  235. package/package.json +99 -0
@@ -0,0 +1,496 @@
1
+ import { BlfError } from "../../../../../error";
2
+ function requireField(value, message) {
3
+ if (value === undefined) {
4
+ throw new BlfError(message);
5
+ }
6
+ return value;
7
+ }
8
+ export var e_custom_timer_type;
9
+ (function (e_custom_timer_type) {
10
+ e_custom_timer_type[e_custom_timer_type["global"] = 0] = "global";
11
+ e_custom_timer_type[e_custom_timer_type["player"] = 1] = "player";
12
+ e_custom_timer_type[e_custom_timer_type["team"] = 2] = "team";
13
+ e_custom_timer_type[e_custom_timer_type["object"] = 3] = "object";
14
+ e_custom_timer_type[e_custom_timer_type["round"] = 4] = "round";
15
+ e_custom_timer_type[e_custom_timer_type["sudden_death"] = 5] = "sudden_death";
16
+ e_custom_timer_type[e_custom_timer_type["grace_period"] = 6] = "grace_period";
17
+ })(e_custom_timer_type || (e_custom_timer_type = {}));
18
+ export class c_explicit_player {
19
+ m_explicit_player_type = 0;
20
+ decode(bitstream) {
21
+ this.m_explicit_player_type = bitstream.read_integer("explicit-player-type", 5);
22
+ }
23
+ encode(bitstream) {
24
+ bitstream.write_integer(this.m_explicit_player_type, 5);
25
+ }
26
+ }
27
+ export class c_explicit_object {
28
+ m_explicit_object_type = 0;
29
+ decode(bitstream) {
30
+ this.m_explicit_object_type = bitstream.read_integer("explicit-object-type", 5);
31
+ }
32
+ encode(bitstream) {
33
+ bitstream.write_integer(this.m_explicit_object_type, 5);
34
+ }
35
+ }
36
+ export class c_explicit_team {
37
+ m_explicit_team_type = 0;
38
+ decode(bitstream) {
39
+ this.m_explicit_team_type = bitstream.read_integer("explicit-team-type", 5);
40
+ }
41
+ encode(bitstream) {
42
+ bitstream.write_integer(this.m_explicit_team_type, 5);
43
+ }
44
+ }
45
+ export class c_object_reference {
46
+ m_type = 0;
47
+ m_player;
48
+ m_object;
49
+ m_team;
50
+ m_variable_index;
51
+ decode(bitstream) {
52
+ this.m_type = bitstream.read_integer("type", 3);
53
+ switch (this.m_type) {
54
+ case 0: {
55
+ const object = new c_explicit_object();
56
+ object.decode(bitstream);
57
+ this.m_object = object;
58
+ break;
59
+ }
60
+ case 1: {
61
+ const player = new c_explicit_player();
62
+ player.decode(bitstream);
63
+ this.m_player = player;
64
+ this.m_variable_index = bitstream.read_integer("variable-index", 2);
65
+ break;
66
+ }
67
+ case 2: {
68
+ const object = new c_explicit_object();
69
+ object.decode(bitstream);
70
+ this.m_object = object;
71
+ this.m_variable_index = bitstream.read_integer("variable-index", 2);
72
+ break;
73
+ }
74
+ case 3: {
75
+ const team = new c_explicit_team();
76
+ team.decode(bitstream);
77
+ this.m_team = team;
78
+ this.m_variable_index = bitstream.read_integer("variable-index", 3);
79
+ break;
80
+ }
81
+ case 4: {
82
+ const player = new c_explicit_player();
83
+ player.decode(bitstream);
84
+ this.m_player = player;
85
+ break;
86
+ }
87
+ case 5: {
88
+ const player = new c_explicit_player();
89
+ player.decode(bitstream);
90
+ this.m_player = player;
91
+ this.m_variable_index = bitstream.read_integer("variable-index", 2);
92
+ break;
93
+ }
94
+ case 6: {
95
+ const object = new c_explicit_object();
96
+ object.decode(bitstream);
97
+ this.m_object = object;
98
+ this.m_variable_index = bitstream.read_integer("variable-index", 2);
99
+ break;
100
+ }
101
+ case 7: {
102
+ const team = new c_explicit_team();
103
+ team.decode(bitstream);
104
+ this.m_team = team;
105
+ this.m_variable_index = bitstream.read_integer("variable-index", 2);
106
+ break;
107
+ }
108
+ default:
109
+ break;
110
+ }
111
+ }
112
+ encode(bitstream) {
113
+ bitstream.write_integer(this.m_type, 3);
114
+ switch (this.m_type) {
115
+ case 0:
116
+ requireField(this.m_object, "m_object does not exist.").encode(bitstream);
117
+ break;
118
+ case 1:
119
+ requireField(this.m_player, "m_player does not exist.").encode(bitstream);
120
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 2);
121
+ break;
122
+ case 2:
123
+ requireField(this.m_object, "m_object does not exist.").encode(bitstream);
124
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 2);
125
+ break;
126
+ case 3:
127
+ requireField(this.m_team, "m_team does not exist.").encode(bitstream);
128
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 3);
129
+ break;
130
+ case 4:
131
+ requireField(this.m_player, "m_player does not exist.").encode(bitstream);
132
+ break;
133
+ case 5:
134
+ requireField(this.m_player, "m_player does not exist.").encode(bitstream);
135
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 2);
136
+ break;
137
+ case 6:
138
+ requireField(this.m_object, "m_object does not exist.").encode(bitstream);
139
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 2);
140
+ break;
141
+ case 7:
142
+ requireField(this.m_team, "m_team does not exist.").encode(bitstream);
143
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 2);
144
+ break;
145
+ default:
146
+ throw new BlfError(`Invalid c_object_reference: type ${this.m_type}`);
147
+ }
148
+ }
149
+ }
150
+ export class c_player_reference {
151
+ m_type = 0;
152
+ m_player;
153
+ m_object;
154
+ m_team;
155
+ m_variable_index;
156
+ decode(bitstream) {
157
+ this.m_type = bitstream.read_integer("type", 2);
158
+ switch (this.m_type) {
159
+ case 0: {
160
+ const player = new c_explicit_player();
161
+ player.decode(bitstream);
162
+ this.m_player = player;
163
+ break;
164
+ }
165
+ case 1: {
166
+ const player = new c_explicit_player();
167
+ player.decode(bitstream);
168
+ this.m_player = player;
169
+ this.m_variable_index = bitstream.read_integer("m_variable_index", 2);
170
+ break;
171
+ }
172
+ case 2: {
173
+ const object = new c_explicit_object();
174
+ object.decode(bitstream);
175
+ this.m_object = object;
176
+ this.m_variable_index = bitstream.read_integer("m_variable_index", 2);
177
+ break;
178
+ }
179
+ case 3: {
180
+ const team = new c_explicit_team();
181
+ team.decode(bitstream);
182
+ this.m_team = team;
183
+ this.m_variable_index = bitstream.read_integer("m_variable_index", 2);
184
+ break;
185
+ }
186
+ default:
187
+ break;
188
+ }
189
+ }
190
+ encode(bitstream) {
191
+ bitstream.write_integer(this.m_type, 2);
192
+ switch (this.m_type) {
193
+ case 0:
194
+ requireField(this.m_player, "m_player does not exist.").encode(bitstream);
195
+ break;
196
+ case 1:
197
+ requireField(this.m_player, "m_player does not exist.").encode(bitstream);
198
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 2);
199
+ break;
200
+ case 2:
201
+ requireField(this.m_object, "m_object does not exist.").encode(bitstream);
202
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 2);
203
+ break;
204
+ case 3:
205
+ requireField(this.m_team, "m_team does not exist.").encode(bitstream);
206
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 2);
207
+ break;
208
+ default:
209
+ throw new BlfError(`Invalid c_player_reference: type ${this.m_type}`);
210
+ }
211
+ }
212
+ }
213
+ export class c_team_reference {
214
+ m_type = 0;
215
+ m_player;
216
+ m_object;
217
+ m_team;
218
+ m_variable_index;
219
+ decode(bitstream) {
220
+ this.m_type = bitstream.read_integer("type", 3);
221
+ switch (this.m_type) {
222
+ case 0: {
223
+ const team = new c_explicit_team();
224
+ team.decode(bitstream);
225
+ this.m_team = team;
226
+ break;
227
+ }
228
+ case 1: {
229
+ const player = new c_explicit_player();
230
+ player.decode(bitstream);
231
+ this.m_player = player;
232
+ this.m_variable_index = bitstream.read_integer("variable-index", 2);
233
+ break;
234
+ }
235
+ case 2: {
236
+ const object = new c_explicit_object();
237
+ object.decode(bitstream);
238
+ this.m_object = object;
239
+ this.m_variable_index = bitstream.read_integer("variable-index", 1);
240
+ break;
241
+ }
242
+ case 3: {
243
+ const team = new c_explicit_team();
244
+ team.decode(bitstream);
245
+ this.m_team = team;
246
+ this.m_variable_index = bitstream.read_integer("variable-index", 2);
247
+ break;
248
+ }
249
+ case 4: {
250
+ const player = new c_explicit_player();
251
+ player.decode(bitstream);
252
+ this.m_player = player;
253
+ break;
254
+ }
255
+ case 5: {
256
+ const object = new c_explicit_object();
257
+ object.decode(bitstream);
258
+ this.m_object = object;
259
+ break;
260
+ }
261
+ default:
262
+ break;
263
+ }
264
+ }
265
+ encode(bitstream) {
266
+ bitstream.write_integer(this.m_type, 3);
267
+ switch (this.m_type) {
268
+ case 0:
269
+ requireField(this.m_team, "m_team does not exist.").encode(bitstream);
270
+ break;
271
+ case 1:
272
+ requireField(this.m_player, "m_player does not exist.").encode(bitstream);
273
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 2);
274
+ break;
275
+ case 2:
276
+ requireField(this.m_object, "m_object does not exist.").encode(bitstream);
277
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 1);
278
+ break;
279
+ case 3:
280
+ requireField(this.m_team, "m_team does not exist.").encode(bitstream);
281
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 2);
282
+ break;
283
+ case 4:
284
+ requireField(this.m_player, "m_player does not exist.").encode(bitstream);
285
+ break;
286
+ case 5:
287
+ requireField(this.m_object, "m_object does not exist.").encode(bitstream);
288
+ break;
289
+ default:
290
+ throw new BlfError(`Invalid c_team_reference: type ${this.m_type}`);
291
+ }
292
+ }
293
+ }
294
+ export class c_custom_variable_reference {
295
+ m_type = 0;
296
+ m_immediate_value;
297
+ m_player;
298
+ m_object;
299
+ m_team;
300
+ m_variable_index;
301
+ m_option_index;
302
+ m_statistic_index;
303
+ decode(bitstream) {
304
+ this.m_type = bitstream.read_integer("type", 6);
305
+ switch (this.m_type) {
306
+ case 0:
307
+ this.m_immediate_value = bitstream.read_signed_integer("immediate-value", 16);
308
+ break;
309
+ case 1: {
310
+ const player = new c_explicit_player();
311
+ player.decode(bitstream);
312
+ this.m_player = player;
313
+ this.m_variable_index = bitstream.read_integer("variable-index", 3);
314
+ break;
315
+ }
316
+ case 2: {
317
+ const object = new c_explicit_object();
318
+ object.decode(bitstream);
319
+ this.m_object = object;
320
+ this.m_variable_index = bitstream.read_integer("variable-index", 3);
321
+ break;
322
+ }
323
+ case 3: {
324
+ const team = new c_explicit_team();
325
+ team.decode(bitstream);
326
+ this.m_team = team;
327
+ this.m_variable_index = bitstream.read_integer("variable-index", 3);
328
+ break;
329
+ }
330
+ case 4:
331
+ this.m_variable_index = bitstream.read_integer("variable-index", 4);
332
+ break;
333
+ case 5:
334
+ this.m_option_index = bitstream.read_integer("option-index", 4);
335
+ break;
336
+ case 6: {
337
+ const object = new c_explicit_object();
338
+ object.decode(bitstream);
339
+ this.m_object = object;
340
+ break;
341
+ }
342
+ case 7: {
343
+ const team = new c_explicit_team();
344
+ team.decode(bitstream);
345
+ this.m_team = team;
346
+ break;
347
+ }
348
+ case 8:
349
+ case 9:
350
+ case 10: {
351
+ const player = new c_explicit_player();
352
+ player.decode(bitstream);
353
+ this.m_player = player;
354
+ break;
355
+ }
356
+ case 11: {
357
+ const player = new c_explicit_player();
358
+ player.decode(bitstream);
359
+ this.m_player = player;
360
+ this.m_statistic_index = bitstream.read_integer("statistic-index", 2);
361
+ break;
362
+ }
363
+ case 12: {
364
+ const team = new c_explicit_team();
365
+ team.decode(bitstream);
366
+ this.m_team = team;
367
+ this.m_statistic_index = bitstream.read_integer("statistic-index", 2);
368
+ break;
369
+ }
370
+ default:
371
+ break;
372
+ }
373
+ }
374
+ encode(bitstream) {
375
+ bitstream.write_integer(this.m_type, 6);
376
+ switch (this.m_type) {
377
+ case 0:
378
+ bitstream.write_signed_integer(requireField(this.m_immediate_value, "m_immediate_value does not exist."), 16);
379
+ break;
380
+ case 1:
381
+ requireField(this.m_player, "m_player does not exist.").encode(bitstream);
382
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 3);
383
+ break;
384
+ case 2:
385
+ requireField(this.m_object, "m_object does not exist.").encode(bitstream);
386
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 3);
387
+ break;
388
+ case 3:
389
+ requireField(this.m_team, "m_team does not exist.").encode(bitstream);
390
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 3);
391
+ break;
392
+ case 4:
393
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 4);
394
+ break;
395
+ case 5:
396
+ bitstream.write_integer(requireField(this.m_option_index, "m_option_index does not exist."), 4);
397
+ break;
398
+ case 6:
399
+ requireField(this.m_object, "m_object does not exist.").encode(bitstream);
400
+ break;
401
+ case 7:
402
+ requireField(this.m_team, "m_team does not exist.").encode(bitstream);
403
+ break;
404
+ case 8:
405
+ case 9:
406
+ case 10:
407
+ requireField(this.m_player, "m_player does not exist.").encode(bitstream);
408
+ break;
409
+ case 11:
410
+ requireField(this.m_player, "m_player does not exist.").encode(bitstream);
411
+ bitstream.write_integer(requireField(this.m_statistic_index, "m_statistic_index does not exist."), 2);
412
+ break;
413
+ case 12:
414
+ requireField(this.m_team, "m_team does not exist.").encode(bitstream);
415
+ bitstream.write_integer(requireField(this.m_statistic_index, "m_statistic_index does not exist."), 2);
416
+ break;
417
+ }
418
+ }
419
+ }
420
+ export class c_custom_timer_reference {
421
+ m_type = e_custom_timer_type.global;
422
+ m_player;
423
+ m_object;
424
+ m_team;
425
+ m_variable_index;
426
+ decode(bitstream) {
427
+ this.m_type = bitstream.read_enum("type", 3, e_custom_timer_type);
428
+ switch (this.m_type) {
429
+ case e_custom_timer_type.global:
430
+ this.m_variable_index = bitstream.read_integer("global-variable-index", 3);
431
+ break;
432
+ case e_custom_timer_type.player: {
433
+ const player = new c_explicit_player();
434
+ player.decode(bitstream);
435
+ this.m_player = player;
436
+ this.m_variable_index = bitstream.read_integer("player-variable-index", 2);
437
+ break;
438
+ }
439
+ case e_custom_timer_type.team: {
440
+ const team = new c_explicit_team();
441
+ team.decode(bitstream);
442
+ this.m_team = team;
443
+ this.m_variable_index = bitstream.read_integer("team-variable-index", 2);
444
+ break;
445
+ }
446
+ case e_custom_timer_type.object: {
447
+ const object = new c_explicit_object();
448
+ object.decode(bitstream);
449
+ this.m_object = object;
450
+ this.m_variable_index = bitstream.read_integer("object-variable-index", 2);
451
+ break;
452
+ }
453
+ case e_custom_timer_type.round:
454
+ case e_custom_timer_type.sudden_death:
455
+ case e_custom_timer_type.grace_period:
456
+ break;
457
+ default:
458
+ break;
459
+ }
460
+ }
461
+ encode(bitstream) {
462
+ bitstream.write_enum(this.m_type, 3);
463
+ switch (this.m_type) {
464
+ case e_custom_timer_type.global:
465
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 3);
466
+ break;
467
+ case e_custom_timer_type.player:
468
+ requireField(this.m_player, "m_player does not exist.").encode(bitstream);
469
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 2);
470
+ break;
471
+ case e_custom_timer_type.team:
472
+ requireField(this.m_team, "m_team does not exist.").encode(bitstream);
473
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 2);
474
+ break;
475
+ case e_custom_timer_type.object:
476
+ requireField(this.m_object, "m_object does not exist.").encode(bitstream);
477
+ bitstream.write_integer(requireField(this.m_variable_index, "m_variable_index does not exist."), 2);
478
+ break;
479
+ case e_custom_timer_type.round:
480
+ case e_custom_timer_type.sudden_death:
481
+ case e_custom_timer_type.grace_period:
482
+ break;
483
+ default:
484
+ throw new BlfError(`Invalid c_custom_timer_reference: type ${this.m_type}`);
485
+ }
486
+ }
487
+ }
488
+ export class c_object_type_reference {
489
+ m_object_type_index = 0;
490
+ decode(bitstream) {
491
+ this.m_object_type_index = bitstream.read_index("object-type-index", 2048, 11);
492
+ }
493
+ encode(bitstream) {
494
+ bitstream.write_index(this.m_object_type_index, 2048, 11);
495
+ }
496
+ }
@@ -0,0 +1,26 @@
1
+ import type { c_bitstream_reader, c_bitstream_writer } from "../../../../../bitstream";
2
+ import { c_custom_timer_reference, c_custom_variable_reference, c_object_reference, c_player_reference, c_team_reference } from "./megalogamengine_references";
3
+ export declare class c_player_filter_modifier {
4
+ m_type: number;
5
+ m_player?: c_player_reference;
6
+ m_variable?: c_custom_variable_reference;
7
+ decode(bitstream: c_bitstream_reader): void;
8
+ encode(bitstream: c_bitstream_writer): void;
9
+ }
10
+ export declare class c_replaceable_token {
11
+ m_type: number;
12
+ m_player?: c_player_reference;
13
+ m_object?: c_object_reference;
14
+ m_team?: c_team_reference;
15
+ m_custom_timer?: c_custom_timer_reference;
16
+ m_custom_variable?: c_custom_variable_reference;
17
+ decode(bitstream: c_bitstream_reader): void;
18
+ encode(bitstream: c_bitstream_writer): void;
19
+ }
20
+ export declare class c_dynamic_string {
21
+ m_string_index: number;
22
+ m_tokens: c_replaceable_token[];
23
+ decode(bitstream: c_bitstream_reader): void;
24
+ encode(bitstream: c_bitstream_writer): void;
25
+ }
26
+ //# sourceMappingURL=megalogamengine_text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"megalogamengine_text.d.ts","sourceRoot":"","sources":["../../../../../../src/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/megalogamengine_text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AAStC,qBAAa,wBAAwB;IACnC,MAAM,SAAK;IACX,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,UAAU,CAAC,EAAE,2BAA2B,CAAC;IAEzC,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAY3C,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;CAS5C;AAED,qBAAa,mBAAmB;IAC9B,MAAM,SAAK;IACX,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,cAAc,CAAC,EAAE,wBAAwB,CAAC;IAC1C,iBAAiB,CAAC,EAAE,2BAA2B,CAAC;IAEhD,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAuC3C,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;CAgC5C;AAED,qBAAa,gBAAgB;IAC3B,cAAc,SAAK;IACnB,QAAQ,EAAE,mBAAmB,EAAE,CAAM;IAErC,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAU3C,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;CAO5C"}
@@ -0,0 +1,118 @@
1
+ import { BlfError } from "../../../../../error";
2
+ import { c_custom_timer_reference, c_custom_variable_reference, c_object_reference, c_player_reference, c_team_reference, } from "./megalogamengine_references";
3
+ function requireField(value, message) {
4
+ if (value === undefined) {
5
+ throw new BlfError(message);
6
+ }
7
+ return value;
8
+ }
9
+ export class c_player_filter_modifier {
10
+ m_type = 0;
11
+ m_player;
12
+ m_variable;
13
+ decode(bitstream) {
14
+ this.m_type = bitstream.read_integer("type", 3);
15
+ if (this.m_type === 4) {
16
+ const player = new c_player_reference();
17
+ const variable = new c_custom_variable_reference();
18
+ player.decode(bitstream);
19
+ variable.decode(bitstream);
20
+ this.m_player = player;
21
+ this.m_variable = variable;
22
+ }
23
+ }
24
+ encode(bitstream) {
25
+ bitstream.write_integer(this.m_type, 3);
26
+ if (this.m_type === 4) {
27
+ requireField(this.m_player, "m_player does not exist.").encode(bitstream);
28
+ requireField(this.m_variable, "m_variable does not exist.").encode(bitstream);
29
+ }
30
+ }
31
+ }
32
+ export class c_replaceable_token {
33
+ m_type = 0;
34
+ m_player;
35
+ m_object;
36
+ m_team;
37
+ m_custom_timer;
38
+ m_custom_variable;
39
+ decode(bitstream) {
40
+ this.m_type = bitstream.read_integer("token-type", 3);
41
+ switch (this.m_type) {
42
+ case 1: {
43
+ const player = new c_player_reference();
44
+ player.decode(bitstream);
45
+ this.m_player = player;
46
+ break;
47
+ }
48
+ case 2: {
49
+ const team = new c_team_reference();
50
+ team.decode(bitstream);
51
+ this.m_team = team;
52
+ break;
53
+ }
54
+ case 3: {
55
+ const object = new c_object_reference();
56
+ object.decode(bitstream);
57
+ this.m_object = object;
58
+ break;
59
+ }
60
+ case 4: {
61
+ const customVariable = new c_custom_variable_reference();
62
+ customVariable.decode(bitstream);
63
+ this.m_custom_variable = customVariable;
64
+ break;
65
+ }
66
+ case 5: {
67
+ const customTimer = new c_custom_timer_reference();
68
+ customTimer.decode(bitstream);
69
+ this.m_custom_timer = customTimer;
70
+ break;
71
+ }
72
+ default:
73
+ break;
74
+ }
75
+ }
76
+ encode(bitstream) {
77
+ bitstream.write_integer(this.m_type, 3);
78
+ switch (this.m_type) {
79
+ case 1:
80
+ requireField(this.m_player, "m_player does not exist.").encode(bitstream);
81
+ break;
82
+ case 2:
83
+ requireField(this.m_team, "m_team does not exist.").encode(bitstream);
84
+ break;
85
+ case 3:
86
+ requireField(this.m_object, "m_object does not exist.").encode(bitstream);
87
+ break;
88
+ case 4:
89
+ requireField(this.m_custom_variable, "m_custom_variable does not exist.").encode(bitstream);
90
+ break;
91
+ case 5:
92
+ requireField(this.m_custom_timer, "m_custom_timer does not exist.").encode(bitstream);
93
+ break;
94
+ default:
95
+ throw new BlfError(`Invalid c_replaceable_token: type ${this.m_type}`);
96
+ }
97
+ }
98
+ }
99
+ export class c_dynamic_string {
100
+ m_string_index = 0;
101
+ m_tokens = [];
102
+ decode(bitstream) {
103
+ this.m_string_index = bitstream.read_integer("string-index", 7);
104
+ const tokenCount = bitstream.read_integer("token-count", 2);
105
+ for (let i = 0; i < tokenCount; i++) {
106
+ const token = new c_replaceable_token();
107
+ token.decode(bitstream);
108
+ this.m_tokens.push(token);
109
+ }
110
+ }
111
+ encode(bitstream) {
112
+ bitstream.write_integer(this.m_string_index, 7);
113
+ bitstream.write_integer(this.m_tokens.length, 2);
114
+ for (const token of this.m_tokens) {
115
+ token.encode(bitstream);
116
+ }
117
+ }
118
+ }
@@ -0,0 +1,29 @@
1
+ import type { c_bitstream_reader, c_bitstream_writer } from "../../../../../bitstream";
2
+ import { c_megalo_game_statistic } from "./c_megalo_game_statistic";
3
+ import { c_object_filter } from "./c_object_filter";
4
+ import { c_trigger } from "./c_trigger";
5
+ import { c_action } from "./megalogamengine_actions";
6
+ import { c_condition } from "./megalogamengine_conditions";
7
+ export declare class s_custom_game_engine_definition {
8
+ m_conditions: c_condition[];
9
+ m_actions: c_action[];
10
+ m_triggers: c_trigger[];
11
+ m_statistics: c_megalo_game_statistic[];
12
+ m_global_variable_metadata: import("./s_variable_metadata").s_variable_metadata;
13
+ m_player_variable_metadata: import("./s_variable_metadata").s_variable_metadata;
14
+ m_object_variable_metadata: import("./s_variable_metadata").s_variable_metadata;
15
+ m_team_variable_metadata: import("./s_variable_metadata").s_variable_metadata;
16
+ m_hud_widgets: number[];
17
+ m_initialization_trigger_index: number;
18
+ m_local_initialization_trigger_index: number;
19
+ m_host_migration_trigger_index: number;
20
+ m_double_migration_trigger_index: number;
21
+ m_object_death_event_trigger_index: number;
22
+ m_local_trigger_index: number;
23
+ m_pregame_trigger_index: number;
24
+ m_objects_used: boolean[];
25
+ m_object_filters: c_object_filter[];
26
+ decode(bitstream: c_bitstream_reader): void;
27
+ encode(bitstream: c_bitstream_writer): void;
28
+ }
29
+ //# sourceMappingURL=s_custom_game_engine_definition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"s_custom_game_engine_definition.d.ts","sourceRoot":"","sources":["../../../../../../src/blam/haloreach/v12065_11_08_24_1738_tu1actual/game/megalogamengine/s_custom_game_engine_definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAQ3D,qBAAa,+BAA+B;IAC1C,YAAY,EAAE,WAAW,EAAE,CAAM;IACjC,SAAS,EAAE,QAAQ,EAAE,CAAM;IAC3B,UAAU,EAAE,SAAS,EAAE,CAAM;IAC7B,YAAY,EAAE,uBAAuB,EAAE,CAAM;IAC7C,0BAA0B,sDAAgC;IAC1D,0BAA0B,sDAAgC;IAC1D,0BAA0B,sDAAgC;IAC1D,wBAAwB,sDAA8B;IACtD,aAAa,EAAE,MAAM,EAAE,CAAM;IAC7B,8BAA8B,SAAK;IACnC,oCAAoC,SAAK;IACzC,8BAA8B,SAAK;IACnC,gCAAgC,SAAK;IACrC,kCAAkC,SAAK;IACvC,qBAAqB,SAAK;IAC1B,uBAAuB,SAAK;IAC5B,cAAc,EAAE,OAAO,EAAE,CAA6C;IACtE,gBAAgB,EAAE,eAAe,EAAE,CAAM;IAEzC,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAmF3C,MAAM,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;CAwC5C"}