mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-21 23:53:51 +00:00
Converts all game, gui editor, and system classes to utilize assets
Processed core, tools and default modules to utilize assets Converted all console types that were string based, such as TypeImageFilename to utilize const char*/the string table, which avoids a lot of type swapping shenanigans and avoids string corruption Removed unneeded MainEditor mockup module Removed some unused/duplicate image assets from the tools
This commit is contained in:
parent
83b0432283
commit
5525f8ecdd
1708 changed files with 19619 additions and 4596 deletions
|
|
@ -50,6 +50,15 @@ DefineEngineMethod(AssetBase, getAssetDependencyFieldCount, S32, (const char* pF
|
|||
return object->getAssetDependencyFieldCount(pFieldName);
|
||||
}
|
||||
|
||||
DefineEngineMethod(AssetBase, getAssetDependencyField, const char*, (const char* pFieldName, S32 index), ("", 0),
|
||||
"Gets an asset dependency field to the asset definition at a given index.\n"
|
||||
"@param fieldName The name of the field.\n"
|
||||
"@param index The index of the field to look up in the event there are multiple dependency fields. Defaults to 0"
|
||||
"@return The assetID assigned to the given dependency field.\n")
|
||||
{
|
||||
return object->getAssetDependencyField(pFieldName, index);
|
||||
}
|
||||
|
||||
DefineEngineMethod(AssetBase, clearAssetDependencyFields, void, (const char* pFieldName), (""),
|
||||
"Clears any asset dependency fields matching the name provided.\n"
|
||||
"@param fieldName The name of the fields to be cleared")
|
||||
|
|
@ -71,3 +80,15 @@ DefineEngineMethod(AssetBase, saveAsset, bool, (), ,
|
|||
{
|
||||
return object->saveAsset();
|
||||
}
|
||||
|
||||
DefineEngineMethod(AssetBase, getStatus, S32, (), , "get status")\
|
||||
{
|
||||
return object->getStatus();
|
||||
}
|
||||
|
||||
DefineEngineMethod(AssetBase, getStatusString, const char*, (), ,
|
||||
"Returns the load status of the asset.\n"
|
||||
"@return What status code the asset had after being loaded.\n")
|
||||
{
|
||||
return object->getAssetErrstrn(object->getStatus());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue