public void Deserialize(IDataReader reader) { var limit = reader.ReadUShort(); effects = new Types.FightDispellableEffectExtendedInformations[limit]; for (int i = 0; i < limit; i++) { effects[i] = new Types.FightDispellableEffectExtendedInformations(); effects[i].Deserialize(reader); } limit = reader.ReadUShort(); marks = new Types.GameActionMark[limit]; for (int i = 0; i < limit; i++) { marks[i] = new Types.GameActionMark(); marks[i].Deserialize(reader); } gameTurn = reader.ReadVarUhShort(); if (gameTurn < 0) { throw new System.Exception("Forbidden value on gameTurn = " + gameTurn + ", it doesn't respect the following condition : gameTurn < 0"); } fightStart = reader.ReadInt(); if (fightStart < 0) { throw new System.Exception("Forbidden value on fightStart = " + fightStart + ", it doesn't respect the following condition : fightStart < 0"); } limit = reader.ReadUShort(); idols = new Types.Idol[limit]; for (int i = 0; i < limit; i++) { idols[i] = new Types.Idol(); idols[i].Deserialize(reader); } }
public override void Deserialize(IDataReader reader) { var limit = (ushort)reader.ReadUShort(); effects = new Types.FightDispellableEffectExtendedInformations[limit]; for (int i = 0; i < limit; i++) { effects[i] = new Types.FightDispellableEffectExtendedInformations(); effects[i].Deserialize(reader); } limit = (ushort)reader.ReadUShort(); marks = new Types.GameActionMark[limit]; for (int i = 0; i < limit; i++) { marks[i] = new Types.GameActionMark(); marks[i].Deserialize(reader); } gameTurn = reader.ReadVarUhShort(); fightStart = reader.ReadInt(); limit = (ushort)reader.ReadUShort(); idols = new Types.Idol[limit]; for (int i = 0; i < limit; i++) { idols[i] = new Types.Idol(); idols[i].Deserialize(reader); } limit = (ushort)reader.ReadUShort(); fxTriggerCounts = new Types.GameFightEffectTriggerCount[limit]; for (int i = 0; i < limit; i++) { fxTriggerCounts[i] = new Types.GameFightEffectTriggerCount(); fxTriggerCounts[i].Deserialize(reader); } }
public void Deserialize(IDataReader reader) { var limit = reader.ReadUShort(); idols = new Types.Idol[limit]; for (int i = 0; i < limit; i++) { idols[i] = new Types.Idol(); idols[i].Deserialize(reader); } }
public override void Deserialize(ICustomDataInput reader) { var limit = reader.ReadUShort(); idols = new Types.Idol[limit]; for (int i = 0; i < limit; i++) { idols[i] = new Types.Idol(); idols[i].Deserialize(reader); } }
public override void Deserialize(IDataReader reader) { var limit = reader.ReadShort(); var idols_ = new Types.Idol[limit]; for (int i = 0; i < limit; i++) { idols_[i] = new Types.Idol(); idols_[i].Deserialize(reader); } idols = idols_; }
public override void Deserialize(IDataReader reader) { idolSource = reader.ReadSByte(); if (idolSource < 0) { throw new Exception("Forbidden value on idolSource = " + idolSource + ", it doesn't respect the following condition : idolSource < 0"); } var limit = reader.ReadUShort(); var idols_ = new Types.Idol[limit]; for (int i = 0; i < limit; i++) { idols_[i] = Types.ProtocolTypeManager.GetInstance <Types.Idol>(reader.ReadShort()); idols_[i].Deserialize(reader); } idols = idols_; }