示例#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;
 }