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

Method receiveMessage

source/game/StarNpc.cpp:964–969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

962}
963
964Maybe<Json> Npc::receiveMessage(ConnectionId sendingConnection, String const& message, JsonArray const& args) {
965 Maybe<Json> result = m_scriptComponent.handleMessage(message, world()->connection() == sendingConnection, args);
966 if (!result)
967 result = m_statusController->receiveMessage(message, world()->connection() == sendingConnection, args);
968 return result;
969}
970
971Vec2F Npc::armPosition(ToolHand hand, Direction facingDirection, float armAngle, Vec2F offset) const {
972 return m_tools->armPosition(m_humanoid, hand, facingDirection, armAngle, offset);

Callers 6

readDataMethod · 0.45
handleIncomingPacketsMethod · 0.45
sendEntityMessageMethod · 0.45
updateMethod · 0.45
handleCommandMethod · 0.45
handleInteractActionMethod · 0.45

Calls 2

handleMessageMethod · 0.80
connectionMethod · 0.45

Tested by

no test coverage detected