An asset container which holds a shared translator that refers to a specific localisation resource.
#include <asset/YiAssetTranslation.h>

Protected Member Functions | |
| virtual void | OnUnload () override |
Protected Member Functions inherited from CYIAsset | |
| CYIAsset () | |
| ssize_t | GetID () const |
| void | SetPath (const CYIString &path, PATH_TYPE ePathType) |
| void | SetApproximateSize (uint32_t nSize) |
| void | SetLoaded (bool bAssetLoaded) |
| void | SetLoadParameters (std::unique_ptr< CYIAssetLoadParams > pParams) |
| virtual void | OnLoad () |
Protected Member Functions inherited from CYIScriptableRTTIObject | |
| virtual std::pair< const CYIRuntimeTypeInfo *, const void * > | GetRuntimeTypeInfoWithObject () const =0 |
Additional Inherited Members | |
Public Types inherited from CYIAsset | |
| enum | PATH_TYPE { PATH_ABSOLUTE = 0, PATH_RELATIVE } |
Static Protected Attributes inherited from CYIAsset | |
| static ssize_t | INVALID_ID |
| CYIAssetTranslation::CYIAssetTranslation | ( | ) |
| CYIAssetTranslation::CYIAssetTranslation | ( | const CYIString & | path, |
| PATH_TYPE | ePathType = PATH_RELATIVE |
||
| ) |
|
virtual |
| const std::shared_ptr<CYITranslator>& CYIAssetTranslation::GetTranslator | ( | ) |
Returns the shared translator object.
|
overrideprotectedvirtual |
Reimplemented from CYIAsset.
| void CYIAssetTranslation::SetTranslator | ( | std::shared_ptr< CYITranslator > | pTranslator | ) |
Sets the shared translator object.