MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / VariableBinaryOperationHandler

Method VariableBinaryOperationHandler

src/Ext/Script/Body.cpp:1028–1036  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1026
1027template<bool IsSrcGlobal, bool IsGlobal, class _Pr>
1028void ScriptExt::VariableBinaryOperationHandler(TeamClass* pTeam, int nVariable, int nVarToOperate)
1029{
1030 auto itr = ScenarioExt::Global()->Variables[IsSrcGlobal].find(nVarToOperate);
1031
1032 if (itr != ScenarioExt::Global()->Variables[IsSrcGlobal].end())
1033 ScriptExt::VariableOperationHandler<IsGlobal, _Pr>(pTeam, nVariable, itr->second.Value);
1034
1035 pTeam->StepCompleted = true;
1036}
1037
1038FootClass* ScriptExt::FindTheTeamLeader(TeamClass* pTeam)
1039{

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected