public virtual void Deserialize(IDataReader reader)
 {
     uniqueId   = reader.ReadInt();
     firtNameId = reader.ReadShort();
     if (firtNameId < 0)
     {
         throw new Exception("Forbidden value on firtNameId = " + firtNameId + ", it doesn't respect the following condition : firtNameId < 0");
     }
     lastNameId = reader.ReadShort();
     if (lastNameId < 0)
     {
         throw new Exception("Forbidden value on lastNameId = " + lastNameId + ", it doesn't respect the following condition : lastNameId < 0");
     }
     additonalInformation = new AdditionalTaxCollectorInformations();
     additonalInformation.Deserialize(reader);
     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");
     }
     subAreaId = reader.ReadShort();
     if (subAreaId < 0)
     {
         throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
     }
     state = reader.ReadSByte();
     look  = new EntityLook();
     look.Deserialize(reader);
 }
Beispiel #2
0
 public virtual void Deserialize(IDataReader reader)
 {
     contextualId = reader.ReadInt();
     look         = new Types.EntityLook();
     look.Deserialize(reader);
     disposition = (EntityDispositionInformations)ProtocolTypeManager.GetInstance(reader.ReadUShort());
     disposition.Deserialize(reader);
 }
 public virtual void Deserialize(IDataReader reader)
 {
     creatureGenericId = reader.ReadInt();
     level             = reader.ReadShort();
     if (level < 0)
     {
         throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : level < 0");
     }
     look = new EntityLook();
     look.Deserialize(reader);
 }
Beispiel #4
0
 public virtual void Deserialize(IDataReader reader)
 {
     bindingPointCategory = reader.ReadSByte();
     if (bindingPointCategory < 0)
     {
         throw new Exception("Forbidden value on bindingPointCategory = " + bindingPointCategory + ", it doesn't respect the following condition : bindingPointCategory < 0");
     }
     bindingPointIndex = reader.ReadSByte();
     if (bindingPointIndex < 0)
     {
         throw new Exception("Forbidden value on bindingPointIndex = " + bindingPointIndex + ", it doesn't respect the following condition : bindingPointIndex < 0");
     }
     subEntityLook = new EntityLook();
     subEntityLook.Deserialize(reader);
 }
Beispiel #5
0
 public virtual void Deserialize(IDataReader reader)
 {
     spouseId = reader.ReadInt();
     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 EntityLook();
     spouseEntityLook.Deserialize(reader);
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     entityLook = new EntityLook();
     entityLook.Deserialize(reader);
 }