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

Method receiveMessage

source/game/StarWorldServer.cpp:572–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572Maybe<Json> WorldServer::receiveMessage(ConnectionId fromConnection, String const& message, JsonArray const& args) {
573 Maybe<Json> result;
574 for (auto& p : m_scriptContexts) {
575 result = p.second->handleMessage(message, fromConnection == ServerConnectionId, args);
576 if (result)
577 break;
578 }
579 return result;
580}
581
582WorldServerFidelity WorldServer::fidelity() const {
583 return m_fidelity;

Callers 2

handleIncomingPacketsMethod · 0.45
sendEntityMessageMethod · 0.45

Calls 1

handleMessageMethod · 0.80

Tested by

no test coverage detected