MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / getPvpTeams

Method getPvpTeams

source/game/StarTeamManager.cpp:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53HashMap<Uuid, TeamNumber> TeamManager::getPvpTeams() {
54 HashMap<Uuid, TeamNumber> result;
55 for (auto const& teamPair : m_teams) {
56 for (auto const& memberPair : teamPair.second.members)
57 result[memberPair.first] = teamPair.second.pvpTeamNumber;
58 }
59 return result;
60}
61
62Maybe<Uuid> TeamManager::getTeam(Uuid const& playerUuid) const {
63 for (auto const& teamPair : m_teams) {

Callers 1

updateTeamsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected