Show / Hide Table of Contents

Class APlayerInfoBase<TPawn>

A class representing an Unreal Engine APlayerState.

Inheritance
object
GenericGameObject
UObject
AActor
APlayerInfoBase<TPawn>
APlayerInfo
Implements
IGameObject
INotifyPropertyChanged
IActor
IObject
Inherited Members
AActor.CustomProperties
AActor.Rotation
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("PlayerState")]
[GameProperty(new string[] { "PlayerName" })]
public class APlayerInfoBase<TPawn> : AActor, IGameObject, INotifyPropertyChanged, IActor, IObject where TPawn : APawn
Type Parameters
Name Description
TPawn

The pawn class type.

Constructors

View Source

APlayerInfoBase(IGameObject)

Initializes a new instance of the APlayerInfoBase<TPawn> class.

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

The game object to encapsulate.

Properties

View Source

Location

Gets the player's cached location.

Declaration
public override Vector3? Location { get; }
Property Value
Type Description
Vector3?

A location vector.

Overrides
AActor.Location
View Source

Pawn

Gets the player's controlled pawn.

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

PlayerName

Gets the player name.

Declaration
public string? PlayerName { get; }
Property Value
Type Description
string

Methods

View Source

GetLocation(TimeSpan, CancellationToken)

Gets the player's location.

Declaration
public override Task<Vector3?> GetLocation(TimeSpan maxAge, CancellationToken token = default)
Parameters
Type Name Description
TimeSpan maxAge

The maximum age of the object, if it exists in the cache.

CancellationToken token

The cancellation token.

Returns
Type Description
Task<Vector3?>

A location vector.

Overrides
AActor.GetLocation(TimeSpan, CancellationToken)
View Source

GetPawn(TimeSpan, CancellationToken)

Gets the player's controlled pawn.

Declaration
public Task<TPawn?> GetPawn(TimeSpan maxAge, CancellationToken token = default)
Parameters
Type Name Description
TimeSpan maxAge

The maximum age of the object, if it exists in the cache.

CancellationToken token

The cancellation token.

Returns
Type Description
Task<TPawn>

A pawn object.

Implements

IGameObject
INotifyPropertyChanged
IActor
IObject

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