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
|
protectedpure virtual |
Find all of the packages using the given asset group class, and update the PackageNameToAssetGroup map with the result.
| InAssetGroupName | The name of the asset group packages of this type belong to. |
| InAssetClassName | The name of a class used by this asset group. |
在 FEnginePackageLocalizationCache 内被实现.
|
overridevirtual |
Try and find the localized package name for the given source package for the active culture.
| InSourcePackageName | The name of the source package to find. |
|
overridevirtual |
Try and find the localized package name for the given source package for the given culture.
| InSourcePackageName | The name of the source package to find. |
| InCultureName | The name of the culture to find the package for. |
|
protectedpure virtual |
Find all of the localized packages under the given roots, and update the map with the result.
| InSourceRoot | The root package path that contains the source packages we're finding localized packages for, eg) /Game |
| InLocalizedRoot | The root package path to search for localized packages in, eg) /Game/L10N/fr |
| InOutSourcePackagesToLocalizedPackages | The 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 内被实现.
|
protected |
Try and find an existing cache for the given culture name, and create an entry for one if no such cache currently exists.
| InCultureName | The name of the culture to find the cache for. |
|
protected |
Callback handler for when an existing content path is dismounted.
| InAssetPath | The package path that was dismounted, eg) /Game |
| InFilesystemPath | The file-system path for the asset path, eg) ../../../MyGame/Content |
|
protected |
Callback handler for when a new content path is mounted.
| InAssetPath | The package path that was mounted, eg) /Game |
| InFilesystemPath | The file-system path for the asset path, eg) ../../../MyGame/Content |