engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IModuleInterface类 参考

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.

成员函数说明

◆ IsGameModule()

virtual bool IModuleInterface::IsGameModule ( ) const
inlinevirtual

Returns true if this module hosts gameplay code

返回
True for "gameplay modules", or false for engine code modules, plugins, etc.

◆ ShutdownModule()

virtual void IModuleInterface::ShutdownModule ( )
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 重载.

◆ StartupModule()

virtual void IModuleInterface::StartupModule ( )
inlinevirtual

◆ SupportsAutomaticShutdown()

virtual bool IModuleInterface::SupportsAutomaticShutdown ( )
inlinevirtual

Override this to set whether your module would like cleanup on application shutdown

返回
Whether the module supports shutdown on application exit

被 FSocketSubsystemModule 重载.

◆ SupportsDynamicReloading()

virtual bool IModuleInterface::SupportsDynamicReloading ( )
inlinevirtual

Override this to set whether your module is allowed to be unloaded on the fly

返回
Whether the module supports shutdown separate from the rest of the engine.

被 FNullDynamicRHIModule, FOpenGLDynamicRHIModule , 以及 FSocketSubsystemModule 重载.


该类的文档由以下文件生成: