예제 #1
0
        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();
        }
예제 #2
0
 public void AddActionButton(character_action characterAction)
 {
     CharacterActions.Add(characterAction);
     CharacterDatabase.SaveChanges();
 }