| 316 | } |
| 317 | |
| 318 | Daedalus::GameState::NpcHandle ScriptEngine::getNPCFromSymbol(const std::string& symName) |
| 319 | { |
| 320 | Daedalus::PARSymbol& sym = m_pVM->getDATFile().getSymbolByName(symName); |
| 321 | |
| 322 | if (sym.instanceDataClass != Daedalus::IC_Npc) |
| 323 | return Daedalus::GameState::NpcHandle(); |
| 324 | |
| 325 | return ZMemory::handleCast<Daedalus::GameState::NpcHandle>(sym.instanceDataHandle); |
| 326 | } |
| 327 | |
| 328 | Daedalus::GameState::ItemHandle ScriptEngine::getItemFromSymbol(const std::string& symName) |
| 329 | { |
no outgoing calls
no test coverage detected