engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | Protected 属性 | 友元 | 所有成员列表
FPackageLocalizationCache类 参考abstract

Common implementation for the package localization cache 更多...

#include <PackageLocalizationCache.h>

+ 类 FPackageLocalizationCache 继承关系图:

Public 成员函数

virtual void ConditionalUpdateCache () override
 Update this cache, but only if it is dirty.
 
virtual FName FindLocalizedPackageName (const FName InSourcePackageName) override
 Try and find the localized package name for the given source package for the active culture. 更多...
 
virtual FName FindLocalizedPackageNameForCulture (const FName InSourcePackageName, const FString &InCultureName) override
 Try and find the localized package name for the given source package for the given culture. 更多...
 
virtual void ConditionalUpdateCache ()=0
 Update this cache, but only if it is dirty.
 
virtual FName FindLocalizedPackageName (const FName InSourcePackageName)=0
 Try and find the localized package name for the given source package for the active culture. 更多...
 
virtual FName FindLocalizedPackageNameForCulture (const FName InSourcePackageName, const FString &InCultureName)=0
 Try and find the localized package name for the given source package for the given culture. 更多...
 

Protected 成员函数

void ConditionalUpdatePackageNameToAssetGroupCache_NoLock ()
 Update the mapping of package names to asset groups (if required).
 
virtual void FindAssetGroupPackages (const FName InAssetGroupName, const FName InAssetClassName)=0
 Find all of the packages using the given asset group class, and update the PackageNameToAssetGroup map with the result. 更多...
 
virtual void FindLocalizedPackages (const FString &InSourceRoot, const FString &InLocalizedRoot, TMap< FName, TArray< FName > > &InOutSourcePackagesToLocalizedPackages)=0
 Find all of the localized packages under the given roots, and update the map with the result. 更多...
 
TSharedPtr< FPackageLocalizationCultureCache > FindOrAddCacheForCulture_NoLock (const FString &InCultureName)
 Try and find an existing cache for the given culture name, and create an entry for one if no such cache currently exists. 更多...
 
void HandleContentPathDismounted (const FString &InAssetPath, const FString &InFilesystemPath)
 Callback handler for when an existing content path is dismounted. 更多...
 
void HandleContentPathMounted (const FString &InAssetPath, const FString &InFilesystemPath)
 Callback handler for when a new content path is mounted. 更多...
 
void HandleCultureChanged ()
 Callback handler for when the active culture is changed.
 

Protected 属性

TArray< TTuple< FString, TSharedPtr< FPackageLocalizationCultureCache > > > AllCultureCaches
 Mapping between a culture name, and the culture specific cache for that culture.
 
TArray< TTuple< FName, FName > > AssetClassesToAssetGroups
 Mapping between a class name, and the asset group the class belongs to (for class specific package localization).
 
TSharedPtr< FPackageLocalizationCultureCache > CurrentCultureCache
 Pointer to the culture specific cache for the current culture.
 
FCriticalSection LocalizedCachesCS
 Critical section preventing concurrent access to our data.
 
TMap< FName, FName > PackageNameToAssetGroup
 Mapping between a package name, and the asset group it belongs to.
 

友元

class FPackageLocalizationCultureCache
 

详细描述

Common implementation for the package localization cache

成员函数说明

◆ FindAssetGroupPackages()

virtual void FPackageLocalizationCache::FindAssetGroupPackages ( const FName  InAssetGroupName,
const FName  InAssetClassName 
)
protectedpure virtual

Find all of the packages using the given asset group class, and update the PackageNameToAssetGroup map with the result.

参数
InAssetGroupNameThe name of the asset group packages of this type belong to.
InAssetClassNameThe name of a class used by this asset group.

在 FEnginePackageLocalizationCache 内被实现.

◆ FindLocalizedPackageName()

virtual FName FPackageLocalizationCache::FindLocalizedPackageName ( const FName  InSourcePackageName)
overridevirtual

Try and find the localized package name for the given source package for the active culture.

参数
InSourcePackageNameThe name of the source package to find.
返回
The localized package name, or NAME_None if there is no localized package.

实现了 IPackageLocalizationCache.

◆ FindLocalizedPackageNameForCulture()

virtual FName FPackageLocalizationCache::FindLocalizedPackageNameForCulture ( const FName  InSourcePackageName,
const FString &  InCultureName 
)
overridevirtual

Try and find the localized package name for the given source package for the given culture.

参数
InSourcePackageNameThe name of the source package to find.
InCultureNameThe name of the culture to find the package for.
返回
The localized package name, or NAME_None if there is no localized package.

实现了 IPackageLocalizationCache.

◆ FindLocalizedPackages()

virtual void FPackageLocalizationCache::FindLocalizedPackages ( const FString &  InSourceRoot,
const FString &  InLocalizedRoot,
TMap< FName, TArray< FName > > &  InOutSourcePackagesToLocalizedPackages 
)
protectedpure virtual

Find all of the localized packages under the given roots, and update the map with the result.

参数
InSourceRootThe root package path that contains the source packages we're finding localized packages for, eg) /Game
InLocalizedRootThe root package path to search for localized packages in, eg) /Game/L10N/fr
InOutSourcePackagesToLocalizedPackagesThe map to update. This will be passed to multiple calls of FindLocalizedPackages in order to build a mapping between a source package, and an array of prioritized localized packages.

在 FEnginePackageLocalizationCache 内被实现.

◆ FindOrAddCacheForCulture_NoLock()

TSharedPtr< FPackageLocalizationCultureCache > FPackageLocalizationCache::FindOrAddCacheForCulture_NoLock ( const FString &  InCultureName)
protected

Try and find an existing cache for the given culture name, and create an entry for one if no such cache currently exists.

参数
InCultureNameThe name of the culture to find the cache for.
返回
A pointer to the cache for the given culture.

◆ HandleContentPathDismounted()

void FPackageLocalizationCache::HandleContentPathDismounted ( const FString &  InAssetPath,
const FString &  InFilesystemPath 
)
protected

Callback handler for when an existing content path is dismounted.

参数
InAssetPathThe package path that was dismounted, eg) /Game
InFilesystemPathThe file-system path for the asset path, eg) ../../../MyGame/Content

◆ HandleContentPathMounted()

void FPackageLocalizationCache::HandleContentPathMounted ( const FString &  InAssetPath,
const FString &  InFilesystemPath 
)
protected

Callback handler for when a new content path is mounted.

参数
InAssetPathThe package path that was mounted, eg) /Game
InFilesystemPathThe file-system path for the asset path, eg) ../../../MyGame/Content

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