Beispiel #1
0
        public static SendToRoomChatEvent read(BinaryReader binaryReader)
        {
            SendToRoomChatEvent newObj = new SendToRoomChatEvent();

            newObj.cbSize          = binaryReader.ReadUInt32();
            newObj.dwRoomID        = binaryReader.ReadUInt32();
            newObj.pwszDisplayName = Util.readUnicodeString(binaryReader);
            newObj.pwszText        = Util.readUnicodeString(binaryReader);
            newObj.extraInfoBlob   = TurbineChatBlob.read(binaryReader);
            return(newObj);
        }
Beispiel #2
0
        public static SendToRoomChatEvent read(BinaryReader binaryReader)
        {
            SendToRoomChatEvent newObj = new SendToRoomChatEvent();
            var startPosition          = binaryReader.BaseStream.Position;

            newObj.cbSize          = binaryReader.ReadUInt32();
            newObj.dwRoomID        = binaryReader.ReadUInt32();
            newObj.pwszDisplayName = Util.readUnicodeString(binaryReader);
            newObj.pwszText        = Util.readUnicodeString(binaryReader);
            newObj.extraInfoBlob   = TurbineChatBlob.read(binaryReader);
            newObj.Length          = (int)(binaryReader.BaseStream.Position - startPosition);
            return(newObj);
        }
Beispiel #3
0
        public static Request read(BinaryReader binaryReader, AsyncMethodID m_blobDispatchType)
        {
            Request newObj = new Request();

            newObj.m_blobDispatchType = m_blobDispatchType;
            newObj.cbSize             = binaryReader.ReadUInt32();
            newObj.m_contextID        = binaryReader.ReadUInt32(); // Seems to be incremented every time the client makes a request.
            newObj.dwRequestID        = binaryReader.ReadUInt32();
            newObj.m_methodID         = binaryReader.ReadUInt32();
            if (m_blobDispatchType == AsyncMethodID.ASYNCMETHOD_SENDTOROOMBYNAME)
            {
                newObj.m_roomName = Util.readUnicodeString(binaryReader);
            }
            else if (m_blobDispatchType == AsyncMethodID.ASYNCMETHOD_SENDTOROOMBYID)
            {
                newObj.m_roomID = binaryReader.ReadUInt32();
            }
            newObj.m_text        = Util.readUnicodeString(binaryReader);
            newObj.extraInfoBlob = TurbineChatBlob.read(binaryReader);
            return(newObj);
        }