public virtual void Deserialize(IReader reader) { actionId = reader.ReadVarUhShort(); sourceId = reader.ReadDouble(); effect = ProtocolTypeManager.GetInstance <Types.AbstractFightDispellableEffect>(reader.ReadUShort()); effect.Deserialize(reader); }
public virtual void Deserialize(IDataReader reader) { actionId = reader.ReadShort(); if (actionId < 0) throw new Exception("Forbidden value on actionId = " + actionId + ", it doesn't respect the following condition : actionId < 0"); sourceId = reader.ReadInt(); effect = Types.ProtocolTypeManager.GetInstance<Types.AbstractFightDispellableEffect>(reader.ReadShort()); effect.Deserialize(reader); }
public virtual void Deserialize(BigEndianReader reader) { actionId = reader.ReadShort(); if (actionId < 0) { throw new Exception("Forbidden value on actionId = " + actionId + ", it doesn't respect the following condition : actionId < 0"); } sourceId = reader.ReadInt(); effect = Types.ProtocolTypeManager.GetInstance <Types.AbstractFightDispellableEffect>(reader.ReadShort()); effect.Deserialize(reader); }
public virtual void Deserialize(ICustomDataInput reader) { actionId = reader.ReadVarUhShort(); 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<Types.AbstractFightDispellableEffect>(reader.ReadShort()); effect.Deserialize(reader); }
public virtual void Deserialize(IDataReader reader) { actionId = reader.ReadVarUhShort(); if (actionId < 0) { throw new System.Exception("Forbidden value on actionId = " + actionId + ", it doesn't respect the following condition : actionId < 0"); } sourceId = reader.ReadDouble(); if (sourceId < -9.007199254740992E15 || sourceId > 9.007199254740992E15) { throw new System.Exception("Forbidden value on sourceId = " + sourceId + ", it doesn't respect the following condition : sourceId < -9.007199254740992E15 || sourceId > 9.007199254740992E15"); } effect = ProtocolTypeManager.GetInstance <Types.AbstractFightDispellableEffect>(reader.ReadShort()); effect.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); effect = Types.ProtocolTypeManager.GetInstance <Types.AbstractFightDispellableEffect>(reader.ReadShort()); effect.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); effect = Types.ProtocolTypeManager.GetInstance<Types.AbstractFightDispellableEffect>(reader.ReadShort()); effect.Deserialize(reader); }