コード例 #1
0
 /// <inheritdoc />
 public void Initialize()
 {
     // The Abathur framework utilize a IoC container to get an instance of all imodules referenced in the setup file
     abathur           = AbathurConfigurator.Configure(essence, gameSettings, setupSettings, log);
     abathur.IsHosting = isHost;
     abathur.Initialize();
 }
コード例 #2
0
ファイル: RandomDemo.cs プロジェクト: DanDyDunder/AbathurBot
 // Everything inheriting from IReplaceableModule is added to the IOC and can be dependency injected.
 public RandomDemo(IAbathur abathur, TerranDemo terranModule, ProtossDemo protossModule, ZergDemo zergModule)
 {
     _terranModule  = terranModule;
     _protossModule = protossModule;
     _zergModule    = zergModule;
     _abathur       = abathur;
 }
コード例 #3
0
        /// <inheritdoc />
        public void Initialize()
        {
            var factory = new AbathurFactory(log);

            abathur           = factory.Create(gameSettings, essence, log, this.GetType().Assembly, setupSettings.Modules.ToArray());
            abathur.IsHosting = isHost;
            abathur.Initialize();
        }
コード例 #4
0
 // Everything inheriting from IReplaceableModule is added to the IOC and can be dependency injected.
 public RandomDemo(IAbathur abathur, IIntelManager intel, TerranDemo terranModule, ProtossDemo protossModule, ZergDemo zergModule)
 {
     _terranModule  = terranModule;
     _protossModule = protossModule;
     _zergModule    = zergModule;
     _abathur       = abathur;
     _intel         = intel;
 }
コード例 #5
0
 public AVStrategy(IAbathur abathur, IIntelManager intelManager, ICombatManager combatManager,
                   IProductionManager productionManager, ISquadRepository squadRepo, IRawManager rawManager)
 {
     this.abathur           = abathur;
     this.intelManager      = intelManager;
     this.combatManager     = combatManager;
     this.productionManager = productionManager;
     this.squadRepo         = squadRepo;
     this.rawManager        = rawManager;
 }
コード例 #6
0
 public AutoMapRotation(IRawManager rawManager, ILogger logger, GameSettings settings, IAbathur abathur, IIntelManager intelManager)
 {
     this.abathur      = abathur;
     this.rawManager   = rawManager;
     this.settings     = settings;
     this.intelManager = intelManager;
     this.log          = logger;
     maps = new List <string> {
         "Flooded City",
         "Deadlock Ridge",
         "Antiga Shipyard",
         "Arctic Gates",
         "Cinder Fortress",
         "Condemned Ridge",
         "Daybreak LE",
         "Desolate Stronghold",
         "Dig Site",
         "District 10",
         "Eastwatch LE",
         "Entombed Valley",
         "Forgotten Sanctuary",
         "Green Acres",
         "Last Remnant",
         "Lava Flow",
         "Lunar Colony V",
         "Magma Core",
         "Megaton",
         "Molten Crater",
         "Ohana LE",
         "Old Estate",
         "Outpost",
         "Overgrown Facility",
         "Sand Canyon",
         "Seeds of Aiur",
         "Silent Dunes",
         "Snowy Mesa",
         "Temple of the Preservers",
         "The Bio Lab",
         "The Boneyard",
         "The Ruins of Tarsonis",
         "Traitor's Exile",
         "Tropic Shores",
         "Tyrador Keep",
         "Cloud Kingdom LE"
     };
 }
コード例 #7
0
ファイル: AutoRestart.cs プロジェクト: schmidtgit/SC2Abathur
 public AutoRestart(IAbathur abathur)
 {
     this.abathur = abathur;
 }
コード例 #8
0
ファイル: MapRenderDemo.cs プロジェクト: schmidtgit/Abathur
 public MapRenderDemo(IIntelManager intel, GameSettings gameSettings, IAbathur abathur)
 {
     _intel        = intel;
     _gameSettings = gameSettings;
     _abathur      = abathur;
 }