Esempio n. 1
0
        public static Map_Unit_Data read(BinaryReader reader)
        {
            Map_Unit_Data unit_data = new Map_Unit_Data();

            unit_data.Units.read(reader);
            unit_data.Reinforcements.read(reader);
            return(unit_data);
        }
Esempio n. 2
0
 public Map_Unit_Data(Map_Unit_Data other)
 {
     Units = other.Units.ToDictionary(p => p.Key, p => new Data_Unit(
                                          p.Value.type, p.Value.identifier, p.Value.data));
     Reinforcements = other.Reinforcements
                      .Select(p => new Data_Unit(
                                  p.type, p.identifier, p.data))
                      .ToList();
 }