Example #1
0
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     playerId = reader.ReadVarUhLong();
     if (playerId < 0 || playerId > 9007199254740990)
     {
         throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0 || playerId > 9007199254740990");
     }
     playerName = reader.ReadUTF();
     level      = reader.ReadByte();
     if (level < 0 || level > 200)
     {
         throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : level < 0 || level > 200");
     }
     alignmentSide = reader.ReadSByte();
     breed         = reader.ReadSByte();
     if (breed < (byte)Enums.PlayableBreedEnum.Feca || breed > (byte)Enums.PlayableBreedEnum.Huppermage)
     {
         throw new Exception("Forbidden value on breed = " + breed + ", it doesn't respect the following condition : breed < (byte)Enums.PlayableBreedEnum.Feca || breed > (byte)Enums.PlayableBreedEnum.Huppermage");
     }
     sex       = reader.ReadBoolean();
     guildInfo = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
     moodSmileyId = reader.ReadVarUhShort();
     if (moodSmileyId < 0)
     {
         throw new Exception("Forbidden value on moodSmileyId = " + moodSmileyId + ", it doesn't respect the following condition : moodSmileyId < 0");
     }
     status = Types.ProtocolTypeManager.GetInstance <Types.PlayerStatus>(reader.ReadShort());
     status.Deserialize(reader);
 }
 public override void Deserialize(IDataReader reader)
 {
     recruterId = reader.ReadVarUhLong();
     recruterName = reader.ReadUTF();
     guildInfo = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
 }
 public virtual void Deserialize(IDataReader reader)
 {
     spouseAccountId = reader.ReadInt();
     if (spouseAccountId < 0)
     {
         throw new System.Exception("Forbidden value on spouseAccountId = " + spouseAccountId + ", it doesn't respect the following condition : spouseAccountId < 0");
     }
     spouseId = reader.ReadVarUhLong();
     if (spouseId < 0 || spouseId > 9.007199254740992E15)
     {
         throw new System.Exception("Forbidden value on spouseId = " + spouseId + ", it doesn't respect the following condition : spouseId < 0 || spouseId > 9.007199254740992E15");
     }
     spouseName  = reader.ReadUTF();
     spouseLevel = reader.ReadByte();
     if (spouseLevel < 1 || spouseLevel > 200)
     {
         throw new System.Exception("Forbidden value on spouseLevel = " + spouseLevel + ", it doesn't respect the following condition : spouseLevel < 1 || spouseLevel > 200");
     }
     breed            = reader.ReadSByte();
     sex              = reader.ReadSByte();
     spouseEntityLook = new Types.EntityLook();
     spouseEntityLook.Deserialize(reader);
     guildInfo = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
     alignmentSide = reader.ReadSByte();
 }
Example #4
0
 public virtual void Deserialize(ICustomDataInput reader)
 {
     spouseAccountId = reader.ReadInt();
     if (spouseAccountId < 0)
     {
         throw new Exception("Forbidden value on spouseAccountId = " + spouseAccountId + ", it doesn't respect the following condition : spouseAccountId < 0");
     }
     spouseId = reader.ReadVarUhInt();
     if (spouseId < 0)
     {
         throw new Exception("Forbidden value on spouseId = " + spouseId + ", it doesn't respect the following condition : spouseId < 0");
     }
     spouseName  = reader.ReadUTF();
     spouseLevel = reader.ReadByte();
     if ((spouseLevel < 1) || (spouseLevel > 200))
     {
         throw new Exception("Forbidden value on spouseLevel = " + spouseLevel + ", it doesn't respect the following condition : (spouseLevel < 1) || (spouseLevel > 200)");
     }
     breed            = reader.ReadSByte();
     sex              = reader.ReadSByte();
     spouseEntityLook = new Types.EntityLook();
     spouseEntityLook.Deserialize(reader);
     guildInfo = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
     alignmentSide = reader.ReadSByte();
 }
 public override void Deserialize(BigEndianReader reader)
 {
     firstNameId = reader.ReadVarShort();
     if (firstNameId < 0)
     {
         throw new Exception("Forbidden value on firstNameId = " + firstNameId + ", it doesn't respect the following condition : firstNameId < 0");
     }
     lastNameId = reader.ReadVarShort();
     if (lastNameId < 0)
     {
         throw new Exception("Forbidden value on lastNameId = " + lastNameId + ", it doesn't respect the following condition : lastNameId < 0");
     }
     worldX = reader.ReadShort();
     if (worldX < -255 || worldX > 255)
     {
         throw new Exception("Forbidden value on worldX = " + worldX + ", it doesn't respect the following condition : worldX < -255 || worldX > 255");
     }
     worldY = reader.ReadShort();
     if (worldY < -255 || worldY > 255)
     {
         throw new Exception("Forbidden value on worldY = " + worldY + ", it doesn't respect the following condition : worldY < -255 || worldY > 255");
     }
     mapId     = reader.ReadInt();
     subAreaId = reader.ReadVarShort();
     if (subAreaId < 0)
     {
         throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
     }
     guild = new Types.BasicGuildInformations();
     guild.Deserialize(reader);
 }
 public override void Deserialize(IDataReader reader)
 {
     deadOrAlive = reader.ReadBoolean();
     basicInfos  = new Types.TaxCollectorBasicInformations();
     basicInfos.Deserialize(reader);
     guild = new Types.BasicGuildInformations();
     guild.Deserialize(reader);
 }
Example #7
0
 public override void Deserialize(IReader reader)
 {
     base.Deserialize(reader);
     level     = reader.ReadByte();
     guildInfo = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
     experienceForGuild = reader.ReadInt();
 }
 public override void Deserialize(BigEndianReader reader)
 {
     deadOrAlive = reader.ReadBoolean();
     basicInfos = new Types.TaxCollectorBasicInformations();
     basicInfos.Deserialize(reader);
     guild = new Types.BasicGuildInformations();
     guild.Deserialize(reader);
 }
public void Deserialize(IDataReader reader)
{

guildInfo = new Types.BasicGuildInformations();
            guildInfo.Deserialize(reader);
            

}
 public override void Deserialize(IDataReader reader)
 {
     recruterId = reader.ReadInt();
     if (recruterId < 0)
         throw new Exception("Forbidden value on recruterId = " + recruterId + ", it doesn't respect the following condition : recruterId < 0");
     recruterName = reader.ReadUTF();
     guildInfo = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
 }
 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     level = reader.ReadByte();
     if (level < 1 || level > 200)
         throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : level < 1 || level > 200");
     guildInfo = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
     experienceForGuild = reader.ReadInt();
 }
Example #12
0
 public void Deserialize(IDataReader reader)
 {
     recruterId = reader.ReadVarUhLong();
     if (recruterId < 0 || recruterId > 9.007199254740992E15)
     {
         throw new System.Exception("Forbidden value on recruterId = " + recruterId + ", it doesn't respect the following condition : recruterId < 0 || recruterId > 9.007199254740992E15");
     }
     recruterName = reader.ReadUTF();
     guildInfo    = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
 }
Example #13
0
 public override void Deserialize(IDataReader reader)
 {
     firstNameId = reader.ReadVarUhShort();
     lastNameId  = reader.ReadVarUhShort();
     worldX      = reader.ReadShort();
     worldY      = reader.ReadShort();
     mapId       = reader.ReadDouble();
     subAreaId   = reader.ReadVarUhShort();
     guild       = new Types.BasicGuildInformations();
     guild.Deserialize(reader);
 }
Example #14
0
 public override void Deserialize(IDataReader reader)
 {
     recruterId = reader.ReadInt();
     if (recruterId < 0)
     {
         throw new Exception("Forbidden value on recruterId = " + recruterId + ", it doesn't respect the following condition : recruterId < 0");
     }
     recruterName = reader.ReadUTF();
     guildInfo    = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
 }
Example #15
0
 public override void Deserialize(ICustomDataInput reader)
 {
     recruterId = reader.ReadVarUhLong();
     if (recruterId < 0 || recruterId > 9007199254740990)
     {
         throw new Exception("Forbidden value on recruterId = " + recruterId + ", it doesn't respect the following condition : recruterId < 0 || recruterId > 9007199254740990");
     }
     recruterName = reader.ReadUTF();
     guildInfo    = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     level = reader.ReadByte();
     if (level < 1 || level > 200)
     {
         throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : level < 1 || level > 200");
     }
     guildInfo = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
     experienceForGuild = reader.ReadInt();
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     playerName = reader.ReadUTF();
     level = reader.ReadShort();
     if (level < 0 || level > 200)
         throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : level < 0 || level > 200");
     alignmentSide = reader.ReadSByte();
     breed = reader.ReadSByte();
     if (breed < (byte)Enums.PlayableBreedEnum.Feca || breed > (byte)Enums.PlayableBreedEnum.Steamer)
         throw new Exception("Forbidden value on breed = " + breed + ", it doesn't respect the following condition : breed < (byte)Enums.PlayableBreedEnum.Feca || breed > (byte)Enums.PlayableBreedEnum.Steamer");
     sex = reader.ReadBoolean();
     guildInfo = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
     moodSmileyId = reader.ReadSByte();
 }
 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     playerId = reader.ReadVarInt();
     if (playerId < 0)
         throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0");
     playerName = reader.ReadUTF();
     level = reader.ReadByte();
     if (level < 0 || level > 200)
         throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : level < 0 || level > 200");
     alignmentSide = reader.ReadSByte();
     breed = reader.ReadSByte();
     sex = reader.ReadBoolean();
     guildInfo = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
     moodSmileyId = reader.ReadSByte();
     status = Types.ProtocolTypeManager.GetInstance<Types.PlayerStatus>(reader.ReadShort());
     status.Deserialize(reader);
 }
 public virtual void Deserialize(BigEndianReader reader)
 {
     spouseAccountId = reader.ReadInt();
     if (spouseAccountId < 0)
         throw new Exception("Forbidden value on spouseAccountId = " + spouseAccountId + ", it doesn't respect the following condition : spouseAccountId < 0");
     spouseId = reader.ReadVarInt();
     if (spouseId < 0)
         throw new Exception("Forbidden value on spouseId = " + spouseId + ", it doesn't respect the following condition : spouseId < 0");
     spouseName = reader.ReadUTF();
     spouseLevel = reader.ReadByte();
     if (spouseLevel < 1 || spouseLevel > 200)
         throw new Exception("Forbidden value on spouseLevel = " + spouseLevel + ", it doesn't respect the following condition : spouseLevel < 1 || spouseLevel > 200");
     breed = reader.ReadSByte();
     sex = reader.ReadSByte();
     spouseEntityLook = new Types.EntityLook();
     spouseEntityLook.Deserialize(reader);
     guildInfo = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
     alignmentSide = reader.ReadSByte();
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     playerName = reader.ReadUTF();
     level      = reader.ReadShort();
     if (level < 0 || level > 200)
     {
         throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : level < 0 || level > 200");
     }
     alignmentSide = reader.ReadSByte();
     breed         = reader.ReadSByte();
     if (breed < (byte)Enums.PlayableBreedEnum.Feca || breed > (byte)Enums.PlayableBreedEnum.Steamer)
     {
         throw new Exception("Forbidden value on breed = " + breed + ", it doesn't respect the following condition : breed < (byte)Enums.PlayableBreedEnum.Feca || breed > (byte)Enums.PlayableBreedEnum.Steamer");
     }
     sex       = reader.ReadBoolean();
     guildInfo = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
     moodSmileyId = reader.ReadSByte();
 }
 public override void Deserialize(BigEndianReader reader)
 {
     firstNameId = reader.ReadVarShort();
     if (firstNameId < 0)
         throw new Exception("Forbidden value on firstNameId = " + firstNameId + ", it doesn't respect the following condition : firstNameId < 0");
     lastNameId = reader.ReadVarShort();
     if (lastNameId < 0)
         throw new Exception("Forbidden value on lastNameId = " + lastNameId + ", it doesn't respect the following condition : lastNameId < 0");
     worldX = reader.ReadShort();
     if (worldX < -255 || worldX > 255)
         throw new Exception("Forbidden value on worldX = " + worldX + ", it doesn't respect the following condition : worldX < -255 || worldX > 255");
     worldY = reader.ReadShort();
     if (worldY < -255 || worldY > 255)
         throw new Exception("Forbidden value on worldY = " + worldY + ", it doesn't respect the following condition : worldY < -255 || worldY > 255");
     mapId = reader.ReadInt();
     subAreaId = reader.ReadVarShort();
     if (subAreaId < 0)
         throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
     guild = new Types.BasicGuildInformations();
     guild.Deserialize(reader);
 }
 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     playerId = reader.ReadVarInt();
     if (playerId < 0)
     {
         throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0");
     }
     playerName = reader.ReadUTF();
     level      = reader.ReadByte();
     if (level < 0 || level > 200)
     {
         throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : level < 0 || level > 200");
     }
     alignmentSide = reader.ReadSByte();
     breed         = reader.ReadSByte();
     sex           = reader.ReadBoolean();
     guildInfo     = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
     moodSmileyId = reader.ReadSByte();
     status       = Types.ProtocolTypeManager.GetInstance <Types.PlayerStatus>(reader.ReadShort());
     status.Deserialize(reader);
 }
 public override void Deserialize(IDataReader reader)
 {
     guildInfo = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
 }
Example #24
0
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     guild = new Types.BasicGuildInformations();
     guild.Deserialize(reader);
 }
 public override void Deserialize(IReader reader)
 {
     guildInfo = new Types.BasicGuildInformations();
     guildInfo.Deserialize(reader);
 }
 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     guild = new Types.BasicGuildInformations();
     guild.Deserialize(reader);
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     guild = new Types.BasicGuildInformations();
     guild.Deserialize(reader);
 }
 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     guild = new Types.BasicGuildInformations();
     guild.Deserialize(reader);
 }