|
UnrealModFramework
Mod framework API
|
Loads approved cooked content in a game or editor PIE session. More...
#include <ModLoader.h>
Public Member Functions | |
| DECLARE_MULTICAST_DELEGATE_ThreeParams (FOnLoadCompleted, ELoadOrigin, const FString &, TConstArrayView< FLoadResult >) | |
| Receives the origin, input path, and results of a finished load. | |
| DECLARE_MULTICAST_DELEGATE_OneParam (FOnBeforeUnload, const FMountedPackage &) | |
| Receives a mounted package while its content is still available. | |
| virtual FLoadResult | LoadPackage (const FString &Path, const FLoadPolicy &Policy)=0 |
| Verifies and mounts one archive on the game thread. | |
| virtual TArray< FLoadResult > | LoadDirectory (const FString &Directory, const FLoadPolicy &Policy)=0 |
| Mounts eligible .mod files directly inside a directory. | |
| virtual TArray< FMountedPackage > | GetMountedPackages () const =0 |
| Copies mounted packages that can be activated. | |
| FOnLoadCompleted & | OnLoadCompleted () |
| Gets the startup and manual completion event. | |
| FOnBeforeUnload & | OnBeforeUnload () |
| Gets the game-thread event for a package beginning unload. | |
Static Public Member Functions | |
| static IModLoaderModule & | Get () |
| Returns the service owned by the enabled ModLoader module. | |
| static bool | ReadGameplayRelease (FGameplayRelease &OutRelease) |
| Resolves the host gameplay identity used for network admission. | |
Loads approved cooked content in a game or editor PIE session.
Use from a game-thread startup gate. Loading performs synchronous I/O and engine mounts. Removing a watched source starts the unload of its package. PIE also releases mounts at the end of play.
|
static |
Returns the service owned by the enabled ModLoader module.
|
pure virtual |
Copies mounted packages that can be activated.
Call on the game thread.
|
pure virtual |
Mounts eligible .mod files directly inside a directory.
| Directory | Directory on the physical filesystem. |
| Policy | Trusted release policy for the current game. |
Call on the game thread. Different archives with the same mod ID in one scan are rejected before any version of that mod is mounted.
|
pure virtual |
Verifies and mounts one archive on the game thread.
| Path | Path to the .mod file on the physical filesystem. |
| Policy | Trusted release policy for the current game. |
|
inline |
Gets the game-thread event for a package beginning unload.
|
inline |
Gets the startup and manual completion event.
One broadcast per operation. A directory result has one entry per candidate, one scan error, or no entries if empty. Callback references are temporary. Reentrant and wrong-thread completions are deferred.