/// <summary>
        ///     Initializes a new instance of the <see cref="ThirdGenLanguagePackLoader" /> class.
        /// </summary>
        /// <param name="cacheFile">The cache file.</param>
        /// <param name="languageGlobals">The language globals.</param>
        /// <param name="buildInfo">Information about the cache file's engine.</param>
        /// <param name="reader">The stream to read from.</param>
        public ThirdGenLanguagePackLoader(ICacheFile cacheFile, ThirdGenLanguageGlobals languageGlobals,
			EngineDescription buildInfo, IReader reader)
        {
            _languageGlobals = languageGlobals;
            _languages = languageGlobals.Languages.Where(l => l.StringCount != 0).Select(l => l.Language).ToList();
            LoadGroups(reader, cacheFile, buildInfo);
        }
Exemplo n.º 2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ThirdGenLanguagePackLoader" /> class.
 /// </summary>
 /// <param name="cacheFile">The cache file.</param>
 /// <param name="languageGlobals">The language globals.</param>
 /// <param name="buildInfo">Information about the cache file's engine.</param>
 /// <param name="reader">The stream to read from.</param>
 public ThirdGenLanguagePackLoader(ICacheFile cacheFile, ThirdGenLanguageGlobals languageGlobals,
                                   EngineDescription buildInfo, IReader reader)
 {
     _languageGlobals = languageGlobals;
     _languages       = languageGlobals.Languages.Where(l => l.StringCount != 0).Select(l => l.Language).ToList();
     LoadGroups(reader, cacheFile, buildInfo);
 }