MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetByName

Function GetByName

TombEngine/Scripting/Internal/TEN/Logic/LogicHandler.cpp:878–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

876
877template <typename R, char const * S, typename mapType>
878std::unique_ptr<R> GetByName(const std::string& type, const std::string& name, const mapType& map)
879{
880 ScriptAssert(map.find(name) != map.end(), std::string{ type + " name not found: " + name }, ErrorMode::Terminate);
881 return std::make_unique<R>(map.at(name), false);
882}
883
884void LogicHandler::ResetVariables()
885{

Callers

nothing calls this directly

Calls 4

ScriptAssertFunction · 0.85
findMethod · 0.45
endMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected