| 229 | } |
| 230 | |
| 231 | StringTableEntry Scene::getLevelAsset() |
| 232 | { |
| 233 | StringTableEntry levelFile = getFilename(); |
| 234 | |
| 235 | if (levelFile == StringTable->EmptyString()) |
| 236 | return StringTable->EmptyString(); |
| 237 | |
| 238 | AssetQuery* query = new AssetQuery(); |
| 239 | query->registerObject(); |
| 240 | |
| 241 | S32 foundAssetcount = AssetDatabase.findAssetLooseFile(query, levelFile); |
| 242 | if (foundAssetcount == 0) |
| 243 | return StringTable->EmptyString(); |
| 244 | else |
| 245 | return query->mAssetList[0]; |
| 246 | } |
| 247 | |
| 248 | bool Scene::saveScene(StringTableEntry fileName) |
| 249 | { |
no test coverage detected