예제 #1
0
        public static void AddLocale(string localeKey, string scriptName, Assembly scriptAssembly) {
            lock(_locker) {
                if(_customLocales == null)
                    _customLocales = new Dictionary<string, LocaleScriptInfo>();

                _customLocales[localeKey] = new LocaleScriptInfo(localeKey, scriptName, scriptAssembly);
            }
        }
예제 #2
0
        public static void AddLocale(string localeKey, string scriptName, Assembly scriptAssembly)
        {
            lock(_locker) {
                if(_customLocales == null)
                    _customLocales = new Dictionary<string, LocaleScriptInfo>();

                _customLocales[localeKey] = new LocaleScriptInfo(localeKey, scriptName, scriptAssembly);
            }
        }