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

            countryService = new CountryService(UtilityFactory.CreateMapper(), context,
                                                new AsyncReaderWriterLock(), ModifierParserContainer.CreateDefault());
        }
Example #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());
        }
Example #3
0
        public async Task Initialize()
        {
            context = await UtilityFactory.CreateContextAsync();

            buildingService = new BuildingService(context, UtilityFactory.CreateMapper());
        }
Example #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());
        }