Exemplo n.º 1
0
        public async Task Initialize()
        {
            context = await UtilityFactory.CreateContextAsync();

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

            turnService = new TurnHandlingService(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()
            }));
        }
Exemplo n.º 3
0
        public async Task Initialize()
        {
            context = await UtilityFactory.CreateContextAsync();

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

            buildingService = new BuildingService(context, UtilityFactory.CreateMapper());
        }
Exemplo n.º 5
0
        public async Task Initialize()
        {
            context = await UtilityFactory.CreateContextAsync();

            turnService = new TurnHandlingService(ModifierParserContainer.CreateDefault(), new AsyncReaderWriterLock());
        }
Exemplo n.º 6
0
        public async Task Initialize()
        {
            context = await UtilityFactory.CreateContextAsync();

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