Encapsulate UNIT_CHANNEL_* fields

This commit is contained in:
hondacrx
2017-11-17 16:23:55 -05:00
parent aa0ec9a021
commit 6a0ae0c3a6
4 changed files with 13 additions and 5 deletions
+5
View File
@@ -2228,6 +2228,11 @@ namespace Game.Entities
return !GetCharmerGUID().IsEmpty() ? GetCharmer() : GetOwner();
}
public uint GetChannelSpellId() { return GetUInt32Value(UnitFields.ChannelSpell); }
public void SetChannelSpellId(uint channelSpellId) { SetUInt32Value(UnitFields.ChannelSpell, channelSpellId); }
public uint GetChannelSpellXSpellVisualId() { return GetUInt32Value(UnitFields.ChannelSpellXSpellVisual);}
public void SetChannelSpellXSpellVisualId(uint channelSpellXSpellVisualId) { SetUInt32Value(UnitFields.ChannelSpellXSpellVisual, channelSpellXSpellVisualId); }
public List<ObjectGuid> GetChannelObjects() { return GetDynamicStructuredValues<ObjectGuid>(UnitDynamicFields.ChannelObjects); }
public void AddChannelObject(ObjectGuid guid) { AddDynamicStructuredValue(UnitDynamicFields.ChannelObjects, guid); }