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

Method sendPacket

source/game/scripting/StarWorldLuaBindings.cpp:1220–1224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1218 }
1219
1220 bool ServerWorldCallbacks::sendPacket(WorldServer* world, ConnectionId clientId, String const& packetType, Json const& packetData) {
1221 PacketType type = PacketTypeNames.getLeft(packetType);
1222 auto packet = createPacket(type, packetData);
1223 return world->sendPacket(clientId, packet);
1224 }
1225
1226 void WorldDebugCallbacks::debugPoint(Vec2F const& arg1, Color const& arg2) {
1227 SpatialLogger::logPoint("world", arg1, arg2.toRgba());

Callers

nothing calls this directly

Calls 1

createPacketFunction · 0.85

Tested by

no test coverage detected