Class TestAutomatedBot
A test bot that runs class-based actions.
Implements
IEventPublisher<BotActionEventArgs>
Inherited Members
EventPublisher<BotActionEventArgs>.EventReceived
Namespace: Microsoft.XboxStudios.BotBrain.Samples.ClassBased
Assembly: BotBrain.Samples.dll
Syntax
public class TestAutomatedBot : AutomatedBot<TestAutomatedBot, TestAction>, IEventPublisher<BotActionEventArgs>, IBotWithEvents<TestAction>, IBotWithEvents, IBotWithQueue<TestAction>, IBotWithQueue, IAutomatedBot<TestAction>, IAutomatedBot, IHasParameters, IDisposable
Constructors
View SourceTestAutomatedBot(IDevice?, string?)
Initializes a new instance of the TestAutomatedBot class.
Declaration
public TestAutomatedBot(IDevice? device = null, string? name = null)
Parameters
Type | Name | Description |
---|---|---|
IDevice | device | The device for the bot. |
string | name | The name for the bot. |
Properties
View SourceDevice
Gets the device associated with the bot.
Declaration
public IDevice? Device { get; }
Property Value
Type | Description |
---|---|
IDevice |
Remarks
The sample allows for a missing device for ease of testing.
Implements
Microsoft.XboxStudios.GameStateTracker.Events.IEventPublisher<T>