예제 #1
0
        public override byte[] Pack()
        {
            DynamicOutputBuffer buffer = DynamicOutputBuffer.Get(Code);

            buffer.WriteNullTermString(URL);

            return(buffer.GetMessageBuffer());
        }
예제 #2
0
        public override byte[] Pack()
        {
            DynamicOutputBuffer buffer = DynamicOutputBuffer.Get(Code);

            buffer.WriteUInt16((UInt16)ReasonCode);
            buffer.WriteNullTermString(ReasonMessage);

            return(buffer.GetMessageBuffer());
        }
예제 #3
0
        public override byte[] Pack()
        {
            DynamicOutputBuffer buffer = DynamicOutputBuffer.Get(Code);

            if (NetworkMessage.IsOnServer)
            {
                buffer.WriteNullTermString((IsRandomMap ? "t" : string.Empty) + WorldHash);
            }

            return(buffer.GetMessageBuffer());
        }