Show / Hide Table of Contents

Class DeviceState

Represents the state of a device bot controlled by an overmind.

Inheritance
object
DeviceState
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Microsoft.XboxStudios.BotBrain.Overmind
Assembly: BotBrain.Overmind.dll
Syntax
public class DeviceState
Remarks

Initializes a new instance of the DeviceState class.

Constructors

View Source

DeviceState(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 Source

Bot

Gets the current bot, which may not exist if a game isn't running.

Declaration
public IAutomatedBot? Bot { get; }
Property Value
Type Description
IAutomatedBot
View Source

Brain

Gets the current bot brain.

Declaration
public IBotBrain? Brain { get; }
Property Value
Type Description
IBotBrain
View Source

Device

Gets the bot's device.

Declaration
public IDevice Device { get; }
Property Value
Type Description
IDevice
View Source

GameState

Gets the current game state.

Declaration
public object? GameState { get; }
Property Value
Type Description
object

Methods

View Source

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the current object.

Overrides
object.ToString()
  • View Source
In this article
Back to top Generated by DocFX