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

Method isPvp

source/game/StarUniverseServer.cpp:272–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272bool UniverseServer::isPvp(ConnectionId clientId) const {
273 ReadLocker clientsLocker(m_clientsLock);
274 if (auto clientContext = m_clients.value(clientId))
275 return clientContext->team().type == TeamType::PVP;
276 return false;
277}
278
279void UniverseServer::setPvp(ConnectionId clientId, bool pvp) {
280 RecursiveMutexLocker locker(m_mainLock);

Callers 1

pvpMethod · 0.45

Calls 2

valueMethod · 0.45
teamMethod · 0.45

Tested by

no test coverage detected