Interface class that all module implementations should derive from. 更多...
#include <ModuleInterface.h>
类 IModuleInterface 继承关系图:Public 成员函数 | |
| virtual bool | IsGameModule () const |
| Returns true if this module hosts gameplay code 更多... | |
| virtual void | PostLoadCallback () |
| Called after the module has been reloaded | |
| virtual void | PreUnloadCallback () |
| Called before the module has been unloaded | |
| virtual void | ShutdownModule () |
| Called before the module is unloaded, right before the module object is destroyed. 更多... | |
| virtual void | StartupModule () |
| Called right after the module DLL has been loaded and the module object has been created Load dependent modules here, and they will be guaranteed to be available during ShutdownModule. 更多... | |
| virtual bool | SupportsAutomaticShutdown () |
| Override this to set whether your module would like cleanup on application shutdown 更多... | |
| virtual bool | SupportsDynamicReloading () |
| Override this to set whether your module is allowed to be unloaded on the fly 更多... | |
| virtual | ~IModuleInterface () |
| Note: Even though this is an interface class we need a virtual destructor here because modules are deleted via a pointer to this interface | |
Interface class that all module implementations should derive from.
This is used to initialize a module after it's been loaded, and also to clean it up before the module is unloaded.
|
inlinevirtual |
Returns true if this module hosts gameplay code
|
inlinevirtual |
Called before the module is unloaded, right before the module object is destroyed.
During normal shutdown, this is called in reverse order that modules finish StartupModule(). This means that, as long as a module references dependent modules in it's StartupModule(), it can safely reference those dependencies in ShutdownModule() as well.
被 FEngineModule, FStreamingPauseRenderingModule, FInstallBundleManagerModule, FBackgroundHttpModule, FPacketHandlerComponentModuleInterface, FSocketSubsystemModule , 以及 FWidgetCarouselModule 重载.
|
inlinevirtual |
Called right after the module DLL has been loaded and the module object has been created Load dependent modules here, and they will be guaranteed to be available during ShutdownModule.
ie:
FModuleManager::Get().LoadModuleChecked(TEXT("HTTP"));
被 FEngineModule, FStreamingPauseRenderingModule, FAssetRegistryModule, ICameraPhotographyModule, IEyeTrackerModule, IHeadMountedDisplayModule, IInputDeviceModule, FInstallBundleManagerModule, TInstallBundleManagerModule< InstallBundleManagerModuleImpl >, TInstallBundleManagerModule< FNullInstallBundleManager >, FBackgroundHttpModule, FPacketHandlerComponentModuleInterface, FSocketSubsystemModule , 以及 FWidgetCarouselModule 重载.
|
inlinevirtual |
Override this to set whether your module would like cleanup on application shutdown
被 FSocketSubsystemModule 重载.
|
inlinevirtual |
Override this to set whether your module is allowed to be unloaded on the fly
被 FNullDynamicRHIModule, FOpenGLDynamicRHIModule , 以及 FSocketSubsystemModule 重载.