| 141 | } |
| 142 | |
| 143 | void GameObjectAsset::onAssetRefresh() |
| 144 | { |
| 145 | //Ensure we have an expanded filepath |
| 146 | mScriptPath = getOwned() ? expandAssetFilePath(mScriptFile) : mScriptPath; |
| 147 | |
| 148 | if (Torque::FS::IsScriptFile(mScriptPath)) |
| 149 | Con::executeFile(mScriptPath, false, false); |
| 150 | |
| 151 | mTAMLPath = getOwned() ? expandAssetFilePath(mTAMLFile) : mTAMLPath; |
| 152 | } |
| 153 | |
| 154 | void GameObjectAsset::setScriptFile(const char* pScriptFile) |
| 155 | { |
nothing calls this directly
no test coverage detected