Show / Hide Table of Contents

Class UnrealObjectRepositoryWithHooks

A generic game object repository implementation using RPC hooks. It uses special properties named "location" and "rotation" to retrieve actor data.

Inheritance
object
GenericGameObjectRepositoryBase
UnrealObjectRepository
UnrealObjectRepositoryWithHooks
Implements
IGenericGameObjectRepository
IGameObjectRepository
IEventPublisher<IGameEventArgs>
IGameObjectFormatterProvider
Inherited Members
UnrealObjectRepository.EventReceived
UnrealObjectRepository.IncludeBlueprintClasses
UnrealObjectRepository.Formatter
UnrealObjectRepository.Client
UnrealObjectRepository.ListPropertiesByClass(string, string, CancellationToken)
UnrealObjectRepository.GetClassTree(CancellationToken)
UnrealObjectRepository.PopulateClassProperties(IClassManager, string, string)
UnrealObjectRepository.GetQueryParameters(in ObjectInfo)
UnrealObjectRepository.Publish(object, IGameEventArgs)
UnrealObjectRepository.GetProperty(ObjectInfo, string, CancellationToken)
GenericGameObjectRepositoryBase.PropertyManager
GenericGameObjectRepositoryBase.UpdateGameObjects(ObjectInfo, IReadOnlyCollection<string>, IReadOnlyCollection<IGameObject>, CancellationToken)
GenericGameObjectRepositoryBase.GetGameObjects(ObjectInfo, CancellationToken)
GenericGameObjectRepositoryBase.PopulateClassTreeProperties(IClassManager, string, ILookup<string, string>)
GenericGameObjectRepositoryBase.GenerateDerivedClassTree<T>(Func<Type, string>)
GenericGameObjectRepositoryBase.UpdateGameObjectProperties(ObjectInfo, IReadOnlyCollection<string>, IReadOnlyCollection<IGameObject>, CancellationToken)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.GameStateTracker.Unreal
Assembly: GameStateTracker.Unreal.dll
Syntax
public class UnrealObjectRepositoryWithHooks : UnrealObjectRepository, IGenericGameObjectRepository, IGameObjectRepository, IEventPublisher<IGameEventArgs>, IGameObjectFormatterProvider
Remarks

Initializes a new instance of the UnrealObjectRepositoryWithHooks class.

Constructors

View Source

UnrealObjectRepositoryWithHooks(IUnrealHookClient)

A generic game object repository implementation using RPC hooks. It uses special properties named "location" and "rotation" to retrieve actor data.

Declaration
public UnrealObjectRepositoryWithHooks(IUnrealHookClient client)
Parameters
Type Name Description
IUnrealHookClient client

The game client.

Remarks

Initializes a new instance of the UnrealObjectRepositoryWithHooks class.

Properties

View Source

PreferActorHook

Gets or sets whether to use the actor-specific hook even if the actor location property is not being retrieved.

Declaration
public bool? PreferActorHook { get; set; }
Property Value
Type Description
bool?

Methods

View Source

GetProperties(ObjectInfo, IReadOnlyCollection<string>, CancellationToken)

Retrieves property values for all objects matching the given query.

Declaration
public override Task<IEnumerable<QueryResult>> GetProperties(ObjectInfo query, IReadOnlyCollection<string> properties, CancellationToken token = default)
Parameters
Type Name Description
ObjectInfo query

The objects to look for.

IReadOnlyCollection<string> properties

The properties to retrieve.

CancellationToken token

The cancellation token.

Returns
Type Description
Task<IEnumerable<QueryResult>>

An enumeration of each matching object and property value.

Overrides
UnrealObjectRepository.GetProperties(ObjectInfo, IReadOnlyCollection<string>, CancellationToken)
View Source

ListGameObjects(ObjectInfo, CancellationToken)

Retrieves the description of all objects matching the given query.

Declaration
public override Task<IEnumerable<ObjectInfo>> ListGameObjects(ObjectInfo query, CancellationToken token = default)
Parameters
Type Name Description
ObjectInfo query

The objects to look for.

CancellationToken token

The cancellation token.

Returns
Type Description
Task<IEnumerable<ObjectInfo>>

An enumeration of object descriptions.

Overrides
UnrealObjectRepository.ListGameObjects(ObjectInfo, CancellationToken)
View Source

UpdateGameObjectsExcept(ObjectInfo, IReadOnlyCollection<string>, IReadOnlyCollection<IGameObject>?, CancellationToken)

Updates properties for the queried objects, skipping properties which are excluded.

Declaration
public override Task<IEnumerable<IGameObject>> UpdateGameObjectsExcept(ObjectInfo query, IReadOnlyCollection<string> exclude, IReadOnlyCollection<IGameObject>? existing = null, CancellationToken token = default)
Parameters
Type Name Description
ObjectInfo query

The objects to look for.

IReadOnlyCollection<string> exclude

The properties to skip retrieving.

IReadOnlyCollection<IGameObject> existing

The existing objects to merge with.

CancellationToken token

The cancellation token.

Returns
Type Description
Task<IEnumerable<IGameObject>>

An enumeration of updated objects.

Overrides
GenericGameObjectRepositoryBase.UpdateGameObjectsExcept(ObjectInfo, IReadOnlyCollection<string>, IReadOnlyCollection<IGameObject>?, CancellationToken)

Implements

IGenericGameObjectRepository
IGameObjectRepository
IEventPublisher<T>
IGameObjectFormatterProvider
  • View Source
In this article
Back to top Generated by DocFX