FEngineModularRegistry
The engine-wide seam a plugin's InitializeModule hook writes into so its systems and asset serializers join the running engine without any core edit. Scene consults the registered systems alongside its built-in table; every host applies the registered serializers after its built-in set. Reflected components need nothing here — they self-register through the generated MHT statics the moment the plugin DLL loads.
- Module
- Game
- Header
#include "Game/EngineModularRegistry.h"- Namespace
Mowo
Type aliases
| Alias | Description |
|---|---|
using SerializerFactory = Scope<AssetSerializer> (*)() | Plain function pointer, NOT std::function: the factory crosses the plugin DLL boundary and lives in a vector the registry reallocates — relocating a std::function built by another image crashed the packaged game (each image owns its allocator; same rule as the FModularSceneSystem hooks above). |
Constructors
| Signature | Name | Description |
|---|---|---|
FEngineModularRegistry(const FEngineModularRegistry&) = delete | FEngineModularRegistry |
Public functions
| Returns | Name | Description |
|---|---|---|
FEngineModularRegistry& | Get | |
FEngineModularRegistry& | operator= | |
void | RegisterSceneSystem | Forwarders into the ECS-level FSceneSystemRegistry (E3.1 NO1) — kept here so plugins keep one registry to talk to. |
const std::vector<FModularSceneSystem>& | GetSceneSystems | |
uint32_t | SceneSystemRevision | Bumped whenever the system set changes so Scene can rebuild its cached tick order instead of missing a plugin that loaded after the first tick. |
void | RegisterStateFragment | |
const std::vector<FStateFragment>& | GetStateFragments | |
void | RegisterCharacterExtension | |
const std::vector<FCharacterExtension>& | GetCharacterExtensions | |
bool | IsCharacterInputCaptured | True while ANY extension's mode owns the shared mouse buttons — used by the template's built-in binds and by other extensions' binds alike, so modes stand down for each other symmetrically. |
void | RegisterAssetSerializer | |
size_t | SerializerFactoryCount | |
size_t | RemoveAllInModule | Drops every fragment, character extension and serializer factory whose function pointers live inside the given module image — after the DLL frees they are calls into unmapped pages (SaveGame walks fragments, SetupPlayerInput walks extensions, every host replays the factories). |
void | ApplyRegisteredSerializers | Called by each host right after it registers its built-in serializers. |
Function details
FEngineModularRegistry
FEngineModularRegistry(const FEngineModularRegistry&) = deleteGet
static FEngineModularRegistry& Get()operator=
FEngineModularRegistry& operator=(const FEngineModularRegistry&) = deleteRegisterSceneSystem
void RegisterSceneSystem(const FModularSceneSystem& system)Forwarders into the ECS-level FSceneSystemRegistry (E3.1 NO1) — kept here so plugins keep one registry to talk to.
GetSceneSystems
const std::vector<FModularSceneSystem>& GetSceneSystems() constSceneSystemRevision
uint32_t SceneSystemRevision() constBumped whenever the system set changes so Scene can rebuild its cached tick order instead of missing a plugin that loaded after the first tick.
RegisterStateFragment
void RegisterStateFragment(const FStateFragment& fragment)GetStateFragments
const std::vector<FStateFragment>& GetStateFragments() constRegisterCharacterExtension
void RegisterCharacterExtension(const FCharacterExtension& extension)GetCharacterExtensions
const std::vector<FCharacterExtension>& GetCharacterExtensions() constIsCharacterInputCaptured
bool IsCharacterInputCaptured(ACharacter& character) constTrue while ANY extension's mode owns the shared mouse buttons — used by the template's built-in binds and by other extensions' binds alike, so modes stand down for each other symmetrically.
RegisterAssetSerializer
void RegisterAssetSerializer(SerializerFactory factory)SerializerFactoryCount
size_t SerializerFactoryCount() constRemoveAllInModule
size_t RemoveAllInModule(void* moduleHandle)Drops every fragment, character extension and serializer factory whose function pointers live inside the given module image — after the DLL frees they are calls into unmapped pages (SaveGame walks fragments, SetupPlayerInput walks extensions, every host replays the factories). Scene systems are swept by FSceneSystemRegistry itself. Driven by the FModuleManager unload broadcast. Returns the number of entries dropped.
ApplyRegisteredSerializers
template<typename TManager> void ApplyRegisteredSerializers(TManager& manager) constCalled by each host right after it registers its built-in serializers. Templated so it works with either concrete manager (Editor/Runtime) without a base-class virtual.