Show / Hide Table of Contents

Class AControllerBase<TPlayerInfo, TPawn>

A class representing an Unreal Engine AController.

Inheritance
object
GenericGameObject
UObject
AActor
AControllerBase<TPlayerInfo, TPawn>
AController
APlayerControllerBase<TPlayerInfo, TPawn>
Implements
IGameObject
INotifyPropertyChanged
IActor
IObject
IController
Inherited Members
AActor.CustomProperties
AActor.Location
AActor.Rotation
AActor.GetLocation(TimeSpan, CancellationToken)
AActor.GetRotation(TimeSpan, CancellationToken)
UObject.Name
UObject.LinkedObjectInfo(string)
GenericGameObject.PropertyChanged
GenericGameObject.Info
GenericGameObject.GameState
GenericGameObject.Properties
GenericGameObject.this[string]
GenericGameObject.Equals(object)
GenericGameObject.GetHashCode()
GenericGameObject.ToString()
GenericGameObject.OnGameObjectPropertyChanged(object, PropertyChangedEventArgs)
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Microsoft.XboxStudios.GameStateTracker.Unreal
Assembly: GameStateTracker.Unreal.dll
Syntax
[GameClass("Controller")]
[GameProperty(new string[] { "Pawn", "PlayerState" })]
public class AControllerBase<TPlayerInfo, TPawn> : AActor, IGameObject, INotifyPropertyChanged, IActor, IObject, IController where TPlayerInfo : APlayerInfo where TPawn : APawn
Type Parameters
Name Description
TPlayerInfo

The player info class type.

TPawn

The pawn class type.

Constructors

View Source

AControllerBase(IGameObject)

Initializes a new instance of the AControllerBase<TPlayerInfo, TPawn> class.

Declaration
protected AControllerBase(IGameObject gameObject)
Parameters
Type Name Description
IGameObject gameObject

The game object to encapsulate.

Properties

View Source

Pawn

Gets the cached controlled pawn.

Declaration
public TPawn? Pawn { get; }
Property Value
Type Description
TPawn
View Source

PawnInfo

Gets the object info of the controlled pawn.

Declaration
protected ObjectInfo PawnInfo { get; }
Property Value
Type Description
ObjectInfo
View Source

PlayerState

Gets the cached player state.

Declaration
public TPlayerInfo? PlayerState { get; }
Property Value
Type Description
TPlayerInfo
View Source

PlayerStateInfo

Gets the object info of the associated player.

Declaration
protected ObjectInfo PlayerStateInfo { get; }
Property Value
Type Description
ObjectInfo

Methods

View Source

GetPawn(TimeSpan)

Gets the controlled pawn.

Declaration
public Task<TPawn?> 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<TPawn>

A pawn object.

View Source

GetPlayerState(TimeSpan)

Gets the player state.

Declaration
public Task<TPlayerInfo?> 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<TPlayerInfo>

A player state object.

Implements

IGameObject
INotifyPropertyChanged
IActor
IObject
IController

Extension Methods

IGameObjectExtensions.ClassName(IGameObject)
IGameObjectExtensions.InfoEquals(IGameObject, IGameObject?)
IGameObjectExtensions.InfoEquals(IGameObject, in ObjectInfo)
IGameObjectExtensions.ObjectName(IGameObject)
IGameObjectExtensions.Matches(IGameObject, IClassManager, in ObjectInfo)
  • View Source
In this article
Back to top Generated by DocFX