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

HotReload module interface 更多...

#include <HotReloadInterface.h>

+ 类 IHotReloadInterface 继承关系图:

Public 成员函数

virtual void AddHotReloadFunctionRemap (FNativeFuncPtr NewFunctionPointer, FNativeFuncPtr OldFunctionPointer)=0
 Adds a function to re-map after hot-reload.
 
 DECLARE_MULTICAST_DELEGATE_OneParam (FHotReloadEvent, bool)
 Called when a Hot Reload event has completed. 更多...
 
 DECLARE_MULTICAST_DELEGATE_OneParam (FModuleCompilerStartedEvent, bool)
 Gets an event delegate that is executed when compilation of a module has started. 更多...
 
 DECLARE_MULTICAST_DELEGATE_ThreeParams (FModuleCompilerFinishedEvent, const FString &, ECompilationResult::Type, bool)
 Gets an event delegate that is executed when compilation of a module has finished. 更多...
 
virtual ECompilationResult::Type DoHotReloadFromEditor (EHotReloadFlags Flags)=0
 Performs hot reload from the editor of all currently loaded game modules. 更多...
 
virtual FString GetModuleCompileMethod (FName InModuleName)=0
 Queries the compilation method for a given module. 更多...
 
virtual bool IsAnyGameModuleLoaded ()=0
 Checks if there's any game modules currently loaded
 
virtual bool IsCurrentlyCompiling () const =0
 Returns whether modules are currently being compiled
 
virtual ECompilationResult::Type RebindPackages (const TArray< UPackage * > &Packages, EHotReloadFlags Flags, FOutputDevice &Ar)=0
 HotReload: Reloads the DLLs for given packages. 更多...
 
virtual bool RecompileModule (const FName InModuleName, FOutputDevice &Ar, ERecompileModuleFlags Flags)=0
 Recompiles a single module 更多...
 
virtual void RequestStopCompilation ()=0
 Request that current compile be stopped
 
virtual void SaveConfig ()=0
 Save the current state to disk before quitting.
 
- Public 成员函数 继承自 IModuleInterface
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

 

静态 Public 成员函数

static IHotReloadInterface * GetPtr ()
 Tries to gets a pointer to the active HotReload implementation.
 

详细描述

HotReload module interface

成员函数说明

◆ DECLARE_MULTICAST_DELEGATE_OneParam() [1/2]

IHotReloadInterface::DECLARE_MULTICAST_DELEGATE_OneParam ( FHotReloadEvent  ,
bool   
)

Called when a Hot Reload event has completed.

参数
bWasTriggeredAutomaticallyTrue if the hot reload was invoked automatically by the hot reload system after detecting a changed DLL

◆ DECLARE_MULTICAST_DELEGATE_OneParam() [2/2]

IHotReloadInterface::DECLARE_MULTICAST_DELEGATE_OneParam ( FModuleCompilerStartedEvent  ,
bool   
)

Gets an event delegate that is executed when compilation of a module has started.

返回
The event delegate.

◆ DECLARE_MULTICAST_DELEGATE_ThreeParams()

IHotReloadInterface::DECLARE_MULTICAST_DELEGATE_ThreeParams ( FModuleCompilerFinishedEvent  ,
const FString &  ,
ECompilationResult::Type  ,
bool   
)

Gets an event delegate that is executed when compilation of a module has finished.

The first parameter is the result of the compilation operation. The second parameter determines whether the log should be shown.

返回
The event delegate.

◆ DoHotReloadFromEditor()

virtual ECompilationResult::Type IHotReloadInterface::DoHotReloadFromEditor ( EHotReloadFlags  Flags)
pure virtual

Performs hot reload from the editor of all currently loaded game modules.

参数
FlagsFlags which to control the hot reload.
返回
If Flags & EHotReloadFlags::WaitForCompletion was set, this will return the result of the compilation, otherwise will return ECompilationResult::Unknown

◆ GetModuleCompileMethod()

virtual FString IHotReloadInterface::GetModuleCompileMethod ( FName  InModuleName)
pure virtual

Queries the compilation method for a given module.

参数
InModuleNameModule to query the name of
返回
A string describing the method used to compile the module.

◆ RebindPackages()

virtual ECompilationResult::Type IHotReloadInterface::RebindPackages ( const TArray< UPackage * > &  Packages,
EHotReloadFlags  Flags,
FOutputDevice &  Ar 
)
pure virtual

HotReload: Reloads the DLLs for given packages.

参数
PackagePackages to reload.
FlagsFlags which control the hot reload.
ArOutput device for logging compilation status
返回
If bWaitForCompletion was set to true, this will return the result of the compilation, otherwise will return ECompilationResult::Unknown

◆ RecompileModule()

virtual bool IHotReloadInterface::RecompileModule ( const FName  InModuleName,
FOutputDevice &  Ar,
ERecompileModuleFlags  Flags 
)
pure virtual

Recompiles a single module

参数
InModuleNameName of the module to compile
ArOutput device (logging)
FlagsRecompilation flags

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