Class DeviceState
Represents the state of a device bot controlled by an overmind.
Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain.Overmind
Assembly: BotBrain.Overmind.dll
Syntax
public class DeviceState
Remarks
Initializes a new instance of the DeviceState class.
Constructors
View SourceDeviceState(IDevice, IBotBrain?, IAutomatedBot?, object?)
Represents the state of a device bot controlled by an overmind.
Declaration
public DeviceState(IDevice device, IBotBrain? brain = null, IAutomatedBot? bot = null, object? gameState = null)
Parameters
Type | Name | Description |
---|---|---|
IDevice | device | The bot's device. |
IBotBrain | brain | The bot brain. |
IAutomatedBot | bot | The bot. |
object | gameState | The game state. |
Remarks
Initializes a new instance of the DeviceState class.
Properties
View SourceBot
Gets the current bot, which may not exist if a game isn't running.
Declaration
public IAutomatedBot? Bot { get; }
Property Value
Type | Description |
---|---|
IAutomatedBot |
Brain
Gets the current bot brain.
Declaration
public IBotBrain? Brain { get; }
Property Value
Type | Description |
---|---|
IBotBrain |
Device
Gets the bot's device.
Declaration
public IDevice Device { get; }
Property Value
Type | Description |
---|---|
IDevice |
GameState
Gets the current game state.
Declaration
public object? GameState { get; }
Property Value
Type | Description |
---|---|
object |
Methods
View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |