Beispiel #1
0
        public override void ParseConfig(string xml)
        {
            _configs = XmlConfigParser <WeaponConfigs> .Load(xml);

            foreach (var item in _configs.Weapons)
            {
                _configCache[item.Id] = new WeaponAllConfigs(item);
            }
        }
 public WeaponLogicFactory(WeaponConfigs configs, IWeaponLogicComponentsFactory factory)
 {
     _componentsFactory = factory;
     _configs           = configs;
 }