Exemplo n.º 1
0
 public PrismGeolocalizedInformation(short subAreaId, int allianceId, short worldX, short worldY, int mapId, PrismInformation prism)
     : base(subAreaId, allianceId)
 {
     this.worldX = worldX;
     this.worldY = worldY;
     this.mapId  = mapId;
     this.prism  = prism;
 }
Exemplo n.º 2
0
 public override void Deserialize(IDataReader reader)
 {
     base.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");
     }
     mapId = reader.ReadInt();
     prism = Types.ProtocolTypeManager.GetInstance <PrismInformation>(reader.ReadShort());
     prism.Deserialize(reader);
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     prism = Types.ProtocolTypeManager.GetInstance <PrismInformation>(reader.ReadShort());
     prism.Deserialize(reader);
 }
 public GameRolePlayPrismInformations(double contextualId, Types.EntityLook look, EntityDispositionInformations disposition, PrismInformation prism)
     : base(contextualId, look, disposition)
 {
     this.prism = prism;
 }