engine
 
载入中...
搜索中...
未找到
Protected 成员函数 | 所有成员列表
FEnginePackageLocalizationCache类 参考

Implementation of a package localization cache that takes advantage of the asset registry. 更多...

#include <EnginePackageLocalizationCache.h>

+ 类 FEnginePackageLocalizationCache 继承关系图:

Protected 成员函数

virtual void FindAssetGroupPackages (const FName InAssetGroupName, const FName InAssetClassName) override
 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) override
 Find all of the localized packages under the given roots, and update the map with the result. 更多...
 
- Protected 成员函数 继承自 FPackageLocalizationCache
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.
 

额外继承的成员函数

- Public 成员函数 继承自 FPackageLocalizationCache
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 属性 继承自 FPackageLocalizationCache
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.
 

详细描述

Implementation of a package localization cache that takes advantage of the asset registry.

成员函数说明

◆ FindAssetGroupPackages()

virtual void FEnginePackageLocalizationCache::FindAssetGroupPackages ( const FName  InAssetGroupName,
const FName  InAssetClassName 
)
overrideprotectedvirtual

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.

实现了 FPackageLocalizationCache.

◆ FindLocalizedPackages()

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

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.

实现了 FPackageLocalizationCache.


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