Interface IRoleBasedScenarioViewModel
Represents a role-based scenario.
Inherited Members
Namespace: Phoenix.BotBrain.Overmind
Assembly: Phoenix.Plugin.BotBrain.Overmind.dll
Syntax
public interface IRoleBasedScenarioViewModel : IScenarioTreeItem
Properties
View SourceCreateRequirementCommand
Gets the command to create a requirement.
Declaration
DelegateCommand<RequirementInfo> CreateRequirementCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<RequirementInfo> |
Requirements
Gets an enumeration of requirements.
Declaration
IEnumerable<IRequirement> Requirements { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IRequirement> |
Roles
Gets an enumeration of roles.
Declaration
IEnumerable<IRoleViewModel> Roles { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IRoleViewModel> |
Scenario
Gets or sets the scenario.
Declaration
IRoleBasedScenario Scenario { get; set; }
Property Value
Type | Description |
---|---|
IRoleBasedScenario |
Status
Gets the scenario status.
Declaration
ScenarioStatus Status { get; }
Property Value
Type | Description |
---|---|
ScenarioStatus |
Methods
View SourceAddRole(IRole)
Adds a role to the scenario.
Declaration
void AddRole(IRole role)
Parameters
Type | Name | Description |
---|---|---|
IRole | role | The role to add. |
OnStatusChanged(ScenarioStatusChangedEventArgs)
Updates the scenario status in the UI.
Declaration
void OnStatusChanged(ScenarioStatusChangedEventArgs statusChanged)
Parameters
Type | Name | Description |
---|---|---|
ScenarioStatusChangedEventArgs | statusChanged | The status changed event args. |
RemoveRole(IRoleViewModel)
Removes a role from the scenario.
Declaration
void RemoveRole(IRoleViewModel role)
Parameters
Type | Name | Description |
---|---|---|
IRoleViewModel | role | The role view model to remove. |