Beispiel #1
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>
 internal IAddon GetRequiredAddon(RequiredAddon addon)
 {
     return(this._addonsDictionary.ContainsKey(addon.ToString())
                ? this._addonsDictionary[addon.ToString()]
                : null);
 }
Beispiel #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);
 }
Beispiel #3
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;
		}