MCPcopy Create free account
hub / github.com/cuberite/cuberite / Reset

Method Reset

src/Scoreboard.cpp:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91
92
93void cObjective::Reset(void)
94{
95 for (cScoreMap::iterator it = m_Scores.begin(); it != m_Scores.end(); ++it)
96 {
97 m_World->BroadcastScoreUpdate(m_Name, it->first, 0, 1);
98 }
99
100 m_Scores.clear();
101}
102
103
104

Callers

nothing calls this directly

Calls 4

beginMethod · 0.80
endMethod · 0.80
BroadcastScoreUpdateMethod · 0.80
clearMethod · 0.80

Tested by

no test coverage detected