Beispiel #1
0
 public GameRolePlayPrismInformations(
     double contextualId,
     EntityDispositionInformations disposition,
     EntityLook look,
     PrismInformation prism)
     : base(contextualId, disposition, look)
 {
     this.prism = prism;
 }
 public PrismGeolocalizedInformation(
     uint subAreaId,
     uint allianceId,
     int worldX,
     int worldY,
     double mapId,
     PrismInformation prism)
     : base(subAreaId, allianceId)
 {
     this.worldX = worldX;
     this.worldY = worldY;
     this.mapId  = mapId;
     this.prism  = prism;
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     this.worldX = (int)reader.ReadShort();
     if (this.worldX < -255 || this.worldX > (int)byte.MaxValue)
     {
         throw new Exception("Forbidden value (" + (object)this.worldX + ") on element of PrismGeolocalizedInformation.worldX.");
     }
     this.worldY = (int)reader.ReadShort();
     if (this.worldY < -255 || this.worldY > (int)byte.MaxValue)
     {
         throw new Exception("Forbidden value (" + (object)this.worldY + ") on element of PrismGeolocalizedInformation.worldY.");
     }
     this.mapId = reader.ReadDouble();
     if (this.mapId < 0.0 || this.mapId > 9.00719925474099E+15)
     {
         throw new Exception("Forbidden value (" + (object)this.mapId + ") on element of PrismGeolocalizedInformation.mapId.");
     }
     this.prism = ProtocolTypeManager.GetInstance <PrismInformation>((uint)reader.ReadUShort());
     this.prism.Deserialize(reader);
 }
Beispiel #4
0
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     this.prism = ProtocolTypeManager.GetInstance <PrismInformation>((uint)reader.ReadUShort());
     this.prism.Deserialize(reader);
 }