示例#1
0
        List <IEnemyViewModel> IFactory <SimpleEnemyConfiguration, List <IEnemyViewModel> > .Create(SimpleEnemyConfiguration obj)
        {
            List <IEnemyViewModel> enemies = new List <IEnemyViewModel>();

            for (int i = 0; i < obj.Quantity; i++)
            {
                enemies.Add(_enemyFactory.Create(obj));
            }

            return(enemies);
        }
示例#2
0
 public IEnemyViewModel Create(SimpleEnemyConfiguration obj)
 {
     return(_enemyFactory.Create(obj));
 }