Class UnityGameState
A class representing game state for Unity.
Implements
Inherited Members
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 SourceUnityGameState(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.