Example #1
0
 /// <summary>
 /// Creates a new instance of <see cref="UtilityInfo"/> and associates it to a <see cref="UtilityAddon"/>.
 /// </summary>
 /// <param name="owner">The owner of this object if creating within 'UtilityAddon.GetUtilityInfo()' use "this" to specify the current object.</param>
 /// <param name="name">The name</param>
 /// <param name="uid">A Unique id</param>
 /// <param name="author">The author (Who made this Utility)</param>
 /// <param name="requiredChampions">An array of supported champions, if every champion is supported pass "null" or no value</param>
 public UtilityInfo(UtilityAddon owner, string name, string uid, string author, params Champion[] requiredChampions)
 {
     Uid    = uid;
     Owner  = owner;
     Name   = name;
     Author = author;
     SupportsAllChampions = requiredChampions.Length > 0;
     RequiredChampions    = requiredChampions;
 }
Example #2
0
 /// <summary>
 /// Creates a new instance of <see cref="UtilityInfo"/> and associates it to a <see cref="UtilityAddon"/>.
 /// </summary>
 /// <param name="owner">The owner of this object if creating within 'UtilityAddon.GetUtilityInfo()' use "this" to specify the current object.</param>
 /// <param name="name">The name</param>
 /// <param name="uid">A Unique id</param>
 /// <param name="author">The author (Who made this Utility)</param>
 /// <param name="requiredChampions">An array of supported champions, if every champion is supported pass "null" or no value</param>
 public UtilityInfo(UtilityAddon owner, string name, string uid, string author, params Champion[] requiredChampions)
 {
     Uid = uid;
     Owner = owner;
     Name = name;
     Author = author;
     SupportsAllChampions = requiredChampions.Length > 0;
     RequiredChampions = requiredChampions;
 }
Example #3
0
 /// <summary>
 /// Creates a new instance of <see cref="UtilityInfo"/> and associates it to a <see cref="UtilityAddon"/>.
 /// </summary>
 /// <param name="owner">The owner of this object if creating within 'UtilityAddon.GetUtilityInfo()' use "this" to specify the current object.</param>
 /// <param name="name">The name</param>
 /// <param name="uid">A Unique id</param>
 /// <param name="author">The author (Who made this Utility)</param>
 /// <param name="requiredChampions">An array of supported champions, if every champion is supported pass "null" or no value</param>
 public UtilityInfo(UtilityAddon owner, string name, string uid, string author, params Champion[] requiredChampions)
 {
     Console.WriteLine(name + ": " + requiredChampions == null);
     Uid = uid;
     Owner = owner;
     Name = name;
     Author = author;
     SupportsAllChampions = requiredChampions.Length > 0;
     RequiredChampions = requiredChampions;
 }
Example #4
0
 /// <summary>
 /// Creates a new instance of <see cref="UtilityInfo"/> and associates it to a <see cref="UtilityAddon"/>.
 /// </summary>
 /// <param name="owner">The owner of this object if creating within 'UtilityAddon.GetUtilityInfo()' use "this" to specify the current object.</param>
 /// <param name="name">The name</param>
 /// <param name="uid">A Unique id</param>
 /// <param name="author">The author (Who made this Utility)</param>
 /// <param name="requiredChampions">An array of supported champions, if every champion is supported pass "null" or no value</param>
 public UtilityInfo(UtilityAddon owner, string name, string uid, string author, params Champion[] requiredChampions)
 {
     Console.WriteLine(name + ": " + requiredChampions == null);
     Uid    = uid;
     Owner  = owner;
     Name   = name;
     Author = author;
     SupportsAllChampions = requiredChampions.Length > 0;
     RequiredChampions    = requiredChampions;
 }