Пример #1
0
 public TechTree(IIntelManager intelManager, IUnitTypeRepository unitTypeRepository, IUpgradeRepository upgradeRepository, Essence essence)
 {
     this.intelManager       = intelManager;
     this.unitTypeRepository = unitTypeRepository;
     this.upgradeRepository  = upgradeRepository;
     Initialize(essence);
 }
Пример #2
0
        public UnitTypeService()
        {
            var objDatabaseFactory = new DatabaseFactory();

            repository = new UnitTypeRepository(objDatabaseFactory);
            unitOfWork = new UnitOfWork(objDatabaseFactory);
        }
Пример #3
0
 /// <summary>
 /// Module responsible for sorting information from the StarCraft II client and notifying listeners.
 /// </summary>
 /// <param name="gameClient"></param>
 public IntelManager(IRawManager rawManager, ILogger logger, IUnitTypeRepository unitTypeRepository, IUpgradeRepository upgradeRepository, IGameMap map)
 {
     this.unitTypeRepository = unitTypeRepository;
     this.upgradeRepository  = upgradeRepository;
     this.rawManager         = rawManager;
     this.GameMap            = (GameMap)map;
     log = logger;
 }
Пример #4
0
 public UnitTypeController(IUnitTypeRepository repo,
                           IMapper mapper, UserManager <User> userManager, IEventLogRepository eventLogRepo)
 {
     _mapper       = mapper;
     _repo         = repo;
     _userManager  = userManager;
     _eventLogRepo = eventLogRepo;
 }
Пример #5
0
 public ProductionManager(IRawManager rawManager, IIntelManager intelManager, IUnitTypeRepository unitTypeRepository, ITechTree techTree, IUpgradeRepository upgradeRepository, ILogger logger)
 {
     this.rawManager         = rawManager;
     this.intelManager       = intelManager;
     this.unitTypeRepository = unitTypeRepository;
     this.techTree           = techTree;
     this.log = logger;
     this.upgradeRepository = upgradeRepository;
 }
Пример #6
0
 public DailyJobServiceImpl(IDailyJobRepository dailyJobRepository, IDailyJobDriversRepository dailyJobDriversRepository, ICommentsRepository commentsRepository,
                            ISiteRepository siteRepository, IUnitTypeRepository unitTypeRepository)
 {
     this.DailyJobRepository        = dailyJobRepository;
     this.DailyJobDriversRepository = dailyJobDriversRepository;
     this.CommentsRepository        = commentsRepository;
     this.SiteRepository            = siteRepository;
     this.UnitTypeRepository        = unitTypeRepository;
 }
Пример #7
0
 /// IModules can take any number of these in the constructor and in any order.
 /// It is all handled using Dependency Injection.
 public FullModule(ILogger log, IIntelManager intelManager, ICombatManager combatManager,
                   IProductionManager productionManager, IRawManager rawManager, IAbilityRepository abilityRepository,
                   IUnitTypeRepository unitTypeRepository, IUpgradeRepository upgradeRepository, IBuffRepository buffRepository,
                   ISquadRepository squadRepository, IGameMap gameMap, ITechTree techTree, GameSettings gameSettings)
 {
     this.log                = log;
     this.intelManager       = intelManager;
     this.combatManager      = combatManager;
     this.productionManager  = productionManager;
     this.rawManager         = rawManager;
     this.abilityRepository  = abilityRepository;
     this.unitTypeRepository = unitTypeRepository;
     this.upgradeRepository  = upgradeRepository;
     this.buffRepository     = buffRepository;
     this.squadRepository    = squadRepository;
     this.gameMap            = gameMap;
     this.techTree           = techTree;
 }
Пример #8
0
 public GenerateFile(IUnitTypeRepository unitRepo)
 {
     _unitRepo = unitRepo;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UnitTypeController"/> class.
 /// </summary>
 /// <param name="unitTypeRepository">The unit type repository.</param>
 public UnitTypeController(IUnitTypeRepository unitTypeRepository)
 {
     _unitTypeRepository = unitTypeRepository;
 }
Пример #10
0
 public UnitTypeService(IUnitTypeRepository unitTypeRepository)
 {
     _unitTypeRepository = unitTypeRepository;
 }
Пример #11
0
 public GameMap(IAbilityRepository abilityRepository, IUnitTypeRepository unitTypeRepository, IRawManager rawManager)
 {
     this.abilityRepository  = abilityRepository;
     this.unitTypeRepository = unitTypeRepository;
     this.rawManager         = rawManager;
 }
Пример #12
0
 public UnitTypeService(IUnitTypeRepository iRepository)
 {
     this.repository = iRepository;
 }
Пример #13
0
 public UnitTypeService()
 {
     this.repository = new UnitTypeRepository();
 }
 public UnitTypeService(IUnitTypeRepository unitTypeRepository, IUnitOfWork unitOfWork)
 {
     this._unitTypeRepository = unitTypeRepository;
     this._unitOfWork = unitOfWork;
 }
Пример #15
0
 public UnitTypeServiceImpl(IUnitTypeRepository unitTypeRepository)
 {
     this.UnitTypeRepository = unitTypeRepository;
 }