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 = reader.ReadUShort(); var effects_ = new Types.FightDispellableEffectExtendedInformations[limit]; for (int i = 0; i < limit; i++) { effects_[i] = ProtocolTypeManager.GetInstance <Types.FightDispellableEffectExtendedInformations>(reader.ReadShort()); effects_[i].Deserialize(reader); } effects = effects_; limit = reader.ReadUShort(); var marks_ = new Types.GameActionMark[limit]; for (int i = 0; i < limit; i++) { marks_[i] = new Types.GameActionMark(); marks_[i].Deserialize(reader); } marks = marks_; gameTurn = reader.ReadShort(); if (gameTurn < 0) { throw new Exception("Forbidden value on gameTurn = " + gameTurn + ", it doesn't respect the following condition : gameTurn < 0"); } }
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 override 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.ReadShort(); if (gameTurn < 0) throw new Exception("Forbidden value on gameTurn = " + gameTurn + ", it doesn't respect the following condition : gameTurn < 0"); }
public override void Deserialize(BigEndianReader 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.ReadShort(); if (gameTurn < 0) { throw new Exception("Forbidden value on gameTurn = " + gameTurn + ", it doesn't respect the following condition : gameTurn < 0"); } }
public void Deserialize(IDataReader reader) { base.Deserialize(reader); mark = new Types.GameActionMark(); mark.Deserialize(reader); }
public GameActionFightMarkCellsMessage(uint actionId, double sourceId, Types.GameActionMark mark) : base(actionId, sourceId) { this.mark = mark; }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); mark = new Types.GameActionMark(); mark.Deserialize(reader); }
public GameActionFightMarkCellsMessage(short actionId, int sourceId, Types.GameActionMark mark) : base(actionId, sourceId) { this.mark = mark; }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); mark = new Types.GameActionMark(); mark.Deserialize(reader); }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); mark = new Types.GameActionMark(); mark.Deserialize(reader); }