Shifts the console method for manually invoking load() from being ShapeAsset specific to being generalized to AssetBase

This commit is contained in:
JeffR 2025-10-13 08:13:37 -05:00
parent 1277b1a347
commit 6b3fcd8e74
2 changed files with 8 additions and 6 deletions

View file

@ -92,3 +92,11 @@ DefineEngineMethod(AssetBase, getStatusString, const char*, (), ,
{
return object->getAssetErrstrn(object->getStatus());
}
DefineEngineMethod(AssetBase, load, String, (), ,
"Manually initates a loading of the asset and it's contents.\n"
"@return The status code of the loading results.\n")\
{
U32 code = object->load();
return object->getAssetErrstrn(code);
}