示例#1
0
 public WoWSpell(int id)
 {
     try
     {
         SpellRecord = WoWDB.GetTable(ClientDB.Spell).GetRow(id).GetStruct <SpellRec>();
     }
     catch
     {
         SpellRecord = default(SpellRec);
     }
 }
示例#2
0
        internal void Validate(IntPtr pointer)
        {
            Pointer = pointer;
            Entry   = Helper.Magic.ReadStruct <AuraStruct>(Pointer);
            ID      = Entry.AuraId;
            var SpellRow = WoWDB.GetTable(ClientDB.Spell).GetRow(Entry.AuraId);

            if (SpellRow != null)
            {
                Name = SpellRow.GetStruct <SpellRec>().Name;
            }
            else
            {
                Name = "unknown";
            }
        }