public virtual void Deserialize(BigEndianReader reader) { markAuthorId = reader.ReadInt(); markTeamId = reader.ReadSByte(); if (markTeamId < 0) { throw new Exception("Forbidden value on markTeamId = " + markTeamId + ", it doesn't respect the following condition : markTeamId < 0"); } markSpellId = reader.ReadInt(); if (markSpellId < 0) { throw new Exception("Forbidden value on markSpellId = " + markSpellId + ", it doesn't respect the following condition : markSpellId < 0"); } markSpellLevel = reader.ReadSByte(); if (markSpellLevel < 1 || markSpellLevel > 6) { throw new Exception("Forbidden value on markSpellLevel = " + markSpellLevel + ", it doesn't respect the following condition : markSpellLevel < 1 || markSpellLevel > 6"); } markId = reader.ReadShort(); markType = reader.ReadSByte(); markimpactCell = reader.ReadShort(); if (markimpactCell < -1 || markimpactCell > 559) { throw new Exception("Forbidden value on markimpactCell = " + markimpactCell + ", it doesn't respect the following condition : markimpactCell < -1 || markimpactCell > 559"); } var limit = reader.ReadUShort(); cells = new Types.GameActionMarkedCell[limit]; for (int i = 0; i < limit; i++) { cells[i] = new Types.GameActionMarkedCell(); cells[i].Deserialize(reader); } active = reader.ReadBoolean(); }
public virtual void Deserialize(BigEndianReader reader) { markAuthorId = reader.ReadInt(); markTeamId = reader.ReadSByte(); if (markTeamId < 0) throw new Exception("Forbidden value on markTeamId = " + markTeamId + ", it doesn't respect the following condition : markTeamId < 0"); markSpellId = reader.ReadInt(); if (markSpellId < 0) throw new Exception("Forbidden value on markSpellId = " + markSpellId + ", it doesn't respect the following condition : markSpellId < 0"); markSpellLevel = reader.ReadSByte(); if (markSpellLevel < 1 || markSpellLevel > 6) throw new Exception("Forbidden value on markSpellLevel = " + markSpellLevel + ", it doesn't respect the following condition : markSpellLevel < 1 || markSpellLevel > 6"); markId = reader.ReadShort(); markType = reader.ReadSByte(); markimpactCell = reader.ReadShort(); if (markimpactCell < -1 || markimpactCell > 559) throw new Exception("Forbidden value on markimpactCell = " + markimpactCell + ", it doesn't respect the following condition : markimpactCell < -1 || markimpactCell > 559"); var limit = reader.ReadUShort(); cells = new Types.GameActionMarkedCell[limit]; for (int i = 0; i < limit; i++) { cells[i] = new Types.GameActionMarkedCell(); cells[i].Deserialize(reader); } active = reader.ReadBoolean(); }
public virtual void Deserialize(IDataReader reader) { markAuthorId = reader.ReadInt(); markSpellId = reader.ReadInt(); if (markSpellId < 0) throw new Exception("Forbidden value on markSpellId = " + markSpellId + ", it doesn't respect the following condition : markSpellId < 0"); markId = reader.ReadShort(); markType = reader.ReadSByte(); var limit = reader.ReadUShort(); cells = new Types.GameActionMarkedCell[limit]; for (int i = 0; i < limit; i++) { cells[i] = new Types.GameActionMarkedCell(); cells[i].Deserialize(reader); } }
public virtual void Deserialize(IDataReader reader) { markAuthorId = reader.ReadDouble(); markTeamId = reader.ReadSbyte(); markSpellId = reader.ReadInt(); markSpellLevel = reader.ReadShort(); markId = reader.ReadShort(); markType = reader.ReadSbyte(); markimpactCell = reader.ReadShort(); var limit = (ushort)reader.ReadUShort(); cells = new Types.GameActionMarkedCell[limit]; for (int i = 0; i < limit; i++) { cells[i] = new Types.GameActionMarkedCell(); cells[i].Deserialize(reader); } active = reader.ReadBoolean(); }
public virtual void Deserialize(IDataReader reader) { markAuthorId = reader.ReadInt(); markSpellId = reader.ReadInt(); if (markSpellId < 0) { throw new Exception("Forbidden value on markSpellId = " + markSpellId + ", it doesn't respect the following condition : markSpellId < 0"); } markId = reader.ReadShort(); markType = reader.ReadSByte(); var limit = reader.ReadUShort(); cells = new Types.GameActionMarkedCell[limit]; for (int i = 0; i < limit; i++) { cells[i] = new Types.GameActionMarkedCell(); cells[i].Deserialize(reader); } }
public virtual void Deserialize(IDataReader reader) { markAuthorId = reader.ReadDouble(); if (markAuthorId < -9007199254740990 || markAuthorId > 9007199254740990) { throw new Exception("Forbidden value on markAuthorId = " + markAuthorId + ", it doesn't respect the following condition : markAuthorId < -9007199254740990 || markAuthorId > 9007199254740990"); } markTeamId = reader.ReadSByte(); markSpellId = reader.ReadInt(); if (markSpellId < 0) { throw new Exception("Forbidden value on markSpellId = " + markSpellId + ", it doesn't respect the following condition : markSpellId < 0"); } markSpellLevel = reader.ReadShort(); if (markSpellLevel < 1 || markSpellLevel > 200) { throw new Exception("Forbidden value on markSpellLevel = " + markSpellLevel + ", it doesn't respect the following condition : markSpellLevel < 1 || markSpellLevel > 200"); } markId = reader.ReadShort(); markType = reader.ReadSByte(); markimpactCell = reader.ReadShort(); if (markimpactCell < -1 || markimpactCell > 559) { throw new Exception("Forbidden value on markimpactCell = " + markimpactCell + ", it doesn't respect the following condition : markimpactCell < -1 || markimpactCell > 559"); } var limit = reader.ReadShort(); var cells_ = new Types.GameActionMarkedCell[limit]; for (int i = 0; i < limit; i++) { cells_[i] = new Types.GameActionMarkedCell(); cells_[i].Deserialize(reader); } cells = cells_; active = reader.ReadBoolean(); }