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

Method setInstance

src/logic/ScriptEngine.cpp:117–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void ScriptEngine::setInstance(const std::string& target, const std::string& source)
118{
119 // Target is checked later
120 assert(m_pVM->getDATFile().hasSymbolName(source));
121
122 setInstance(target,
123 m_pVM->getDATFile().getSymbolIndexByName(source));
124}
125
126void ScriptEngine::setInstance(const std::string& target, size_t source)
127{

Callers 8

EV_StateMethod · 0.80
evaluateConditionsMethod · 0.80
performChoiceMethod · 0.80
assessTalkMethod · 0.80
startAIStateMethod · 0.80
setInstanceNPCMethod · 0.80
setInstanceItemMethod · 0.80
onNPCInitializedMethod · 0.80

Calls 1

getSymbolIndexByNameMethod · 0.80

Tested by

no test coverage detected