UNPKG

deadem

Version:

JavaScript (Node.js & Browsers) parser for Deadlock (Valve Source 2 Engine) demo/replay files

55 lines (49 loc) 1.1 kB
/** * Represents a partial mutation event used by * threads in concurrent parsing. */ class EntityMutationPartialEvent { /** * @public * @constructor * @param {number} bitPointer * @param {number} entityIndex * @param {number} entityClassId * @param {Array<bigint|*>} mutations */ constructor(bitPointer, entityIndex, entityClassId, mutations) { this._bitPointer = bitPointer; this._entityIndex = entityIndex; this._entityClassId = entityClassId; this._mutations = mutations; } /** * @public * @returns {number} */ get bitPointer() { return this._bitPointer; } /** * @public * @returns {number} */ get entityIndex() { return this._entityIndex; } /** * @public * @returns {number} */ get entityClassId() { return this._entityClassId; } /** * @public * @returns {Array<bigint|*>} */ get mutations() { return this._mutations; } } export default EntityMutationPartialEvent;