6#include "UObject/StrongObjectPtr.h"
8struct FModExtensionWorld;
24 friend struct FHostAccess;
25 TSharedPtr<FModExtensionWorld> World;
26 TStrongObjectPtr<UObject> Target;
42 const TCHAR* InExportHash =
nullptr);
52 friend class ::UModAPIHostSubsystem;
53 friend class FModAPIModule;
60 const TCHAR* ExportHash;
61 TArray<TWeakPtr<FRegistrationState>> ActiveTypes;
77 TConstArrayView<FName> Permissions,
bool bMutable,
103 const TCHAR* Signature,
bool bReadOnly);
112 UObject& Target, int32 Index);
EScope
Supported scope kinds for the synchronous UObject backend.
Definition ModAPIRegistry.h:23
static void DescribeContracts(TArray< FString > &Digests)
Collects the distinct export digests registered by this host.
void(*)(FRegistry &, TModResult< TArray< FRegistration > > &) FRegister
Signature of a generated registration entry point.
Definition ModAPIHost.h:34
~FGeneratedHostRegistration()
Withdraws the entry point and invalidates its live type registrations.
FGeneratedHostRegistration(FRegister InRegister, const TCHAR *InModule=nullptr, const TCHAR *InExportHash=nullptr)
Publishes an entry point for future game instances.
An opaque, non-owning object binding with a cached typed calling table.
Definition ModAPIObject.h:18
Owns a session's generated definitions, providers, scopes, and callers.
Definition ModAPIRegistry.h:117
Keeps the World and target alive for one generated service call.
Definition ModAPIHost.h:14
~FServiceInvocation()
Releases the call at the World dispatch boundary.
FServiceInvocation()=default
Starts without owning a service call.
A synchronous API result containing either a value or a stable error.
Definition ModAPIResult.h:47
Host-only operations used by concrete generated calling bridges.
Definition ModAPIHost.h:66
static TModResult< TSharedPtr< const FBlueprintCall > > ResolveBlueprintCall(const FObjectBinding &Binding, UObject &Target, int32 Index)
Gets a validated Blueprint call on the game thread.
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< 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< 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.