xcom2charpool
Version:
Library for reading, manipulating, and managing XCOM 2 character pool binary files, supporting both browser and Node.js environments.
11 lines (10 loc) • 396 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArrayOfInt = void 0;
const IntProperty_1 = require("../Properties/IntProperty");
class ArrayOfInt {
static from(array, elementsType, factory) {
return Array.from({ length: array.length }, () => IntProperty_1.IntProperty.from(array.reader, elementsType, 0));
}
}
exports.ArrayOfInt = ArrayOfInt;