Nexus.Client.Games.Morrowind.PluginManagement.Boss.BossSorter.BossSorter C# (CSharp) Метод

BossSorter() публичный Метод

A simple constructor that initializes the object with the given dependencies.
public BossSorter ( IEnvironmentInfo p_eifEnvironmentInfo, MorrowindGameMode p_gmdGameMode, FileUtil p_futFileUtility, string p_strMasterlistPath ) : System
p_eifEnvironmentInfo IEnvironmentInfo The application's envrionment info.
p_gmdGameMode MorrowindGameMode The game mode for which plugins are being managed.
p_futFileUtility Nexus.Client.Util.FileUtil The file utility class.
p_strMasterlistPath string The path to the masterlist file to use.
Результат System
		public BossSorter(IEnvironmentInfo p_eifEnvironmentInfo, MorrowindGameMode p_gmdGameMode, FileUtil p_futFileUtility, string p_strMasterlistPath)
		{
			EnvironmentInfo = p_eifEnvironmentInfo;
			GameMode = p_gmdGameMode;
			FileUtility = p_futFileUtility;

			string strBAPIPath = Path.Combine(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "data"), p_eifEnvironmentInfo.Is64BitProcess ? "boss64.dll" : "boss32.dll");

			m_ptrBossApi = LoadLibrary(strBAPIPath);
			if (m_ptrBossApi == IntPtr.Zero)
				throw new BossException(String.Format("Could not load BAPI library: {0}", strBAPIPath));

			LoadMethods();

			m_ptrBossDb = CreateBossDb();

			MasterlistPath = p_strMasterlistPath;
			UserlistPath = null;

			if (!String.IsNullOrEmpty(MasterlistPath) && File.Exists(MasterlistPath) ||
				!String.IsNullOrEmpty(UserlistPath) && File.Exists(UserlistPath))
				Load(MasterlistPath, UserlistPath);
		}