public override void Convert(byte[] rawData) { var entry = new GlyphPropertiesEntry(); entry.Id = GetUInt32(rawData, 0); entry.SpellId = GetUInt32(rawData, 1); entry.TypeFlags = GetUInt32(rawData, 2); entry.Unk1 = GetUInt32(rawData, 3); GlyphInfoHolder.GlyphProperties.Add(entry.Id, entry); }
public override void Convert(byte[] rawData) { GlyphPropertiesEntry glyphPropertiesEntry = new GlyphPropertiesEntry(); glyphPropertiesEntry.Id = DBCRecordConverter.GetUInt32(rawData, 0); glyphPropertiesEntry.SpellId = DBCRecordConverter.GetUInt32(rawData, 1); glyphPropertiesEntry.TypeFlags = DBCRecordConverter.GetUInt32(rawData, 2); glyphPropertiesEntry.Unk1 = DBCRecordConverter.GetUInt32(rawData, 3); GlyphInfoHolder.GlyphProperties.Add(glyphPropertiesEntry.Id, glyphPropertiesEntry); }
public void ApplyGlyph(byte slot, GlyphPropertiesEntry gp) { //check if there is a already a glyph in there and remove it RemoveGlyph(slot); //slap in the new one SpellCast.Trigger(SpellHandler.Get(gp.SpellId), this); SetGlyph(slot, gp.Id); CurrentSpecProfile.GlyphIds[slot] = gp.Id; TalentHandler.SendTalentGroupList(m_talents); //Todo: save it somewhere and dualspec related things! }