UNPKG

xcom2charpool

Version:

Library for reading, manipulating, and managing XCOM 2 character pool binary files, supporting both browser and Node.js environments.

21 lines (20 loc) 1.21 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.IAMCharacterPoolSchema = void 0; const v4_1 = __importDefault(require("zod/v4")); const CharacterPoolSchema_1 = require("./CharacterPoolSchema"); const ArrayOfStructSchema_1 = require("../Properties/Array/ArrayOfStructSchema"); const CharacterPoolDataItemSchema_1 = require("./CharacterPoolDataItemSchema"); const TAppearanceSchema_1 = require("./TAppearanceSchema"); const StructSchema_1 = require("../Properties/Struct/StructSchema"); exports.IAMCharacterPoolSchema = CharacterPoolSchema_1.CharacterPoolSchema.extend({ Props: v4_1.default.looseObject({ ExtraDatas: (0, ArrayOfStructSchema_1.ArrayOfStructSchema)('ExtraData', v4_1.default.looseObject({ CharPoolData: (0, StructSchema_1.StructSchema)('CharacterPoolDataElement', CharacterPoolDataItemSchema_1.CharacterPoolDataItemSchema), AppearanceStore: (0, ArrayOfStructSchema_1.ArrayOfStructSchema)('Appearance', TAppearanceSchema_1.TAppearanceSchema.partial()), })).optional(), }), });