Interface IGameObject
An interface representing a game object containing properties with string keys and values.
Inherited Members
Namespace: Microsoft.XboxStudios.GameStateTracker
Assembly: GameStateTracker.Abstractions.dll
Syntax
public interface IGameObject : INotifyPropertyChanged
Properties
View SourceGameState
Gets or sets the game state associated with the game object.
Declaration
IGameState? GameState { get; set; }
Property Value
Type | Description |
---|---|
IGameState |
Info
Gets all of the necessary information to identify the object.
Declaration
ObjectInfo Info { get; }
Property Value
Type | Description |
---|---|
ObjectInfo |
this[string]
Gets or sets the value of a property with the given name.
Declaration
object? this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
string | key | The property name. |
Property Value
Type | Description |
---|---|
object | The property value, or null if no property was found. |
Properties
Gets a collection of property names for the game object.
Declaration
IReadOnlyCollection<string> Properties { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<string> |