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

Function entityIdInSpace

source/game/StarGameTypes.cpp:72–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72bool entityIdInSpace(EntityId entityId, ConnectionId connectionId) {
73 auto pair = connectionEntitySpace(connectionId);
74 return entityId >= pair.first && entityId <= pair.second;
75}
76
77ConnectionId connectionForEntity(EntityId entityId) {
78 if (entityId > 0)

Callers 1

handleIncomingPacketsMethod · 0.85

Calls 1

connectionEntitySpaceFunction · 0.85

Tested by

no test coverage detected