UNPKG

deadem

Version:

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

41 lines (36 loc) 658 B
class MessagePacketRaw { /** * @public * @constructor * @param {number} type * @param {number} size * @param {Buffer} payload */ constructor(type, size, payload) { this._type = type; this._size = size; this._payload = payload; } /** * @public * @returns {number} */ get type() { return this._type; } /** * @public * @returns {number} */ get size() { return this._size; } /** * @public * @returns {Buffer} */ get payload() { return this._payload; } } export default MessagePacketRaw;