Owns a session's generated definitions, providers, scopes, and callers.
More...
#include <ModAPIRegistry.h>
|
|
| FRegistry () |
| | Creates a registry on the game thread.
|
|
| ~FRegistry () |
| | Revokes all derived bindings on the game thread.
|
| TModResult< FRegistration > | RegisterType (FTypeDescriptor Descriptor) |
| | Registers one generated type and its concrete calling table.
|
| TModResult< FScope > | OpenWorldScope (UWorld *World) |
| | Opens a scope for a live world.
|
| TModResult< FScope > | OpenPlayerScope (ULocalPlayer *Player, const FScope &WorldScope) |
| | Opens a local player scope in a particular world.
|
| TModResult< void > | CloseScope (const FScope &Scope) |
| | Closes a scope and invalidates its bindings.
|
| TModResult< FCaller > | CreateCaller (const FScope &Scope, TSet< FName > Permissions) |
| | Issues a caller with explicit host-granted permissions.
|
| TModResult< void > | RevokeCaller (const FCaller &Caller) |
| | Revokes a caller and all views issued to it.
|
| TModResult< FRegistration > | RegisterProvider (FName TypeId, const FScope &Scope, UObject *Instance) |
| | Registers an explicit service instance in a scope.
|
| TModResult< FObjectBinding > | BindProvider (FName TypeId, const TCHAR *Signature, const FCaller &Caller) |
| | Binds a registered provider once for a caller.
|
|
TModResult< FObjectBinding > | BindWorldObject (const FCaller &Caller, UObject &Object, FName TypeId, const TCHAR *Signature, bool bReadOnly, bool bWorldOwned=false) |
| | Projects a host-approved object into the caller's World view.
|
|
UClass * | FindWorldType (FName TypeId, FString &OutSignature) const |
| | Returns the registered World projection class to host code.
|
|
FSoftClassPath | FindBlueprintWorldType (FName TypeId, FString &OutSignature) const |
| | Reads an exported Blueprint World type without loading its class.
|
|
const FString * | FindLocalPlayerSignature (FName TypeId) const |
| | Finds an explicitly exported local-player provider signature.
|
Owns a session's generated definitions, providers, scopes, and callers.
◆ BindProvider()
Binds a registered provider once for a caller.
- Parameters
-
| TypeId | The expected source type. |
| Signature | The compiled generated table signature. |
| Caller | The host-issued caller. |
- Returns
- An opaque binding, or a compatibility/provider error.
◆ CloseScope()
Closes a scope and invalidates its bindings.
- Parameters
-
| Scope | A scope issued by this registry. |
- Returns
- Success or a caller/thread error.
◆ CreateCaller()
Issues a caller with explicit host-granted permissions.
- Parameters
-
| Scope | The caller's world or player scope. |
| Permissions | The exact permission identifiers granted by the host. |
- Returns
- A caller, or a scope error.
◆ OpenPlayerScope()
| TModResult< FScope > Mod::API::FRegistry::OpenPlayerScope |
( |
ULocalPlayer * | Player, |
|
|
const FScope & | WorldScope ) |
Opens a local player scope in a particular world.
- Parameters
-
| Player | The explicit local player. |
| WorldScope | The parent world scope. |
- Returns
- A scope, or a scope error.
◆ OpenWorldScope()
Opens a scope for a live world.
- Parameters
-
| World | The world owned by the host. |
- Returns
- A scope, or an argument error.
◆ RegisterProvider()
Registers an explicit service instance in a scope.
- Parameters
-
| TypeId | The generated source type. |
| Scope | The provider's scope. |
| Instance | A non-owned instance managed by the game. |
- Returns
- A registration token, or a compatibility/scope error.
◆ RegisterType()
Registers one generated type and its concrete calling table.
- Parameters
-
| Descriptor | The immutable module-owned definition. |
- Returns
- A revocation token, or a registration error.
◆ RevokeCaller()
Revokes a caller and all views issued to it.
- Parameters
-
| Caller | A caller issued by this registry. |
- Returns
- Success or a caller/thread error.
The documentation for this class was generated from the following file: