コード例 #1
0
ファイル: Mainform.cs プロジェクト: ShawnDaGeek/bukkitgui2
 /// <summary>
 ///     Get the instance of a loaded core addon
 /// </summary>
 /// <param name="addon">The addon to load</param>
 /// <returns>Returns the addon if possible, null if the addon isn't loaded</returns>
 internal IAddon GetRequiredAddon(RequiredAddon addon)
 {
     return(this._addonsDictionary.ContainsKey(addon.ToString())
                ? this._addonsDictionary[addon.ToString()]
                : null);
 }
コード例 #2
0
 /// <summary>
 ///     Get the instance of a loaded core addon
 /// </summary>
 /// <param name="addon">The addon to load</param>
 /// <returns>Returns the addon if possible, null if the addon isn't loaded</returns>
 public static IAddon GetRequiredAddon(RequiredAddon addon)
 {
     return(AddonsDictionary.ContainsKey(addon.ToString())
                         ? AddonsDictionary[addon.ToString()]
                         : null);
 }
コード例 #3
0
ファイル: AddonManager.cs プロジェクト: CaptainTF/bukkitgui2
		/// <summary>
		///     Get the instance of a loaded core addon
		/// </summary>
		/// <param name="addon">The addon to load</param>
		/// <returns>Returns the addon if possible, null if the addon isn't loaded</returns>
		public static IAddon GetRequiredAddon(RequiredAddon addon)
		{
			return AddonsDictionary.ContainsKey(addon.ToString())
				? AddonsDictionary[addon.ToString()]
				: null;
		}