Пример #1
0
 internal Combat_Metrics(Combat_Metrics other)
 {
     Turn       = other.Turn;
     CombatType = other.CombatType;
     Attacker   = other.Attacker;
     Targets    = new List <Combatant_Metric>(other.Targets);
 }
Пример #2
0
        public static Combat_Metrics read(BinaryReader reader)
        {
            Combat_Metrics result = new Combat_Metrics();

            if (!Global.LOADED_VERSION.older_than(0, 4, 6, 9))
            {
                result.Turn = reader.ReadInt32();
            }
            result.CombatType = reader.ReadString();
            result.Attacker   = Combatant_Metric.read(reader);
            result.Targets.read(reader);
            return(result);
        }