UnrealModFramework
Mod framework API
Loading...
Searching...
No Matches
Mod::API::FHostAccess Struct Reference

Host-only operations used by concrete generated calling bridges. More...

#include <ModAPIHost.h>

Static Public Member Functions

static TModResult< UObject * > Enter (const FObjectBinding &Binding, FName TypeId, EScope Scope, TConstArrayView< FName > Permissions, bool bMutable, FServiceInvocation *Invocation=nullptr)
 Enters a synchronous generated call on the game thread.
static TModResult< void > ValidateObjectInput (const FObjectBinding &Binding, const UObject *Object)
 Checks a borrowed UE object argument on the game thread.
static TModResult< UObject * > ResolveObjectInput (const FObjectBinding &Binding, UClass *Class, const ANSICHAR *Path, uint32 Size)
 Resolves an already loaded argument by its exact object path.
static TModResult< FObjectBinding > ProjectObject (const FObjectBinding &Source, UObject *Object, FName TypeId, const TCHAR *Signature, bool bReadOnly)
 Projects a returned object into an authorized non-owning binding.
static TModResult< TSharedPtr< const FBlueprintCall > > ResolveBlueprintCall (const FObjectBinding &Binding, UObject &Target, int32 Index)
 Gets a validated Blueprint call on the game thread.

Detailed Description

Host-only operations used by concrete generated calling bridges.

Member Function Documentation

◆ Enter()

TModResult< UObject * > Mod::API::FHostAccess::Enter ( const FObjectBinding & Binding,
FName TypeId,
EScope Scope,
TConstArrayView< FName > Permissions,
bool bMutable,
FServiceInvocation * Invocation = nullptr )
static

Enters a synchronous generated call on the game thread.

Parameters
BindingThe previously bound target.
TypeIdExpected source type.
ScopeRequired scope kind.
PermissionsRequired exact permission identifiers.
bMutableWhether the source member may mutate its target.
InvocationHolds the service call until the bridge returns.
Returns
The host object or a recoverable validation failure.

◆ ProjectObject()

TModResult< FObjectBinding > Mod::API::FHostAccess::ProjectObject ( const FObjectBinding & Source,
UObject * Object,
FName TypeId,
const TCHAR * Signature,
bool bReadOnly )
static

Projects a returned object into an authorized non-owning binding.

Parameters
SourceThe caller and world of the current invocation.
ObjectThe actual returned object.
TypeIdExpected projected type.
SignatureExpected generated table signature.
bReadOnlyWhether mutation through the result is prohibited.
Returns
An object binding, or a null/type/scope failure.

◆ ResolveBlueprintCall()

TModResult< TSharedPtr< const FBlueprintCall > > Mod::API::FHostAccess::ResolveBlueprintCall ( const FObjectBinding & Binding,
UObject & Target,
int32 Index )
static

Gets a validated Blueprint call on the game thread.

Parameters
BindingAuthorized target instance.
TargetObject returned by Enter for this call.
IndexFunction slot in its generated type descriptor.
Returns
The call description or a binding failure.

◆ ResolveObjectInput()

TModResult< UObject * > Mod::API::FHostAccess::ResolveObjectInput ( const FObjectBinding & Binding,
UClass * Class,
const ANSICHAR * Path,
uint32 Size )
static

Resolves an already loaded argument by its exact object path.

Parameters
BindingThe target of the current invocation.
ClassThe expected native class of the argument.
PathBorrowed UTF-8 bytes, or null for a null object.
SizeThe byte count, excluding any terminator.
Returns
The validated object for this synchronous call, or an error.

◆ ValidateObjectInput()

TModResult< void > Mod::API::FHostAccess::ValidateObjectInput ( const FObjectBinding & Binding,
const UObject * Object )
static

Checks a borrowed UE object argument on the game thread.

Parameters
BindingThe target of the current invocation.
ObjectThe supplied object, which may be null.
Returns
Success or a thread, lifetime, or world mismatch error.

The documentation for this struct was generated from the following file: