public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     PlayerId     = reader.ReadVarUhLong();
     PlayerName   = reader.ReadUTF();
     MoodSmileyId = reader.ReadVarUhShort();
     Status       = ProtocolTypeManager.GetInstance(reader.ReadUShort());
     Status.Deserialize(reader);
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     Name   = reader.ReadUTF();
     Status = new PlayerStatus();
     Status.Deserialize(reader);
     LeagueId         = reader.ReadVarShort();
     LadderPosition   = reader.ReadInt();
     HiddenInPrefight = reader.ReadBoolean();
 }
 public override void Deserialize(IDataReader reader)
 {
     PlayerId      = reader.ReadVarUhLong();
     PlayerName    = reader.ReadUTF();
     AlignmentSide = reader.ReadSByte();
     Breed         = reader.ReadSByte();
     Sex           = reader.ReadBoolean();
     IsInWorkshop  = reader.ReadBoolean();
     WorldX        = reader.ReadShort();
     WorldY        = reader.ReadShort();
     MapId         = reader.ReadDouble();
     SubAreaId     = reader.ReadVarUhShort();
     Status        = ProtocolTypeManager.GetInstance(reader.ReadUShort());
     Status.Deserialize(reader);
 }
Esempio n. 4
0
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            var flag = reader.ReadByte();

            Sex            = BooleanByteWrapper.GetFlag(flag, 0);
            HavenBagShared = BooleanByteWrapper.GetFlag(flag, 1);
            PlayerId       = reader.ReadVarUhLong();
            PlayerName     = reader.ReadUTF();
            Level          = reader.ReadVarUhShort();
            AlignmentSide  = reader.ReadSByte();
            Breed          = reader.ReadSByte();
            GuildInfo      = new GuildInformations();
            GuildInfo.Deserialize(reader);
            MoodSmileyId = reader.ReadVarUhShort();
            Status       = ProtocolTypeManager.GetInstance(reader.ReadUShort());
            Status.Deserialize(reader);
        }
Esempio n. 5
0
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            var flag = reader.ReadByte();

            Sex                      = BooleanByteWrapper.GetFlag(flag, 0);
            HavenBagShared           = BooleanByteWrapper.GetFlag(flag, 1);
            Breed                    = reader.ReadSByte();
            Rank                     = reader.ReadVarUhShort();
            GivenExperience          = reader.ReadVarUhLong();
            ExperienceGivenPercent   = reader.ReadSByte();
            Rights                   = reader.ReadVarUhInt();
            Connected                = reader.ReadSByte();
            AlignmentSide            = reader.ReadSByte();
            HoursSinceLastConnection = reader.ReadUnsignedShort();
            MoodSmileyId             = reader.ReadVarUhShort();
            AccountId                = reader.ReadInt();
            AchievementPoints        = reader.ReadInt();
            Status                   = ProtocolTypeManager.GetInstance(reader.ReadUShort());
            Status.Deserialize(reader);
        }