engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 所有成员列表
FModuleDescriptor结构体 参考

Description of a loadable module. 更多...

#include <ModuleDescriptor.h>

Public 成员函数

 FModuleDescriptor (const FName InName=NAME_None, EHostType::Type InType=EHostType::Runtime, ELoadingPhase::Type InLoadingPhase=ELoadingPhase::Default)
 Normal constructor
 
bool IsCompiledInConfiguration (const FString &Platform, EBuildConfiguration Configuration, const FString &TargetName, EBuildTargetType TargetType, bool bBuildDeveloperTools, bool bBuildRequiresCookedData) const
 Tests whether the module should be built for the given target
 
bool IsCompiledInCurrentConfiguration () const
 Tests whether the module should be built for the current engine configuration
 
bool IsLoadedInCurrentConfiguration () const
 Tests whether the module should be loaded for the current engine configuration
 
bool Read (const FJsonObject &Object, FText &OutFailReason)
 Reads a descriptor from the given JSON object
 
void Write (TJsonWriter<> &Writer) const
 Writes a descriptor to JSON
 

静态 Public 成员函数

static bool CheckModuleCompatibility (const TArray< FModuleDescriptor > &Modules, TArray< FString > &OutIncompatibleFiles)
 Checks that all modules are compatible with the current engine version. 更多...
 
static void LoadModulesForPhase (ELoadingPhase::Type LoadingPhase, const TArray< FModuleDescriptor > &Modules, TMap< FName, EModuleLoadResult > &ModuleLoadErrors)
 Loads all the modules for a given loading phase. 更多...
 
static bool ReadArray (const FJsonObject &Object, const TCHAR *Name, TArray< FModuleDescriptor > &OutModules, FText &OutFailReason)
 Reads an array of modules from the given JSON object
 
static void WriteArray (TJsonWriter<> &Writer, const TCHAR *Name, const TArray< FModuleDescriptor > &Modules)
 Writes an array of modules to JSON
 

Public 属性

TArray< FString > AdditionalDependencies
 List of additional dependencies for building this module.
 
TArray< FString > BlacklistPlatforms
 List of disallowed platforms
 
TArray< FString > BlacklistPrograms
 List of disallowed programs
 
TArray< EBuildConfiguration > BlacklistTargetConfigurations
 List of disallowed target configurations
 
TArray< EBuildTargetType > BlacklistTargets
 List of disallowed targets
 
ELoadingPhase::Type LoadingPhase
 When should the module be loaded during the startup sequence? This is sort of an advanced setting.
 
FName Name
 Name of this module
 
EHostType::Type Type
 Usage type of module
 
TArray< FString > WhitelistPlatforms
 List of allowed platforms
 
TArray< FString > WhitelistPrograms
 List of allowed programs
 
TArray< EBuildConfiguration > WhitelistTargetConfigurations
 List of allowed target configurations
 
TArray< EBuildTargetType > WhitelistTargets
 List of allowed targets
 

详细描述

Description of a loadable module.

成员函数说明

◆ CheckModuleCompatibility()

static bool FModuleDescriptor::CheckModuleCompatibility ( const TArray< FModuleDescriptor > &  Modules,
TArray< FString > &  OutIncompatibleFiles 
)
static

Checks that all modules are compatible with the current engine version.

Returns false and appends a list of names to OutIncompatibleFiles if not.

◆ LoadModulesForPhase()

static void FModuleDescriptor::LoadModulesForPhase ( ELoadingPhase::Type  LoadingPhase,
const TArray< FModuleDescriptor > &  Modules,
TMap< FName, EModuleLoadResult > &  ModuleLoadErrors 
)
static

Loads all the modules for a given loading phase.

Returns a map of module names to load errors


该结构体的文档由以下文件生成: