Пример #1
0
        private CharacterAction GetById(int actionId, CharacterActionGroup group)
        {
            CharacterAction characterAction = group.Where(a => a.Id == actionId).SingleOrDefault <CharacterAction>();

            if (characterAction != null)
            {
                return(characterAction);
            }

            foreach (CharacterActionGroup childGroup in group.Groups)
            {
                characterAction = GetById(actionId, group);
                if (characterAction != null)
                {
                    return(characterAction);
                }
            }

            return(null);
        }
Пример #2
0
 public CharacterActionGroup(CharacterActionTree tree, CharacterActionGroup group)
 {
     this.Tree  = tree;
     this.Group = group;
 }
Пример #3
0
 public CharacterAction(CharacterActionGroup group)
 {
 }