MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / getMusicThemeFromSymbol

Method getMusicThemeFromSymbol

src/logic/ScriptEngine.cpp:338–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338Daedalus::GameState::MusicThemeHandle ScriptEngine::getMusicThemeFromSymbol(const std::string& symName) {
339 Daedalus::PARSymbol& sym = m_pVM->getDATFile().getSymbolByName(symName);
340
341 if (sym.instanceDataClass != Daedalus::IC_MusicTheme)
342 return Daedalus::GameState::MusicThemeHandle();
343
344 return ZMemory::handleCast<Daedalus::GameState::MusicThemeHandle>(sym.instanceDataHandle);
345}
346
347void ScriptEngine::registerItem(Handle::EntityHandle e)
348{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected