MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / onAssetRefresh

Method onAssetRefresh

Engine/source/T3D/assets/ScriptAsset.cpp:152–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void ScriptAsset::onAssetRefresh()
153{
154 mScriptPath = getOwned() ? expandAssetFilePath(mScriptFile) : mScriptPath;
155
156 if (Torque::FS::IsScriptFile(mScriptPath))
157 {
158 //Refresh any dependencies we may have
159 for (U32 i = 0; i < mScriptAssets.size(); i++)
160 {
161 mScriptAssets[i]->onAssetRefresh();
162 }
163
164 Con::executeFile(mScriptPath, false, false);
165 }
166}
167
168void ScriptAsset::setScriptFile(const char* pScriptFile)
169{

Callers

nothing calls this directly

Calls 3

IsScriptFileFunction · 0.85
executeFileFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected