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

Function connectionForEntity

source/game/StarGameTypes.cpp:77–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77ConnectionId connectionForEntity(EntityId entityId) {
78 if (entityId > 0)
79 return ServerConnectionId;
80 else
81 return (-entityId - 1) / 65536 + 1;
82}
83
84pair<float, Direction> getAngleSide(float angle, bool ccRotation) {
85 angle = constrainAngle(angle);

Callers 13

handleIncomingPacketsMethod · 0.85
sendEntityMessageMethod · 0.85
destinationConnectionMethod · 0.85
isAuthoritativeMethod · 0.85
removeClientMethod · 0.85
handleIncomingPacketsMethod · 0.85
queueUpdatePacketsMethod · 0.85
sendEntityMessageMethod · 0.85
writeNetStateMethod · 0.85
updateRunningMethod · 0.85
handleCommandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected