/// <summary> /// Returns the first element that uses the activator passed /// </summary> /// <param name="a">The activator to check for</param> /// <returns>The index of the first element that uses the activator passed</returns> public int GetActivatorFirstElementIndex(Buff.Activator a) { return(indicies[(int)a]); }
private int[] indicies = new int[5];//number must always be the size of activators /// <summary> /// Returns the number of buffs that use the activator passed /// </summary> /// <param name="a">Activator to check</param> /// <returns>Returns the number of buffs that use the activator passed</returns> public int GetActivatorLength(Buff.Activator a) { int index = (int)a + 1 >= indicies.Length ? indicies.Length - 1 : (int)a + 1; return(indicies[index] - indicies[(int)a]); }