示例#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)
 {
 }