/// <summary> /// gets reference to array element in Me.Totems[] corresponding to WoWTotemType of wt. Return is always non-null and does not indicate totem existance /// </summary> /// <param name="wt">WoWTotem of slot to reference</param> /// <returns>WoWTotemInfo reference</returns> public static WoWTotemInfo GetTotem(WoWTotem wt) { WoWTotemInfo ti = GetTotem(wt.ToType()); if (ti.WoWTotem != wt) { return(null); } return(ti); }
/// <summary> /// gets reference to array element in Me.Totems[] corresponding to WoWTotemType of wt. Return is always non-null and does not indicate totem existance /// </summary> /// <param name="wt">WoWTotem of slot to reference</param> /// <returns>WoWTotemInfo reference</returns> public static WoWTotemInfo GetTotem(WoWTotem wt) { WoWTotemInfo ti = GetTotem(wt.ToType()); if (ti.WoWTotem != wt) return null; return ti; }
/// <summary> /// gets reference to array element in Me.Totems[] corresponding to WoWTotemType of wt. Return is always non-null and does not indicate totem existance /// </summary> /// <param name="wt">WoWTotem of slot to reference</param> /// <returns>WoWTotemInfo reference</returns> public static WoWTotemInfo GetTotem(WoWTotem wt) { return(GetTotem(wt.ToType())); }
/// <summary> /// gets reference to array element in Me.Totems[] corresponding to WoWTotemType of wt. Return is always non-null and does not indicate totem existance /// </summary> /// <param name="wt">WoWTotem of slot to reference</param> /// <returns>WoWTotemInfo reference</returns> public static WoWTotemInfo GetTotem(WoWTotem wt) { return GetTotem(wt.ToType()); }