MCPcopy Create free account
hub / github.com/LiteLDev/LeviLamina / getConnectionFromId

Method getConnectionFromId

src/mc/network/NetworkSystem.cpp:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "mc/network/NetworkConnection.h"
3
4NetworkConnection* NetworkSystem::getConnectionFromId(const NetworkIdentifier& id) {
5 for (auto& connection : *mConnections) {
6 if (connection->mId == id) {
7 return connection.get();
8 }
9 }
10 return nullptr;
11}

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected