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); }
public CharacterActionGroup(CharacterActionTree tree, CharacterActionGroup group) { this.Tree = tree; this.Group = group; }
public CharacterAction(CharacterActionGroup group) { }