| 130 | } |
| 131 | |
| 132 | void GameObjectAsset::initializeAsset() |
| 133 | { |
| 134 | //Ensure we have an expanded filepath |
| 135 | mScriptPath = getOwned() ? expandAssetFilePath(mScriptFile) : mScriptPath; |
| 136 | |
| 137 | if (Torque::FS::IsScriptFile(mScriptPath)) |
| 138 | Con::executeFile(mScriptPath, false, false); |
| 139 | |
| 140 | mTAMLPath = getOwned() ? expandAssetFilePath(mTAMLFile) : mTAMLPath; |
| 141 | } |
| 142 | |
| 143 | void GameObjectAsset::onAssetRefresh() |
| 144 | { |
nothing calls this directly
no test coverage detected