Skip to content

Commit

Permalink
Add IStateGroup.States
Browse files Browse the repository at this point in the history
  • Loading branch information
canton7 committed Aug 25, 2015
1 parent e74f8b6 commit 7043604
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/StateMechanic/IStateGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace StateMechanic
public interface IStateGroup
{
string Name { get; }
IReadOnlyList<IState> States { get; }
}

internal interface IStateGroup<TState> : IStateGroup
Expand Down
10 changes: 10 additions & 0 deletions src/StateMechanic/StateGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ public IReadOnlyList<State> States
get { return this.innerStateGroup.States; }
}

IReadOnlyList<IState> IStateGroup.States
{
get { return this.innerStateGroup.States; }
}

/// <summary>
/// Gets or sets the method called when the StateMachine enters this state
/// </summary>
Expand Down Expand Up @@ -152,6 +157,11 @@ public IReadOnlyList<State<TStateData>> States
get { return this.innerStateGroup.States; }
}

IReadOnlyList<IState> IStateGroup.States
{
get { return this.innerStateGroup.States; }
}

/// <summary>
/// Gets or sets the method called when the StateMachine enters this state
/// </summary>
Expand Down

0 comments on commit 7043604

Please sign in to comment.