Show / Hide Table of Contents

Class UnityGameState

A class representing game state for Unity.

Inheritance
object
StateBase<ObjectInfo, IGameObject>
GameStateBase
GenericGameState
UnityGameState
Implements
IDisposable
IGenericGameState
IGameState
IState<ObjectInfo, IGameObject>
IReadOnlyCollection<IGameObject>
IEnumerable<IGameObject>
IEnumerable
IEventAggregator<IGameEventArgs>
IEventPublisher<IGameEventArgs>
IHasUpdateTime
IQueryResultConsumer<IGameObject>
IEventProcessor
Inherited Members
GenericGameState.GameStateChangedEventName
GenericGameState.ClassManager
GenericGameState.Repository
GenericGameState.MergeResult(in QueryResult)
GenericGameState.GetAll<T>(string, TimeSpan, CancellationToken)
GenericGameState.GetAll<T>(TimeSpan, CancellationToken)
GenericGameState.Get<T>(ObjectInfo, TimeSpan, CancellationToken)
GenericGameState.Get<T>(string, TimeSpan, CancellationToken)
GenericGameState.Get<T>(TimeSpan, CancellationToken)
GenericGameState.Existing<T>(string)
GenericGameState.Existing(ObjectInfo)
GenericGameState.ClearAll<T>(params string[])
GenericGameState.Clear<T>(ObjectInfo?)
GenericGameState.ProcessEvents()
GenericGameState.GetObjects(ObjectInfo, CancellationToken)
GenericGameState.Match(IGameObject, string)
GenericGameState.HandleGameStateChangedEvent(object, IGameEventArgs)
GenericGameState.CheckQueryResultChangesGameClass(in QueryResult)
GameStateBase.EventReceived
GameStateBase.RecentEvents
GameStateBase.GameCache
GameStateBase.EventAggregator
GameStateBase.GetAll<T>(ObjectInfo, TimeSpan, CancellationToken)
GameStateBase.Existing<T>(ObjectInfo?)
GameStateBase.ExistingAll<T>(string)
GameStateBase.Clear(ObjectInfo?)
GameStateBase.ClearEvents()
GameStateBase.Match(IGameObject, in ObjectInfo)
GameStateBase.GetObject(ObjectInfo, CancellationToken)
GameStateBase.Set(in ObjectInfo, IGameObject)
GameStateBase.PublishEvent(object, IGameEventArgs)
StateBase<ObjectInfo, IGameObject>.Logger
StateBase<ObjectInfo, IGameObject>.UpdateTime
StateBase<ObjectInfo, IGameObject>.Count
StateBase<ObjectInfo, IGameObject>.IsUpdateInProgress
StateBase<ObjectInfo, IGameObject>.Cache
StateBase<ObjectInfo, IGameObject>.Semaphore
StateBase<ObjectInfo, IGameObject>.UpdateProcessor
StateBase<ObjectInfo, IGameObject>.Get(ObjectInfo, TimeSpan, CancellationToken)
StateBase<ObjectInfo, IGameObject>.Existing(ObjectInfo)
StateBase<ObjectInfo, IGameObject>.Clear(ObjectInfo)
StateBase<ObjectInfo, IGameObject>.WaitForUpdateFinished()
StateBase<ObjectInfo, IGameObject>.Dispose()
StateBase<ObjectInfo, IGameObject>.GetEnumerator()
StateBase<ObjectInfo, IGameObject>.GetObject(ObjectInfo, CancellationToken)
StateBase<ObjectInfo, IGameObject>.Set(in ObjectInfo, IGameObject)
StateBase<ObjectInfo, IGameObject>.AgeObject(ObjectInfo)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.GameStateTracker.Unity
Assembly: GameStateTracker.Unity.dll
Syntax
public class UnityGameState : GenericGameState, IDisposable, IGenericGameState, IGameState, IState<ObjectInfo, IGameObject>, IReadOnlyCollection<IGameObject>, IEnumerable<IGameObject>, IEnumerable, IEventAggregator<IGameEventArgs>, IEventPublisher<IGameEventArgs>, IHasUpdateTime, IQueryResultConsumer<IGameObject>, IEventProcessor
Remarks

Initializes a new instance of the UnityGameState class.

Constructors

View Source

UnityGameState(IGenericGameObjectRepository, IClassManager?, ILogger<UnityGameState>?, IGameObjectCache?)

A class representing game state for Unity.

Declaration
public UnityGameState(IGenericGameObjectRepository repository, IClassManager? classManager = null, ILogger<UnityGameState>? logger = null, IGameObjectCache? cache = null)
Parameters
Type Name Description
IGenericGameObjectRepository repository

The generic object repository.

IClassManager classManager

The class manager.

ILogger<UnityGameState> logger

The logger to use.

IGameObjectCache cache

The cache to use to store game objects.

Remarks

Initializes a new instance of the UnityGameState class.

Implements

IDisposable
IGenericGameState
IGameState
IState<TKey, TValue>
IReadOnlyCollection<T>
IEnumerable<T>
IEnumerable
IEventAggregator<T>
IEventPublisher<T>
IHasUpdateTime
IQueryResultConsumer<T>
IEventProcessor

Extension Methods

IQueryResultConsumerExtensions.MergeResults<T>(IQueryResultConsumer<T>, IEnumerable<QueryResult>?)
IGameStateExtensions.GetLocalPlayerPawn<T>(IGameState, int, TimeSpan)
IGameStateExtensions.GetLocalPlayerState<T>(IGameState, int, TimeSpan)
IGameStateExtensions.GetLocalPlayer<T>(IGameState, int, TimeSpan)
IGameStateExtensions.GetPlayerLocation<T>(IGameState, int, TimeSpan)
IGameStateExtensions.LocalPlayer(IGameState, int)
IGameStateExtensions.LocalPlayerState(IGameState, int)
IGameStateExtensions.OrderByNearest<T>(IGameState, int, IEnumerable<T>)
IGameStateExtensions.PlayerDistanceTo(IGameState, int, IActor)
IGameStateExtensions.PlayerDistanceTo(IGameState, int, Vector3?)
IGameStateExtensions.PlayerLocation(IGameState, int)
IEnumerableExtensions.WithoutLast<T>(IEnumerable<T>)
  • View Source
In this article
Back to top Generated by DocFX