Example #1
0
        public override void Deserialize(ICustomDataInput reader)
        {
            byte flag = reader.ReadByte();

            m_self    = BooleanByteWrapper.GetFlag(flag, 0);
            m_verbose = BooleanByteWrapper.GetFlag(flag, 1);
            int socialGroupsCount = reader.ReadUShort();
            int socialGroupsIndex;

            m_socialGroups = new System.Collections.Generic.List <AbstractSocialGroupInfos>();
            for (socialGroupsIndex = 0; (socialGroupsIndex < socialGroupsCount); socialGroupsIndex = (socialGroupsIndex + 1))
            {
                AbstractSocialGroupInfos objectToAdd = ProtocolTypeManager.GetInstance <AbstractSocialGroupInfos>((short)reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                m_socialGroups.Add(objectToAdd);
            }
            m_position        = reader.ReadByte();
            m_accountNickname = reader.ReadUTF();
            m_accountId       = reader.ReadInt();
            m_playerName      = reader.ReadUTF();
            m_playerId        = reader.ReadVarUhLong();
            m_areaId          = reader.ReadShort();
            m_serverId        = reader.ReadShort();
            m_originServerId  = reader.ReadShort();
            m_playerState     = reader.ReadByte();
        }
Example #2
0
        public override void Deserialize(IDataReader reader)
        {
            var flag = reader.ReadByte();

            Self            = BooleanByteWrapper.GetFlag(flag, 0);;
            Verbose         = BooleanByteWrapper.GetFlag(flag, 1);;
            Position        = reader.ReadSByte();
            AccountNickname = reader.ReadUTF();
            AccountId       = reader.ReadInt();
            PlayerName      = reader.ReadUTF();
            PlayerId        = reader.ReadVarUhLong();
            AreaId          = reader.ReadShort();
            ServerId        = reader.ReadShort();
            OriginServerId  = reader.ReadShort();
            var SocialGroupsCount = reader.ReadShort();

            SocialGroups = new List <AbstractSocialGroupInfos>();
            for (var i = 0; i < SocialGroupsCount; i++)
            {
                AbstractSocialGroupInfos objectToAdd = ProtocolTypeManager.GetInstance(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                SocialGroups.Add(objectToAdd);
            }
            PlayerState = reader.ReadSByte();
        }
Example #3
0
        public override void Deserialize(ICustomDataInput reader)
        {
            byte box0 = reader.ReadByte();

            Self            = BooleanByteWrapper.GetFlag(box0, 1);
            Verbose         = BooleanByteWrapper.GetFlag(box0, 2);
            Position        = reader.ReadByte();
            AccountNickname = reader.ReadUTF();
            AccountId       = reader.ReadInt();
            PlayerName      = reader.ReadUTF();
            PlayerId        = reader.ReadVarLong();
            AreaId          = reader.ReadShort();
            ServerId        = reader.ReadShort();
            OriginServerId  = reader.ReadShort();
            var countSocialGroups = reader.ReadShort();

            SocialGroups = new List <AbstractSocialGroupInfos>();
            for (short i = 0; i < countSocialGroups; i++)
            {
                var socialGroupstypeId        = reader.ReadShort();
                AbstractSocialGroupInfos type = new AbstractSocialGroupInfos();
                type.Deserialize(reader);
                SocialGroups.Add(type);
            }
            PlayerState = reader.ReadByte();
        }
Example #4
0
        public override void Deserialize(IDataReader reader)
        {
            uint num1 = (uint)reader.ReadByte();

            this.self            = Burning.DofusProtocol.Network.BooleanByteWrapper.GetFlag((byte)num1, (byte)0);
            this.verbose         = Burning.DofusProtocol.Network.BooleanByteWrapper.GetFlag((byte)num1, (byte)1);
            this.position        = (int)reader.ReadByte();
            this.accountNickname = reader.ReadUTF();
            this.accountId       = (uint)reader.ReadInt();
            if (this.accountId < 0U)
            {
                throw new Exception("Forbidden value (" + (object)this.accountId + ") on element of BasicWhoIsMessage.accountId.");
            }
            this.playerName = reader.ReadUTF();
            this.playerId   = (double)reader.ReadVarUhLong();
            if (this.playerId < 0.0 || this.playerId > 9.00719925474099E+15)
            {
                throw new Exception("Forbidden value (" + (object)this.playerId + ") on element of BasicWhoIsMessage.playerId.");
            }
            this.areaId         = (int)reader.ReadShort();
            this.serverId       = (int)reader.ReadShort();
            this.originServerId = (int)reader.ReadShort();
            uint num2 = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num2; ++index)
            {
                AbstractSocialGroupInfos instance = ProtocolTypeManager.GetInstance <AbstractSocialGroupInfos>((uint)reader.ReadUShort());
                instance.Deserialize(reader);
                this.socialGroups.Add(instance);
            }
            this.playerState = (uint)reader.ReadByte();
            if (this.playerState < 0U)
            {
                throw new Exception("Forbidden value (" + (object)this.playerState + ") on element of BasicWhoIsMessage.playerState.");
            }
        }