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.
|
static |
Checks that all modules are compatible with the current engine version.
Returns false and appends a list of names to OutIncompatibleFiles if not.
|
static |
Loads all the modules for a given loading phase.
Returns a map of module names to load errors