Interface IModifyBrainAction<TState, TBot, TAction>
An interface for special bot actions that have access to the brain.
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Core.dll
Syntax
public interface IModifyBrainAction<TState, TBot, TAction> where TBot : IAutomatedBot<TAction>
Type Parameters
Name | Description |
---|---|
TState | A title-specific state object. |
TBot | A title-specific bot object that implements IAutomatedBot<TAction>. |
TAction | The title-specific bot action that implements IEquatable<T>. |
Methods
View SourceRun(IBotBrain<TState, TBot, TAction>, TBot)
Runs the action.
Declaration
Task Run(IBotBrain<TState, TBot, TAction> brain, TBot bot)
Parameters
Type | Name | Description |
---|---|---|
IBotBrain<TState, TBot, TAction> | brain | The brain. |
TBot | bot | The bot. |
Returns
Type | Description |
---|---|
Task | A task. |