Show / Hide Table of Contents

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 Source

GetGameObjects(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.

View Source

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.

  • View Source
In this article
Back to top Generated by DocFX