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

Method getLevelAsset

Engine/source/T3D/Scene.cpp:231–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231StringTableEntry 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
248bool Scene::saveScene(StringTableEntry fileName)
249{

Callers 1

Scene.cppFile · 0.80

Calls 3

EmptyStringMethod · 0.80
findAssetLooseFileMethod · 0.80
registerObjectMethod · 0.45

Tested by

no test coverage detected