Beispiel #1
0
        public async Task Initialize()
        {
            context = await UtilityFactory.CreateContextAsync();

            countryService = new CountryService(UtilityFactory.CreateMapper(), context,
                                                new AsyncReaderWriterLock(), ModifierParserContainer.CreateDefault());
        }
Beispiel #2
0
        public async Task Initialize()
        {
            context = await UtilityFactory.CreateContextAsync();

            unitService = new UnitService(context,
                                          new ModifierParserContainer(new AbstractEffectModifierParser[]
            {
                new BarrackSpaceEffectParser(),
                new CoralProductionEffectParser(),
                new PearlProductionEffectParser(),
                new HarvestModifierEffectParser(),
                new PopulationEffectParser(),
                new TaxModifierEffectParser(),
                new UnitDefenseEffectParser(),
                new UnitAttackEffectParser(),
                new AddBuildingEffectParser(),
                new IncreaseUnitAttackEffectParser(),
                new BuildingCoralProductionEffectParser()
            }), UtilityFactory.CreateMapper());
        }
Beispiel #3
0
        public async Task Initialize()
        {
            context = await UtilityFactory.CreateContextAsync();

            buildingService = new BuildingService(context, UtilityFactory.CreateMapper());
        }
Beispiel #4
0
        public async Task Initialize()
        {
            context = await UtilityFactory.CreateContextAsync();

            commandService = new CommandService(context, UtilityFactory.CreateMapper());
        }
        public async Task Initialize()
        {
            context = await UtilityFactory.CreateContextAsync();

            researchService = new ResearchService(context, UtilityFactory.CreateMapper());
        }