Beispiel #1
0
        public override void Initialize()
        {
            this.m_wordFilters = null;
            ResourcesAPI resources = this.m_battleNet.Resources;

            if (resources == null)
            {
                base.ApiLog.LogWarning("ResourcesAPI is not initialized! Unable to proceed.");
                return;
            }
            this.m_localeName = BattleNet.Client().GetLocaleName();
            if (string.IsNullOrEmpty(this.m_localeName))
            {
                base.ApiLog.LogWarning("Unable to get Locale from Localization class");
                this.m_localeName = "enUS";
            }
            base.ApiLog.LogDebug("Locale is {0}", new object[] { this.m_localeName });
            resources.LookupResource(new FourCC("BN"), new FourCC("apft"), new FourCC(this.m_localeName), new ResourcesAPI.ResourceLookupCallback(this.ResouceLookupCallback), null);
        }