Example #1
0
        /// <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);
        }
Example #2
0
 /// <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;
 }
Example #3
0
 /// <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()));
 }
Example #4
0
 /// <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());
 }