UnrealModFramework
Mod framework API
Loading...
Searching...
No Matches
UModTestPackageInstance Class Reference

Base mod instance for the cooked provider and consumer Blueprints. More...

#include <ModTestPackageInstance.h>

Inheritance diagram for UModTestPackageInstance:
UModInstance

Public Member Functions

void InvokeBoundServices ()
 Records successful service and world API calls made by the consumer.
Public Member Functions inherited from UModInstance
MODLOADER_API UWorld * GetWorld () const override
 Returns the extension World or the World of the owning game instance.
MODLOADER_API FString GetModId () const
 Returns this instance's active package ID on the game thread.
MODLOADER_API bool AcquireWorldAPI (FName TypeId, const TCHAR *Signature, uint64 &OutContext, uint64 &OutObject)
 Acquires a host-approved world provider on the game thread.
MODLOADER_API bool AcquireModService (FName ServiceId, FName TypeId, const TCHAR *Signature, uint64 &OutContext, uint64 &OutObject)
 Acquires a declared cross-Mod service on the game thread.
MODLOADER_API void ExecuteOnModLoadCompleted (const FModLoadNotification &Result)
 Dispatches load completion to Blueprint or the C++ override.
MODLOADER_API void ExecuteOnModBeforeUnload ()
 Dispatches unload notification to Blueprint or the C++ override.
MODLOADER_API void ExecuteOnModRegister ()
 Dispatches the mod register callback to Blueprint or the native override.
MODLOADER_API void ExecuteOnModBind ()
 Dispatches the mod bind callback to Blueprint or the native override.

Protected Member Functions

virtual void OnModRegister () override
 Registers compiled C++ extensions before the World is ready.
virtual void OnModBind () override
 Binds compiled C++ consumers after all providers are registered.
virtual void OnModBeforeUnload () override
 Releases game state and references before this Mod is unloaded.
Protected Member Functions inherited from UModInstance
virtual void OnModLoadCompleted (const FModLoadNotification &Result)
 Receives the result of a load operation on the game thread.
MODLOADER_API void ReceiveModLoadCompleted (const FModLoadNotification &Result)
 Blueprint event for a completed Mod load.
MODLOADER_API void ReceiveModBeforeUnload ()
 Blueprint event dispatched before this Mod's content is unloaded.
MODLOADER_API void ReceiveModRegister ()
 Registers this mod's extensions while its World is preparing.
MODLOADER_API void ReceiveModBind ()
 Acquires declared services after all providers register.

Additional Inherited Members

Static Public Member Functions inherited from UModInstance
static MODLOADER_API void * ResolveHostAPI (const char *Module, const char *Symbol)
 Resolves a host API table query on the game thread.

Detailed Description

Base mod instance for the cooked provider and consumer Blueprints.

Member Function Documentation

◆ OnModBeforeUnload()

virtual void UModTestPackageInstance::OnModBeforeUnload ( )
overrideprotectedvirtual

Releases game state and references before this Mod is unloaded.

Runs once per instance on the game thread while the Mod's content is still mounted. Call Super::OnModBeforeUnload to dispatch the event.

Reimplemented from UModInstance.


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