| 2510 | : clientId(clientId), skyNetVersion(0), weatherNetVersion(0), pendingForward(false), started(false), local(false), admin(false), interpolationTracker(trackerInit) {} |
| 2511 | |
| 2512 | List<RectI> WorldServer::ClientInfo::monitoringRegions(EntityMapPtr const& entityMap) const { |
| 2513 | return clientState.monitoringRegions([entityMap](EntityId entityId) -> Maybe<RectI> { |
| 2514 | if (auto entity = entityMap->entity(entityId)) |
| 2515 | return RectI::integral(entity->metaBoundBox().translated(entity->position())); |
| 2516 | return {}; |
| 2517 | }); |
| 2518 | } |
| 2519 | |
| 2520 | bool WorldServer::ClientInfo::needsDamageNotification(RemoteDamageNotification const& rdn) const { |
| 2521 | if (clientId == connectionForEntity(rdn.sourceEntityId) || clientId == connectionForEntity(rdn.damageNotification.targetEntityId)) |
no test coverage detected