Пример #1
0
        public UnitFactory()
        {
            JsonDataReader <UnitData> dataReader = new JsonDataReader <UnitData>();

            _infantryFactory = new InfantryFactory(dataReader);
            _magFactory      = new MagFactory(dataReader);
        }
Пример #2
0
 public MagFactory(JsonDataReader <UnitData> dataReader)
 {
     _reader = dataReader;
 }
Пример #3
0
 public InfantryFactory(JsonDataReader <UnitData> dataReader)
 {
     _reader = dataReader;
 }