| 116 | } |
| 117 | |
| 118 | void BuildingObject::fireRefresh() |
| 119 | { |
| 120 | for(Seat* seat : mSeatsWithVisionNotified) |
| 121 | { |
| 122 | if(seat->getPlayer() == nullptr) |
| 123 | continue; |
| 124 | if(!seat->getPlayer()->getIsHuman()) |
| 125 | continue; |
| 126 | |
| 127 | const std::string& name = getName(); |
| 128 | ServerNotification *serverNotification = new ServerNotification( |
| 129 | ServerNotificationType::entitiesRefresh, seat->getPlayer()); |
| 130 | uint32_t nb = 1; |
| 131 | GameEntityType entityType = getObjectType(); |
| 132 | serverNotification->mPacket << nb; |
| 133 | serverNotification->mPacket << entityType; |
| 134 | serverNotification->mPacket << name; |
| 135 | exportToPacketForUpdate(serverNotification->mPacket, seat); |
| 136 | ODServer::getSingleton().queueServerNotification(serverNotification); |
| 137 | } |
| 138 | } |
no test coverage detected