public virtual void Deserialize(IDataReader reader)
 {
     actionId = reader.ReadVarShort();
     if (actionId < 0)
     {
         throw new Exception("Forbidden value on actionId = " + actionId + ", it doesn't respect the following condition : actionId < 0");
     }
     sourceId = reader.ReadDouble();
     if (sourceId < -9007199254740990 || sourceId > 9007199254740990)
     {
         throw new Exception("Forbidden value on sourceId = " + sourceId + ", it doesn't respect the following condition : sourceId < -9007199254740990 || sourceId > 9007199254740990");
     }
     effect = Types.ProtocolTypeManager.GetInstance <AbstractFightDispellableEffect>(reader.ReadShort());
     effect.Deserialize(reader);
 }
 public FightDispellableEffectExtendedInformations(short actionId, double sourceId, AbstractFightDispellableEffect effect)
 {
     this.actionId = actionId;
     this.sourceId = sourceId;
     this.effect   = effect;
 }