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

A container for all of the registered core-level redirects 更多...

#include <CoreRedirects.h>

静态 Public 成员函数

static bool AddKnownMissing (ECoreRedirectFlags Type, const FCoreRedirectObjectName &ObjectName, ECoreRedirectFlags Channel=ECoreRedirectFlags::Option_MissingLoad)
 Adds the given combination of (Type, ObjectName, Channel) as a missing name; IsKnownMissing queries will now find it 更多...
 
static bool AddRedirectList (TArrayView< const FCoreRedirect > Redirects, const FString &SourceString)
 Adds an array of redirects to global list
 
static bool FindPreviousNames (ECoreRedirectFlags Type, const FCoreRedirectObjectName &NewObjectName, TArray< FCoreRedirectObjectName > &PreviousNames)
 Returns list of names it may have been before
 
static const TMap< FName, ECoreRedirectFlags > & GetConfigKeyMap ()
 Gets map from config key -> Flags
 
static ECoreRedirectFlags GetFlagsForTypeClass (UClass *TypeClass)
 Goes from UClass Type to the type flag
 
static ECoreRedirectFlags GetFlagsForTypeName (FName PackageName, FName TypeName)
 Goes from the containing package and name of the type to the type flag
 
static bool GetMatchingRedirects (ECoreRedirectFlags Type, const FCoreRedirectObjectName &OldObjectName, TArray< const FCoreRedirect * > &FoundRedirects)
 Returns list of all core redirects that match requirements
 
static FCoreRedirectObjectName GetRedirectedName (ECoreRedirectFlags Type, const FCoreRedirectObjectName &OldObjectName)
 Returns a redirected version of the object name. 更多...
 
static const TMap< FString, FString > * GetValueRedirects (ECoreRedirectFlags Type, const FCoreRedirectObjectName &OldObjectName)
 Returns map of String->String value redirects for the object name, or nullptr if none found
 
static void Initialize ()
 Run initialization steps that are needed before any data can be stored in FCoreRedirects. 更多...
 
static bool IsInitialized ()
 Returns true if this has ever been initialized
 
static bool IsKnownMissing (ECoreRedirectFlags Type, const FCoreRedirectObjectName &ObjectName)
 Returns true if this name has been registered as explicitly missing
 
static bool ReadRedirectsFromIni (const FString &IniName)
 Parse all redirects out of a given ini file
 
static bool RedirectNameAndValues (ECoreRedirectFlags Type, const FCoreRedirectObjectName &OldObjectName, FCoreRedirectObjectName &NewObjectName, const FCoreRedirect **FoundValueRedirect)
 Performs both a name redirect and gets a value redirect struct if it exists. 更多...
 
static bool RemoveKnownMissing (ECoreRedirectFlags Type, const FCoreRedirectObjectName &ObjectName, ECoreRedirectFlags Channel=ECoreRedirectFlags::Option_MissingLoad)
 Removes the given combination of (Type, ObjectName, Channel) as a missing name 更多...
 
static bool RunTests ()
 Runs set of redirector tests, returns false on failure
 

详细描述

A container for all of the registered core-level redirects

成员函数说明

◆ AddKnownMissing()

static bool FCoreRedirects::AddKnownMissing ( ECoreRedirectFlags  Type,
const FCoreRedirectObjectName &  ObjectName,
ECoreRedirectFlags  Channel = ECoreRedirectFlags::Option_MissingLoad 
)
static

Adds the given combination of (Type, ObjectName, Channel) as a missing name; IsKnownMissing queries will now find it

参数
TypeCombination of the ECoreRedirectFlags::Type_* flags specifying the type of the object now known to be missing
ObjectNameThe name of the object now known to be missing
Channelmay be Option_MissingLoad or Option_None; used to distinguish between detected-at-runtime and specified-by-ini

◆ GetRedirectedName()

static FCoreRedirectObjectName FCoreRedirects::GetRedirectedName ( ECoreRedirectFlags  Type,
const FCoreRedirectObjectName &  OldObjectName 
)
static

Returns a redirected version of the object name.

If there are no valid redirects, it will return the original name

◆ Initialize()

static void FCoreRedirects::Initialize ( )
static

Run initialization steps that are needed before any data can be stored in FCoreRedirects.

Reads can occur before this, but no redirects will exist and redirect queries will all return empty.

◆ RedirectNameAndValues()

static bool FCoreRedirects::RedirectNameAndValues ( ECoreRedirectFlags  Type,
const FCoreRedirectObjectName &  OldObjectName,
FCoreRedirectObjectName &  NewObjectName,
const FCoreRedirect **  FoundValueRedirect 
)
static

Performs both a name redirect and gets a value redirect struct if it exists.

Returns true if either redirect found

◆ RemoveKnownMissing()

static bool FCoreRedirects::RemoveKnownMissing ( ECoreRedirectFlags  Type,
const FCoreRedirectObjectName &  ObjectName,
ECoreRedirectFlags  Channel = ECoreRedirectFlags::Option_MissingLoad 
)
static

Removes the given combination of (Type, ObjectName, Channel) as a missing name

参数
TypeCombination of the ECoreRedirectFlags::Type_* flags specifying the type of the object that has just been loaded.
ObjectNameThe name of the object that has just been loaded.
Channelmay be Option_MissingLoad or Option_None; used to distinguish between detected-at-runtime and specified-by-ini

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