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

Method receiveMessage

source/game/StarProjectile.cpp:390–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390Maybe<Json> Projectile::receiveMessage(ConnectionId sendingConnection, String const& message, JsonArray const& args) {
391 return m_scriptComponent.handleMessage(message, sendingConnection == world()->connection(), args);
392}
393
394Maybe<LuaValue> Projectile::callScript(String const& func, LuaVariadic<LuaValue> const& args) {
395 return m_scriptComponent.invoke(func, args);

Callers

nothing calls this directly

Calls 2

handleMessageMethod · 0.80
connectionMethod · 0.45

Tested by

no test coverage detected