UNPKG

homm3-parsers

Version:

Collection of binary parsers able to parse various file formats related to Heroes of Might and Magic III

9 lines 775 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const binary_markup_1 = require("binary-markup"); const common_bml_1 = require("./common.bml"); const event = binary_markup_1.struct(common_bml_1.hommString `name`, common_bml_1.hommString `message`, common_bml_1.resources `resources`, binary_markup_1.flag `appliesToPlayers`, binary_markup_1.when(common_bml_1.isSoD, binary_markup_1.flag) `appliesToHuman`, binary_markup_1.flag `appliesToComputer`, binary_markup_1.uint16 `firstOccurence`, binary_markup_1.uint8 `subsequentOccurences`, binary_markup_1.skip(17)); exports.events = binary_markup_1.struct( // binary_markup_1.uint32 `count`, binary_markup_1.array(event, binary_markup_1.ctx `count`) `entries`); //# sourceMappingURL=events.bml.js.map