Beispiel #1
0
        ///<inheritdoc/>
        public static ICountryInfo GetCountryByNameConsiderTranslation(
            this ICountryProvider countryProvider,
            string countryName)
        {
            var countries = countryProvider.GetCountries();

            foreach (var country in countries)
            {
                if (country.CommonName.Equals(countryName, StringComparison.OrdinalIgnoreCase))
                {
                    return(country);
                }

                if (country.OfficialName.Equals(countryName, StringComparison.OrdinalIgnoreCase))
                {
                    return(country);
                }

                var translationProvider = new TranslationProvider();
                var countryTanslation   = translationProvider.GetCountryTranslation(country.Alpha2Code);
                if (countryTanslation.Translations.Any(translation => translation.Name.Equals(countryName, StringComparison.OrdinalIgnoreCase)))
                {
                    return(country);
                }
            }

            return(null);
        }
Beispiel #2
0
        public SkillsManager(ILogger <SkillsManager> logger, IGameDefinitionsPreloder definitionsPreloder, IDatabase database, IHealthManager healthManager, IAttackManager attackManager, IBuffsManager buffsManager, IStatsManager statsManager, IElementProvider elementProvider, ICountryProvider countryProvider, ICharacterConfiguration characterConfig, ILevelProvider levelProvider, IAdditionalInfoManager additionalInfoManager, IMapProvider mapProvider, ITeleportationManager teleportationManager, IMovementManager movementManager, IShapeManager shapeManager, IPartyManager partyManager, IGamePacketFactory packetFactory)
        {
            _logger = logger;
            _definitionsPreloder      = definitionsPreloder;
            _database                 = database;
            _healthManager            = healthManager;
            _attackManager            = attackManager;
            _buffsManager             = buffsManager;
            _statsManager             = statsManager;
            _elementProvider          = elementProvider;
            _countryProvider          = countryProvider;
            _characterConfig          = characterConfig;
            _levelProvider            = levelProvider;
            _additionalInfoManager    = additionalInfoManager;
            _mapProvider              = mapProvider;
            _teleportationManager     = teleportationManager;
            _movementManager          = movementManager;
            _shapeManager             = shapeManager;
            _partyManager             = partyManager;
            _packetFactory            = packetFactory;
            _levelProvider.OnLevelUp += OnLevelUp;

#if DEBUG
            _logger.LogDebug("SkillsManager {hashcode} created", GetHashCode());
#endif
        }
Beispiel #3
0
        public AccountController(ISettingsProvider settingsProvider, IAccountProvider accountProvider,
                                 IDownloadProvider downloadProvider, ICountryProvider countryProvider,
                                 ILicenceProvider licenceProvider, IUserCultureChangeProvider userCultureChanged,
                                 ICultureProvider cultureProvider, IPluginHelperService pluginHelperService)
        {
            _settingsProvider   = settingsProvider ?? throw new ArgumentNullException(nameof(settingsProvider));
            _accountProvider    = accountProvider ?? throw new ArgumentNullException(nameof(accountProvider));
            _downloadProvider   = downloadProvider ?? throw new ArgumentNullException(nameof(downloadProvider));
            _licenceProvider    = licenceProvider ?? throw new ArgumentNullException(nameof(licenceProvider));
            _userCultureChanged = userCultureChanged ?? throw new ArgumentNullException(nameof(userCultureChanged));
            _cultureProvider    = cultureProvider ?? throw new ArgumentNullException(nameof(cultureProvider));

            if (countryProvider == null)
            {
                throw new ArgumentNullException(nameof(countryProvider));
            }

            if (Countries == null)
            {
                Countries = countryProvider.GetVisibleCountries();
            }

            if (LicenceTypes == null)
            {
                LicenceTypes = _licenceProvider.LicenceTypesGet();
            }

            _blogLoaded = pluginHelperService.PluginLoaded("Blog.Plugin.dll", out _);
        }
 public SearchPartyHandler(IGamePacketFactory packetFactory, IGameSession gameSession, IGameWorld gameWorld, IPartyManager partyManager, IMapProvider mapProvider, ICountryProvider countryProvider) : base(packetFactory, gameSession)
 {
     _gameWorld       = gameWorld;
     _partyManager    = partyManager;
     _mapProvider     = mapProvider;
     _countryProvider = countryProvider;
 }
Beispiel #5
0
 public VehicleHandlers(IGamePacketFactory packetFactory, IGameSession gameSession, IVehicleManager vehicleManager, IInventoryManager inventoryManager, IMapProvider mapProvider, ICountryProvider countryProvider, IMovementManager movementManager) : base(packetFactory, gameSession)
 {
     _vehicleManager   = vehicleManager;
     _inventoryManager = inventoryManager;
     _mapProvider      = mapProvider;
     _countryProvider  = countryProvider;
     _movementManager  = movementManager;
 }
Beispiel #6
0
        public ActionResult Stub()
        {
            ViewBag.Title = "Stub";

            _provider = new CountryProvider(new CountryReaderStub());

            return(View("CountryList", _provider.GetCountries()));
        }
        public ActionResult Stub()
        {
            ViewBag.Title = "Stub";

            _provider = new CountryProvider(new CountryReaderStub());

            return View("CountryList", _provider.GetCountries());
        }
        public ActionResult XML()
        {
            ViewBag.Title = "XML";

            string strPath = HttpRuntime.BinDirectory + "\\Countries.xml";
            _provider = new CountryProvider(new CountryReader(strPath));

            return View("CountryList", _provider.GetCountries());
        }
Beispiel #9
0
        /// <summary>
        /// Construct a new instance
        /// </summary>
        public CachedCountryProvider(ICountryProvider countryProvider)
        {
            if (countryProvider == null)
            {
                throw new ArgumentNullException("countryProvider");
            }

            this.countryProvider = countryProvider;
        }
Beispiel #10
0
 public CountryService(IIpToLocation ipToLocation, IHttpContextAccessor httpContext,
                       ILogger <CountryService> logger, ConfigurationService configurationService, ICountryProvider conCountryProvider)
 {
     _ipToLocation         = ipToLocation;
     _httpContext          = httpContext;
     _logger               = logger;
     _configurationService = configurationService;
     _conCountryProvider   = conCountryProvider;
 }
        /// <summary>
        /// Construct a new instance
        /// </summary>
        public CachedCountryProvider(ICountryProvider countryProvider)
        {
            if (countryProvider == null)
            {
                throw new ArgumentNullException("countryProvider");
            }

            this.countryProvider = countryProvider;
        }
Beispiel #12
0
        public ActionResult XML()
        {
            ViewBag.Title = "XML";

            string strPath = HttpRuntime.BinDirectory + "\\Countries.xml";

            _provider = new CountryProvider(new CountryReader(strPath));

            return(View("CountryList", _provider.GetCountries()));
        }
 public GMTeleportHandler(IGamePacketFactory packetFactory, IGameSession gameSession, IGameWorld gameWorld, IMapsLoader mapLoader, ICountryProvider countryProvider, ITeleportationManager teleportationManager, IMovementManager movementManager, IPartyManager partyManager, IGuildManager guildManager) : base(packetFactory, gameSession)
 {
     _gameWorld            = gameWorld;
     _mapLoader            = mapLoader;
     _countryProvider      = countryProvider;
     _teleportationManager = teleportationManager;
     _movementManager      = movementManager;
     _partyManager         = partyManager;
     _guildManager         = guildManager;
 }
Beispiel #14
0
        public CountryMetadataProviderImpl(IServiceProvider serviceProvider, ILogger <CountryMetadataProviderImpl> logger)
        {
            _logger = logger;

            _countryProvider = new CountryProvider();

            var countries = _countryProvider.GetCountries();

            foreach (var country in countries)
            {
                var alpha2Code = country.Alpha2Code;

                var countryCode = Enum.GetName(typeof(Alpha2Code), alpha2Code).ToLower();

                var countryNameEn = _countryProvider.GetCountryTranslatedName(alpha2Code, LanguageCode.EN);

                if (string.IsNullOrEmpty(countryNameEn))
                {
                    throw new Exception($"Country name for {alpha2Code} is missing (EN)");
                }

                var countryNameDe = _countryProvider.GetCountryTranslatedName(alpha2Code, LanguageCode.DE);

                if (string.IsNullOrEmpty(countryNameDe))
                {
                    throw new Exception($"Country name for {alpha2Code} is missing (DE)");
                }

                _localizedCountryNameMappings["en"].Add(new CountryCodeNameMapping()
                {
                    CountryCode = countryCode,
                    Name        = countryNameEn
                });

                _localizedCountryNameMappings["de"].Add(new CountryCodeNameMapping()
                {
                    CountryCode = countryCode,
                    Name        = countryNameDe
                });

                _validCountryCodes.Add(countryCode);
            }

            _localizedCountryNameMappings["en"].Sort((country1, country2) =>
            {
                return(string.Compare(country1.Name, country2.Name));
            });

            _localizedCountryNameMappings["de"].Sort((country1, country2) =>
            {
                return(string.Compare(country1.Name, country2.Name));
            });

            _geoIP2DatabaseReader = serviceProvider.GetRequiredService <IGeoIP2DatabaseReader>();
        }
        /// <summary>
        /// Construct a new instance of CartPricingProvider
        /// </summary>
        public CartPricingProvider(
            IResellerProvider resellerProvider,
            ICurrencyPreferenceProvider currencyPreferenceProvider,
            ICountryProvider countryProvider,
            IContactDataProvider contactDataProvider,
            RenewalPeriodProvider renewalPeriodProvider,
            IVatDisplayPreferenceProvider vatDisplayPreferenceProvider,
            PublicBillingApiProxy billingApi,
            IVatNumberValidator vatNumberValidator)
            : base(billingApi)
        {
            if (resellerProvider == null)
            {
                throw new ArgumentNullException("resellerProvider");
            }

            if (currencyPreferenceProvider == null)
            {
                throw new ArgumentNullException("currencyPreferenceProvider");
            }

            if (countryProvider == null)
            {
                throw new ArgumentNullException("countryProvider");
            }

            if (contactDataProvider == null)
            {
                throw new ArgumentNullException("contactDataProvider");
            }

            if (renewalPeriodProvider == null)
            {
                throw new ArgumentNullException("renewalPeriodProvider");
            }

            if (vatDisplayPreferenceProvider == null)
            {
                throw new ArgumentNullException("vatDisplayPreferenceProvider");
            }

            if (vatNumberValidator == null)
            {
                throw new ArgumentNullException("vatNumberValidator");
            }

            this.resellerProvider            = resellerProvider;
            this.currencyPreferenceProvider  = currencyPreferenceProvider;
            this.countryProvider             = countryProvider;
            this.contactDataProvider         = contactDataProvider;
            this.renewalPeriodProvider       = renewalPeriodProvider;
            this.pricesIncludeVat            = vatDisplayPreferenceProvider.ShowPricesIncludingVat();
            this.inclusiveTaxCalculationType = resellerProvider.GetReseller().InclusiveTaxCalculationType;
            this.vatNumberValidator          = vatNumberValidator;
        }
Beispiel #16
0
 public TeleportHandlers(ILogger <TeleportHandlers> logger, ILogger <Npc> npcLogger, IGamePacketFactory packetFactory, IGameSession gameSession, ITeleportationManager teleportationManager, IMapProvider mapProvider, IGameWorld gameWorld, IGuildManager guildManager, IInventoryManager inventoryManager, IMapsLoader mapLoader, IMoveTownsConfiguration moveTownsConfiguration, ICountryProvider countryProvider) : base(packetFactory, gameSession)
 {
     _logger                 = logger;
     _npcLogger              = npcLogger;
     _teleportationManager   = teleportationManager;
     _mapProvider            = mapProvider;
     _gameWorld              = gameWorld;
     _guildManager           = guildManager;
     _inventoryManager       = inventoryManager;
     _mapLoader              = mapLoader;
     _moveTownsConfiguration = moveTownsConfiguration;
     _countryProvider        = countryProvider;
 }
Beispiel #17
0
 public BaseKillable(IDatabasePreloader databasePreloader, ICountryProvider countryProvider, IStatsManager statsManager, IHealthManager healthManager, ILevelProvider levelProvider, IBuffsManager buffsManager, IElementProvider elementProvider, IMovementManager movementManager, IUntouchableManager untouchableManager, IMapProvider mapProvider)
 {
     _databasePreloader = databasePreloader;
     CountryProvider    = countryProvider;
     StatsManager       = statsManager;
     HealthManager      = healthManager;
     LevelProvider      = levelProvider;
     BuffsManager       = buffsManager;
     ElementProvider    = elementProvider;
     MovementManager    = movementManager;
     UntouchableManager = untouchableManager;
     MapProvider        = mapProvider;
 }
Beispiel #18
0
        public Mob(ushort mobId,
                   bool shouldRebirth,
                   MoveArea moveArea,
                   ILogger <Mob> logger,
                   IDatabasePreloader databasePreloader,
                   IAIManager aiManager,
                   IItemEnchantConfiguration enchantConfig,
                   IItemCreateConfiguration itemCreateConfig,
                   ICountryProvider countryProvider,
                   IStatsManager statsManager,
                   IHealthManager healthManager,
                   ILevelProvider levelProvider,
                   ISpeedManager speedManager,
                   IAttackManager attackManager,
                   ISkillsManager skillsManager,
                   IBuffsManager buffsManager,
                   IElementProvider elementProvider,
                   IMovementManager movementManager,
                   IUntouchableManager untouchableManager,
                   IMapProvider mapProvider) : base(databasePreloader, countryProvider, statsManager, healthManager, levelProvider, buffsManager, elementProvider, movementManager, untouchableManager, mapProvider)
        {
            _logger           = logger;
            _enchantConfig    = enchantConfig;
            _itemCreateConfig = itemCreateConfig;
            _dbMob            = databasePreloader.Mobs[mobId];
            _moveArea         = moveArea;

            AIManager = aiManager;

            Exp           = _dbMob.Exp;
            ShouldRebirth = shouldRebirth;

            SpeedManager  = speedManager;
            AttackManager = attackManager;
            SkillsManager = skillsManager;

            ElementProvider.ConstAttackElement  = _dbMob.Element;
            ElementProvider.ConstDefenceElement = _dbMob.Element;

            if (ShouldRebirth)
            {
                _rebirthTimer.Interval = RespawnTimeInMilliseconds;
                _rebirthTimer.Elapsed += RebirthTimer_Elapsed;

                HealthManager.OnDead += MobRebirth_OnDead;
            }

            HealthManager.OnGotDamage += OnDecreaseHP;
            AIManager.OnStateChanged  += AIManager_OnStateChanged;
        }
 public SelectCharacterHandler(IGamePacketFactory packetFactory,
                               IGameSession gameSession,
                               IGameWorld gameWorld,
                               ICharacterFactory characterFactory,
                               IStatsManager statsManager,
                               IGuildManager guildManager,
                               ICountryProvider countryProvider) : base(packetFactory, gameSession)
 {
     _gameWorld        = gameWorld;
     _characterFactory = characterFactory;
     _statsManager     = statsManager;
     _guildManager     = guildManager;
     _countryProvider  = countryProvider;
 }
        public ActionResult Add(Country model)
        {
            if (ModelState.IsValid)
            {
                string strPath = HttpRuntime.BinDirectory + "\\Countries.xml";
                _provider = new CountryProvider(new CountryReader(strPath));

                List<Country> result = _provider.GetCountries().ToList();
                result.Add(model);

                if(_provider.SaveCountries(result))
                    return RedirectToAction("Index", "Country");
            }
            return View();
        }
        /// <summary>
        /// Construct a new instance of CartPricingProvider
        /// </summary>
        public CartPricingProvider(
            IResellerProvider resellerProvider, 
            ICurrencyPreferenceProvider currencyPreferenceProvider, 
            ICountryProvider countryProvider, 
            IContactDataProvider contactDataProvider,
            RenewalPeriodProvider renewalPeriodProvider, 
            IVatDisplayPreferenceProvider vatDisplayPreferenceProvider, 
            PublicBillingApiProxy billingApi)
            : base(billingApi)
        {
            if (resellerProvider == null)
            {
                throw new ArgumentNullException("resellerProvider");
            }

            if (currencyPreferenceProvider == null)
            {
                throw new ArgumentNullException("currencyPreferenceProvider");
            }

            if (countryProvider == null)
            {
                throw new ArgumentNullException("countryProvider");
            }

            if (contactDataProvider == null)
            {
                throw new ArgumentNullException("contactDataProvider");
            }

            if (renewalPeriodProvider == null)
            {
                throw new ArgumentNullException("renewalPeriodProvider");
            }

            if (vatDisplayPreferenceProvider == null)
            {
                throw new ArgumentNullException("vatDisplayPreferenceProvider");
            }

            this.resellerProvider = resellerProvider;
            this.currencyPreferenceProvider = currencyPreferenceProvider;
            this.countryProvider = countryProvider;
            this.contactDataProvider = contactDataProvider;
            this.renewalPeriodProvider = renewalPeriodProvider;
            this.pricesIncludeVat = vatDisplayPreferenceProvider.ShowPricesIncludingVat();
            this.inclusiveTaxCalculationType = resellerProvider.GetReseller().InclusiveTaxCalculationType;
        }
Beispiel #22
0
        public AttackManager(ILogger <AttackManager> logger, IStatsManager statsManager, ILevelProvider levelProvider, IElementProvider elementManager, ICountryProvider countryProvider, ISpeedManager speedManager, IStealthManager stealthManager, IHealthManager healthManager, IShapeManager shapeManager)
        {
            _logger          = logger;
            _statsManager    = statsManager;
            _levelProvider   = levelProvider;
            _elementManager  = elementManager;
            _countryProvider = countryProvider;
            _speedManager    = speedManager;
            _stealthManager  = stealthManager;
            _healthManager   = healthManager;
            _shapeManager    = shapeManager;

#if DEBUG
            _logger.LogDebug("AttackManager {hashcode} created", GetHashCode());
#endif
        }
Beispiel #23
0
        public GuildManager(ILogger <IGuildManager> logger, IGuildConfiguration config, IGuildHouseConfiguration houseConfig, IDatabase database, IGameWorld gameWorld, ITimeService timeService, IInventoryManager inventoryManager, IPartyManager partyManager, ICountryProvider countryProvider, IEtinManager etinManager)
        {
            _logger           = logger;
            _database         = database;
            _gameWorld        = gameWorld;
            _timeService      = timeService;
            _inventoryManager = inventoryManager;
            _partyManager     = partyManager;
            _countryProvider  = countryProvider;
            _etinManager      = etinManager;
            _config           = config;
            _houseConfig      = houseConfig;
#if DEBUG
            _logger.LogDebug("GuildManager {hashcode} created", GetHashCode());
#endif
        }
Beispiel #24
0
        public ActionResult Add(Country model)
        {
            if (ModelState.IsValid)
            {
                string strPath = HttpRuntime.BinDirectory + "\\Countries.xml";
                _provider = new CountryProvider(new CountryReader(strPath));

                List <Country> result = _provider.GetCountries().ToList();
                result.Add(model);

                if (_provider.SaveCountries(result))
                {
                    return(RedirectToAction("Index", "Country"));
                }
            }
            return(View());
        }
Beispiel #25
0
        public AIManager(ILogger <AIManager> logger, IMovementManager movementManager, ICountryProvider countryProvider, IAttackManager attackManager, IUntouchableManager untouchableManager, IMapProvider mapProvider, ISkillsManager skillsManager, IStatsManager statsManager, IElementProvider elementProvider, IGameDefinitionsPreloder definitionsPreloder, ISpeedManager speedManager)
        {
            _logger              = logger;
            _movementManager     = movementManager;
            _countryProvider     = countryProvider;
            _attackManager       = attackManager;
            _untouchableManager  = untouchableManager;
            _mapProvider         = mapProvider;
            _skillsManager       = skillsManager;
            _statsManager        = statsManager;
            _elementProvider     = elementProvider;
            _definitionsPreloder = definitionsPreloder;
            _speedManager        = speedManager;

            _attackManager.OnTargetChanged += AttackManager_OnTargetChanged;
#if DEBUG
            _logger.LogDebug("AIManager {hashcode} created", GetHashCode());
#endif
        }
        public TeleportationManager(ILogger <TeleportationManager> logger, IMovementManager movementManager, IMapProvider mapProvider, IDatabase database, ICountryProvider countryProvider, ILevelProvider levelProvider, IGameWorld gameWorld, IHealthManager healthManager)
        {
            _logger                     = logger;
            _movementManager            = movementManager;
            _mapProvider                = mapProvider;
            _database                   = database;
            _countryProvider            = countryProvider;
            _levelProvider              = levelProvider;
            _gameWorld                  = gameWorld;
            _healthManager              = healthManager;
            _castingTimer.Elapsed      += OnCastingTimer_Elapsed;
            _healthManager.OnGotDamage += HealthManager_OnGotDamage;
            _movementManager.OnMove    += MovementManager_OnMove;
#if DEBUG
            _logger.LogDebug("TeleportationManager {hashcode} created", GetHashCode());
#endif

            SavedPositions = new ReadOnlyDictionary <byte, (ushort MapId, float X, float Y, float Z)>(_savedPositions);
        }
        public AccountController(ISettingsProvider settingsProvider, IAccountProvider accountProvider,
                                 IDownloadProvider downloadProvider, ICountryProvider countryProvider,
                                 ILicenceProvider licenceProvider)
        {
            _settingsProvider = settingsProvider ?? throw new ArgumentNullException(nameof(settingsProvider));
            _accountProvider  = accountProvider ?? throw new ArgumentNullException(nameof(accountProvider));
            _downloadProvider = downloadProvider ?? throw new ArgumentNullException(nameof(downloadProvider));
            _licenceProvider  = licenceProvider ?? throw new ArgumentNullException(nameof(licenceProvider));

            if (countryProvider == null)
            {
                throw new ArgumentNullException(nameof(countryProvider));
            }

            if (Countries == null)
            {
                Countries = countryProvider.GetVisibleCountries();
            }

            if (LicenceTypes == null)
            {
                LicenceTypes = _licenceProvider.LicenceTypesGet();
            }
        }
Beispiel #28
0
 public CountriesController(ICountryProvider countryProvider, IDebugContext debugContext)
 {
     _countryProvider = countryProvider;
     _countryProvider.DebugContext = debugContext;
 }
Beispiel #29
0
 public CountryNetworkDataSource(ICountryProvider countryProvider, ICountryCache countryCache)
 {
     this.countryProvider = countryProvider;
     this.countryCache    = countryCache;
 }
        ///<inheritdoc/>
        public TranslationProvider()
        {
            this._countryProvider = new CountryProvider();

            var interfaceType = typeof(ILanguageTranslation);
            var types         = AppDomain.CurrentDomain.GetAssemblies()
                                .SelectMany(s => s.GetLoadableTypes())
                                .Where(p => interfaceType.IsAssignableFrom(p) && p.IsClass);

            foreach (var type in types)
            {
                var languageTranslation = (ILanguageTranslation)Activator.CreateInstance(type);
                this._languageCode2LanguageTranslation.Add(languageTranslation.LanguageCode, languageTranslation);
            }

            #region Country translation

            this._alpha2Code2CountryTranslation.Add(Alpha2Code.AF, new AfghanistanCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.AX, new AlandIslandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.AL, new AlbaniaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.DZ, new AlgeriaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.AS, new AmericanSamoaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.AD, new AndorraCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.AO, new AngolaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.AI, new AnguillaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.AQ, new AntarcticaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.AG, new AntiguaAndBarbudaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.AR, new ArgentinaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.AM, new ArmeniaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.AW, new ArubaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.AU, new AustraliaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.AT, new AustriaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.AZ, new AzerbaijanCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BS, new BahamasCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BH, new BahrainCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BD, new BangladeshCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BB, new BarbadosCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BY, new BelarusCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BE, new BelgiumCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BZ, new BelizeCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BJ, new BeninCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BM, new BermudaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BT, new BhutanCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BO, new BoliviaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BA, new BosniaandHerzegovinaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BW, new BotswanaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BV, new BouvetIslandCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BR, new BrazilCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.IO, new BritishIndianOceanTerritoryCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.VG, new BritishVirginIslandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BN, new BruneiCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BG, new BulgariaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BF, new BurkinaFasoCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BI, new BurundiCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.KH, new CambodiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CM, new CameroonCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CA, new CanadaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CV, new CapeVerdeCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BQ, new CaribbeanNetherlandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.KY, new CaymanIslandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CF, new CentralAfricanRepublicCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.TD, new ChadCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CL, new ChileCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CN, new ChinaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CX, new ChristmasIslandCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CC, new CocosIslandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CO, new ColombiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.KM, new ComorosCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CD, new CongoCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CK, new CookIslandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CR, new CostaRicaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.HR, new CroatiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CU, new CubaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CW, new CuracaoCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CY, new CyprusCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CZ, new CzechRepublicCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.DK, new DenmarkCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.DJ, new DjiboutiCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.DM, new DominicaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.DO, new DominicanRepublicCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.EC, new EcuadorCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.EG, new EgyptCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SV, new ElSalvadorCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GQ, new EquatorialGuineaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.ER, new EritreaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.EE, new EstoniaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.ET, new EthiopiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.FK, new FalklandIslandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.FO, new FaroeIslandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.FJ, new FijiCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.FI, new FinlandCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.FR, new FranceCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GF, new FrenchGuianaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.PF, new FrenchPolynesiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.TF, new FrenchSouthernAndAntarcticLandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GA, new GabonCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GM, new GambiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GE, new GeorgiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.DE, new GermanyCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GH, new GhanaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GI, new GibraltarCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GR, new GreeceCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GL, new GreenlandCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GD, new GrenadaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GP, new GuadeloupeCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GU, new GuamCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GT, new GuatemalaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GG, new GuernseyCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GW, new GuineaBissauCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GN, new GuineaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GY, new GuyanaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.HT, new HaitiCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.HM, new HeardIslandAndMcDonaldIslandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.HN, new HondurasCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.HK, new HongKongCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.HU, new HungaryCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.IS, new IcelandCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.IN, new IndiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.ID, new IndonesiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.IR, new IranCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.IQ, new IraqCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.IE, new IrelandCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.IM, new IsleofManCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.IL, new IsraelCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.IT, new ItalyCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CI, new IvoryCoastCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.JM, new JamaicaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.JP, new JapanCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.JE, new JerseyCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.JO, new JordanCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.KZ, new KazakhstanCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.KE, new KenyaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.KI, new KiribatiCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.KW, new KuwaitCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.KG, new KyrgyzstanCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.LA, new LaosCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.LV, new LatviaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.LB, new LebanonCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.LS, new LesothoCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.LR, new LiberiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.LY, new LibyaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.LI, new LiechtensteinCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.LT, new LithuaniaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.LU, new LuxembourgCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MO, new MacauCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MG, new MadagascarCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MW, new MalawiCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MY, new MalaysiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MV, new MaldivesCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.ML, new MaliCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MT, new MaltaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MH, new MarshallIslandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MQ, new MartiniqueCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MR, new MauritaniaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MU, new MauritiusCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.YT, new MayotteCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MX, new MexicoCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.FM, new MicronesiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MD, new MoldovaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MC, new MonacoCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MN, new MongoliaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.ME, new MontenegroCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MS, new MontserratCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MA, new MoroccoCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MZ, new MozambiqueCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MM, new MyanmarCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.NA, new NamibiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.NR, new NauruCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.NP, new NepalCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.NL, new NetherlandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.NC, new NewCaledoniaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.NZ, new NewZealandCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.NI, new NicaraguaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.NG, new NigeriaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.NE, new NigerCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.NU, new NiueCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.NF, new NorfolkIslandCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MP, new NorthernMarianaIslandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.KP, new NorthKoreaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MK, new NorthMacedoniaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.NO, new NorwayCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.OM, new OmanCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.PK, new PakistanCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.PW, new PalauCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.PS, new PalestineCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.PA, new PanamaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.PG, new PapuaNewGuineaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.PY, new ParaguayCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.PE, new PeruCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.PH, new PhilippinesCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.PN, new PitcairnIslandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.PL, new PolandCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.PT, new PortugalCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.PR, new PuertoRicoCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.QA, new QatarCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CG, new RepublicOfTheCongoCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.RE, new ReunionCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.RO, new RomaniaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.RU, new RussiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.RW, new RwandaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.BL, new SaintBarthelemyCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SH, new SaintHelenaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.KN, new SaintKittsAndNevisCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.LC, new SaintLuciaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.MF, new SaintMartinCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.PM, new SaintPierreAndMiquelonCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.VC, new SaintVincentAndTheGrenadinesCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.WS, new SamoaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SM, new SanMarinoCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.ST, new SaoTomeAndPrincipeCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SA, new SaudiArabiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SN, new SenegalCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.RS, new SerbiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SC, new SeychellesCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SL, new SierraLeoneCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SG, new SingaporeCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SX, new SintMaartenCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SK, new SlovakiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SI, new SloveniaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SB, new SolomonIslandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SO, new SomaliaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.ZA, new SouthAfricaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GS, new SouthGeorgiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.KR, new SouthKoreaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SS, new SouthSudanCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.ES, new SpainCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.LK, new SriLankaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SD, new SudanCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SR, new SurinameCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SJ, new SvalbardAndJanMayenCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SZ, new SwazilandCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SE, new SwedenCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.CH, new SwitzerlandCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.SY, new SyriaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.TW, new TaiwanCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.TJ, new TajikistanCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.TZ, new TanzaniaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.TH, new ThailandCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.TL, new TimorLesteCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.TG, new TogoCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.TK, new TokelauCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.TO, new TongaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.TT, new TrinidadAndTobagoCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.TN, new TunisiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.TR, new TurkeyCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.TM, new TurkmenistanCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.TC, new TurksAndCaicosIslandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.TV, new TuvaluCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.UG, new UgandaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.UA, new UkraineCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.AE, new UnitedArabEmiratesCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.GB, new UnitedKingdomCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.US, new UnitedStatesCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.UM, new UnitedStatesMinorOutlyingIslandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.VI, new UnitedStatesVirginIslandsCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.UY, new UruguayCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.UZ, new UzbekistanCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.VU, new VanuatuCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.VA, new VaticanCityCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.VE, new VenezuelaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.VN, new VietnamCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.WF, new WallisAndFutunaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.EH, new WesternSaharaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.YE, new YemenCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.ZM, new ZambiaCountryTranslation());
            this._alpha2Code2CountryTranslation.Add(Alpha2Code.ZW, new ZimbabweCountryTranslation());

            #endregion
        }
Beispiel #31
0
 public RaidJoinHandler(IGamePacketFactory packetFactory, IGameSession gameSession, IPartyManager partyManager, IGameWorld gameWorld, ICountryProvider countryProvider) : base(packetFactory, gameSession)
 {
     _partyManager    = partyManager;
     _gameWorld       = gameWorld;
     _countryProvider = countryProvider;
 }
Beispiel #32
0
 public GMNoticeHandler(IGamePacketFactory packetFactory, IGameSession gameSession, INoticeManager noticeManager, ICountryProvider countryProvider, IMapProvider mapProvider) : base(packetFactory, gameSession)
 {
     _noticeManager   = noticeManager;
     _countryProvider = countryProvider;
     _mapProvider     = mapProvider;
 }
Beispiel #33
0
 public FriendHandlers(IGamePacketFactory packetFactory, IGameSession gameSession, IFriendsManager friendsManager, IGameWorld gameWorld, ICountryProvider countryProvider) : base(packetFactory, gameSession)
 {
     _friendsManager  = friendsManager;
     _gameWorld       = gameWorld;
     _countryProvider = countryProvider;
 }
 public CountriesController(ICountryProvider countryProvider, IDebugContext debugContext)
 {
     _countryProvider = countryProvider;
     _countryProvider.DebugContext = debugContext;
 }
Beispiel #35
0
        public Character(ILogger <Character> logger,
                         IDatabasePreloader databasePreloader,
                         IGuildManager guildManager,
                         ICountryProvider countryProvider,
                         ISpeedManager speedManager,
                         IStatsManager statsManager,
                         IAdditionalInfoManager additionalInfoManager,
                         IHealthManager healthManager,
                         ILevelProvider levelProvider,
                         ILevelingManager levelingManager,
                         IInventoryManager inventoryManager,
                         IStealthManager stealthManager,
                         IAttackManager attackManager,
                         ISkillsManager skillsManager,
                         IBuffsManager buffsManager,
                         IElementProvider elementProvider,
                         IKillsManager killsManager,
                         IVehicleManager vehicleManager,
                         IShapeManager shapeManager,
                         IMovementManager movementManager,
                         ILinkingManager linkinManager,
                         IMapProvider mapProvider,
                         ITeleportationManager teleportationManager,
                         IPartyManager partyManager,
                         ITradeManager tradeManager,
                         IFriendsManager friendsManager,
                         IDuelManager duelManager,
                         IBankManager bankManager,
                         IQuestsManager questsManager,
                         IUntouchableManager untouchableManager,
                         IWarehouseManager warehouseManager,
                         IShopManager shopManager,
                         ISkillCastingManager skillCastingManager,
                         ICastProtectionManager castProtectionManager,
                         IGameSession gameSession,
                         IGamePacketFactory packetFactory) : base(databasePreloader, countryProvider, statsManager, healthManager, levelProvider, buffsManager, elementProvider, movementManager, untouchableManager, mapProvider)
        {
            _logger        = logger;
            _packetFactory = packetFactory;

            AdditionalInfoManager = additionalInfoManager;
            InventoryManager      = inventoryManager;
            StealthManager        = stealthManager;
            LevelingManager       = levelingManager;
            SpeedManager          = speedManager;
            AttackManager         = attackManager;
            SkillsManager         = skillsManager;
            KillsManager          = killsManager;
            VehicleManager        = vehicleManager;
            ShapeManager          = shapeManager;
            LinkingManager        = linkinManager;
            TeleportationManager  = teleportationManager;
            PartyManager          = partyManager;
            TradeManager          = tradeManager;
            FriendsManager        = friendsManager;
            DuelManager           = duelManager;
            GuildManager          = guildManager;
            BankManager           = bankManager;
            QuestsManager         = questsManager;
            WarehouseManager      = warehouseManager;
            ShopManager           = shopManager;
            SkillCastingManager   = skillCastingManager;
            CastProtectionManager = castProtectionManager;
            GameSession           = gameSession;

            HealthManager.MP_SP_Used += SendUseMPSP;
            HealthManager.OnCurrentHitpointsChanged += SendCurrentHitpoints;
            StatsManager.OnAdditionalStatsUpdate    += SendAdditionalStats;
            StatsManager.OnResetStats         += SendResetStats;
            BuffsManager.OnBuffAdded          += SendAddBuff;
            BuffsManager.OnBuffRemoved        += SendRemoveBuff;
            AttackManager.OnStartAttack       += SendAttackStart;
            VehicleManager.OnUsedVehicle      += SendUseVehicle;
            SkillsManager.OnResetSkills       += SendResetSkills;
            InventoryManager.OnAddItem        += SendAddItemToInventory;
            InventoryManager.OnRemoveItem     += SendRemoveItemFromInventory;
            InventoryManager.OnItemExpired    += SendItemExpired;
            AttackManager.TargetOnBuffAdded   += SendTargetAddBuff;
            AttackManager.TargetOnBuffRemoved += SendTargetRemoveBuff;
            DuelManager.OnDuelResponse        += SendDuelResponse;
            DuelManager.OnStart                   += SendDuelStart;
            DuelManager.OnCanceled                += SendDuelCancel;
            DuelManager.OnFinish                  += SendDuelFinish;
            LevelingManager.OnExpChanged          += SendExperienceGain;
            QuestsManager.OnQuestMobCountChanged  += SendQuestCountUpdate;
            QuestsManager.OnQuestFinished         += SendQuestFinished;
            ShopManager.OnUseShopClosed           += SendUseShopClosed;
            ShopManager.OnUseShopItemCountChanged += SendUseShopItemCountChanged;
            ShopManager.OnSoldItem                += SendSoldItem;

            Bless.Instance.OnDarkBlessChanged  += OnDarkBlessChanged;
            Bless.Instance.OnLightBlessChanged += OnLightBlessChanged;
        }
 public CountryController(ICountryProvider countryProvider)
 {
     _countryProvider = countryProvider;
 }