| 2 | #include "mc/network/NetworkConnection.h" |
| 3 | |
| 4 | NetworkConnection* 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 | } |