// This file has been automatically generated by writePacketClasses.js import {UUID} from '../UUID'; import {MessageFlags} from '../../enums/MessageFlags'; import {Packet} from '../Packet'; export class DenyTrustedCircuitPacket implements Packet { name = 'DenyTrustedCircuit'; flags = MessageFlags.FrequencyLow; id = 4294902153; DataBlock: { EndPointID: UUID; }; getSize(): number { return 16; } writeToBuffer(buf: Buffer, pos: number): number { const startPos = pos; this.DataBlock['EndPointID'].writeToBuffer(buf, pos); pos += 16; return pos - startPos; } readFromBuffer(buf: Buffer, pos: number): number { const startPos = pos; const newObjDataBlock: { EndPointID: UUID } = { EndPointID: UUID.zero() }; newObjDataBlock['EndPointID'] = new UUID(buf, pos); pos += 16; this.DataBlock = newObjDataBlock; return pos - startPos; } }