Beispiel #1
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)
 {
     _buildInfo       = buildInfo;
     _languageGlobals = languageGlobals;
     _languages       = languageGlobals.Languages.Where(l => l.StringCount != 0).Select(l => l.Language).ToList();
     LoadGroups(reader, cacheFile);
 }
		/// <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)
		{
			_buildInfo = buildInfo;
			_languageGlobals = languageGlobals;
			_languages = languageGlobals.Languages.Where(l => l.StringCount != 0).Select(l => l.Language).ToList();
			LoadGroups(reader, cacheFile);
		}
 /// <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)
 {
     _buildInfo       = buildInfo;
     _languageGlobals = languageGlobals;
     _languages       = languageGlobals.Languages.Where(l => l.StringCount != 0).Select(l => l.Language).ToList();
     _sortByStringId  = buildInfo.Settings.GetSettingOrDefault("engineInfo/sortLocalesByStringId", false);
     LoadGroups(reader, cacheFile);
 }