Interface IController
An interface representing an Unreal Engine pawn controller.
Namespace: Microsoft.XboxStudios.GameStateTracker.Unreal
Assembly: GameStateTracker.Unreal.dll
Syntax
public interface IController
Properties
View SourcePawn
Gets the cached controlled pawn.
Declaration
APawn? Pawn { get; }
Property Value
Type | Description |
---|---|
APawn |
PlayerState
Gets the cached player state.
Declaration
APlayerInfo? PlayerState { get; }
Property Value
Type | Description |
---|---|
APlayerInfo |
Methods
View SourceGetPawn(TimeSpan)
Gets the controlled pawn.
Declaration
Task<APawn?> GetPawn(TimeSpan maxAge)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | maxAge | The maximum age of the object, if it exists in the cache. |
Returns
Type | Description |
---|---|
Task<APawn> | A pawn object. |
GetPlayerState(TimeSpan)
Gets the player state.
Declaration
Task<APlayerInfo?> GetPlayerState(TimeSpan maxAge)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | maxAge | The maximum age of the object, if it exists in the cache. |
Returns
Type | Description |
---|---|
Task<APlayerInfo> | A player state object. |