| 1916 | } |
| 1917 | |
| 1918 | void WorldClient::notifyEntityCreate(EntityPtr const& entity) { |
| 1919 | if (entity->isMaster() && !m_masterEntitiesNetVersion.contains(entity->entityId())) { |
| 1920 | // Server was unaware of this entity until now |
| 1921 | auto netRules = m_clientState.netCompatibilityRules(); |
| 1922 | auto firstNetState = entity->writeNetState(0, netRules); |
| 1923 | m_masterEntitiesNetVersion[entity->entityId()] = firstNetState.second; |
| 1924 | m_outgoingPackets.append(make_shared<EntityCreatePacket>(entity->entityType(), |
| 1925 | Root::singleton().entityFactory()->netStoreEntity(entity, netRules), std::move(firstNetState.first), entity->entityId())); |
| 1926 | } |
| 1927 | } |
| 1928 | |
| 1929 | Vec2I WorldClient::environmentBiomeTrackPosition() const { |
| 1930 | if (!inWorld()) |
nothing calls this directly
no test coverage detected