private void AddCharacterCreationActions() { List <playercreateinfo_action> newCreateInfoActions = PlayerCreateActions.Where(s => s.race == Owner.Character.race && s.@class == Owner.Character.@class).ToList(); newCreateInfoActions.ForEach(a => CharacterActions.Add(new character_action() { guid = this.Owner.ObjectGUID.Low, action = a.action, button = (byte)a.button, type = (byte)a.type })); CharacterDatabase.SaveChanges(); }
public void AddActionButton(character_action characterAction) { CharacterActions.Add(characterAction); CharacterDatabase.SaveChanges(); }