public PrismGeolocalizedInformation(ushort subAreaId, uint allianceId, short worldX, short worldY, int mapId, Types.PrismInformation prism)
     : base(subAreaId, allianceId)
 {
     this.worldX = worldX;
     this.worldY = worldY;
     this.mapId  = mapId;
     this.prism  = prism;
 }
 public PrismGeolocalizedInformation(short subAreaId, int allianceId, short worldX, short worldY, int mapId, Types.PrismInformation prism)
     : base(subAreaId, allianceId)
 {
     this.worldX = worldX;
     this.worldY = worldY;
     this.mapId = mapId;
     this.prism = prism;
 }
 public override void Deserialize(IReader reader)
 {
     base.Deserialize(reader);
     worldX = reader.ReadShort();
     worldY = reader.ReadShort();
     mapId  = reader.ReadInt();
     prism  = ProtocolTypeManager.GetInstance <Types.PrismInformation>(reader.ReadUShort());
     prism.Deserialize(reader);
 }
 public override void Deserialize(BigEndianReader 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<Types.PrismInformation>(reader.ReadShort());
     prism.Deserialize(reader);
 }
Example #5
0
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     worldX = reader.ReadShort();
     if (worldX < -255 || worldX > 255)
     {
         throw new System.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 System.Exception("Forbidden value on worldY = " + worldY + ", it doesn't respect the following condition : worldY < -255 || worldY > 255");
     }
     mapId = reader.ReadInt();
     prism = ProtocolTypeManager.GetInstance <Types.PrismInformation>(reader.ReadShort());
     prism.Deserialize(reader);
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     prism = Types.ProtocolTypeManager.GetInstance <Types.PrismInformation>(reader.ReadShort());
     prism.Deserialize(reader);
 }
 public GameRolePlayPrismInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, Types.PrismInformation prism)
     : base(contextualId, look, disposition)
 {
     this.prism = prism;
 }
 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     prism = Types.ProtocolTypeManager.GetInstance<Types.PrismInformation>(reader.ReadShort());
     prism.Deserialize(reader);
 }
 public GameRolePlayPrismInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, Types.PrismInformation prism)
     : base(contextualId, look, disposition)
 {
     this.prism = prism;
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     prism = Types.ProtocolTypeManager.GetInstance<Types.PrismInformation>(reader.ReadShort());
     prism.Deserialize(reader);
 }
 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     prism = Types.ProtocolTypeManager.GetInstance <Types.PrismInformation>(reader.ReadShort());
     prism.Deserialize(reader);
 }