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

Method receiveMessage

source/game/StarMonster.cpp:521–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521Maybe<Json> Monster::receiveMessage(ConnectionId sendingConnection, String const& message, JsonArray const& args) {
522 Maybe<Json> result = m_scriptComponent.handleMessage(message, world()->connection() == sendingConnection, args);
523 if (!result)
524 result = m_statusController->receiveMessage(message, world()->connection() == sendingConnection, args);
525 return result;
526}
527
528float Monster::maxHealth() const {
529 return *m_statusController->resourceMax("health");

Callers

nothing calls this directly

Calls 2

handleMessageMethod · 0.80
connectionMethod · 0.45

Tested by

no test coverage detected