Skip to content
CRUSHFORMV1.1.0
GET IT ON FAB

REFERENCESUBSYSTEMS AND LIBRARIES

UCFHostRegistry

MODULECrushformINCLUDECFHostRegistry.hPARENTUWorldSubsystem

The world's table of hosts: which object answers for an actor under an interface, and the wheel contacts of a host for each frame. Without the table an actor answers for itself, and the contacts are gathered at every call.

Functions

AUTHORITY · server, every machineLOCAL · this machinePURE · read only
void Register(const AActor& Actor, const UClass& Interface, UObject& Host)
C++ ONLY

Makes Host answer Interface for Actor. Refused with an error log when Host does not implement Interface. A second host for the same pair replaces the first, with a warning naming both. Registering the same host again changes nothing and logs nothing.

void Unregister(const AActor& Actor, const UClass& Interface, const UObject& Host)
C++ ONLY

Removes the registration of Actor and Interface, but only while it still holds Host.

UObject* FindHost(const AActor* Actor, const UClass& Interface)
C++ ONLY

The host registered for Actor, else Actor itself when it implements Interface, else null. A world without the registry (an editor preview) gives the same answer without the first step.

const TArray<FCFWheelContact>& GetFrameWheelContacts(UObject& Host, TFunctionRef<void(TArray<FCFWheelContact>&)> Gather)
C++ ONLY

A scripted wheel host's contacts for this frame: Gather runs at most once per GFrameCounter per host, every caller of the frame gets the same array. Without the registry Gather runs every call.