Represents the contents of a script source file.
This asset represents the contents of a script source file and is used to load script source code into a CYIBindingContext.
#include <asset/YiAssetScript.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 |
| CYIAssetScript::CYIAssetScript | ( | ) |
| CYIAssetScript::CYIAssetScript | ( | const CYIString & | path, |
| PATH_TYPE | ePathType = PATH_RELATIVE |
||
| ) |
|
virtual |
| const CYIString& CYIAssetScript::GetScript | ( | ) |
Returns the script source code contained in this asset.
|
overrideprotectedvirtual |
Reimplemented from CYIAsset.
| void CYIAssetScript::SetScript | ( | const CYIString & | script | ) |
Sets the script source code contained in this asset.