Interface IGameObjectRepository
Represents a simple repository for querying game objects by name or class.
Namespace: Microsoft.XboxStudios.GameStateTracker
Assembly: GameStateTracker.Abstractions.dll
Syntax
public interface IGameObjectRepository
Methods
View SourceGetGameObjects(ObjectInfo, CancellationToken)
Retrieves all objects matching the given query.
Declaration
Task<IEnumerable<IGameObject>> GetGameObjects(ObjectInfo query, CancellationToken token = default)
Parameters
Type | Name | Description |
---|---|---|
ObjectInfo | query | The objects to look for. |
CancellationToken | token | The cancellation token. |
Returns
Type | Description |
---|---|
Task<IEnumerable<IGameObject>> | An enumeration of objects. |
ListGameObjects(ObjectInfo, CancellationToken)
Retrieves the description of all objects matching the given query.
Declaration
Task<IEnumerable<ObjectInfo>> ListGameObjects(ObjectInfo query, CancellationToken token = default)
Parameters
Type | Name | Description |
---|---|---|
ObjectInfo | query | The objects to look for. |
CancellationToken | token | The cancellation token. |
Returns
Type | Description |
---|---|
Task<IEnumerable<ObjectInfo>> | An enumeration of object descriptions. |