Class TestAutomatedBot
A test bot that runs enum-based actions.
Inherited Members
AutomatedBot<TestAutomatedBot, TestBotAction>.StartExecution<T>(IOperation<T>, T, CancellationToken)
EventPublisher<BotActionEventArgs>.EventReceived
Namespace: Microsoft.XboxStudios.BotBrain.Samples.EnumBased
Assembly: BotBrain.Samples.dll
Syntax
public class TestAutomatedBot : AutomatedBot<TestAutomatedBot, TestBotAction>, IBotWithEvents<TestBotAction>, IBotWithEvents, IBotWithQueue<TestBotAction>, IBotWithQueue, IAutomatedBot<TestBotAction>, IAutomatedBot, IHasParameters, IDisposable, IEventAggregator<BotActionEventArgs>, IEventPublisher<BotActionEventArgs>, IEventProcessor
Constructors
View SourceTestAutomatedBot(string?)
Initializes a new instance of the TestAutomatedBot class.
Declaration
public TestAutomatedBot(string? name = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | The bot name. |
Properties
View SourceRecentEvents
Gets a read-only list of recent events.
Declaration
public IReadOnlyList<BotActionEventArgs> RecentEvents { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<BotActionEventArgs> |
Methods
View SourceClearEvents()
Clears the list of events.
Declaration
public void ClearEvents()
ProcessEvents()
Processes an internal buffer of events.
Declaration
public void ProcessEvents()
Implements
Microsoft.XboxStudios.GameStateTracker.Events.IEventAggregator<T>
Microsoft.XboxStudios.GameStateTracker.Events.IEventPublisher<T>
Microsoft.XboxStudios.GameStateTracker.Events.IEventProcessor