public override byte[] Pack() { DynamicOutputBuffer buffer = DynamicOutputBuffer.Get(Code); buffer.WriteNullTermString(URL); return(buffer.GetMessageBuffer()); }
public override byte[] Pack() { DynamicOutputBuffer buffer = DynamicOutputBuffer.Get(Code); buffer.WriteUInt16((UInt16)ReasonCode); buffer.WriteNullTermString(ReasonMessage); return(buffer.GetMessageBuffer()); }
public override byte[] Pack() { DynamicOutputBuffer buffer = DynamicOutputBuffer.Get(Code); if (NetworkMessage.IsOnServer) { buffer.WriteNullTermString((IsRandomMap ? "t" : string.Empty) + WorldHash); } return(buffer.GetMessageBuffer()); }