| 2121 | } |
| 2122 | |
| 2123 | void WorldServer::writeNetTile(Vec2I const& pos, NetTile& netTile) const { |
| 2124 | auto const& tile = m_tileArray->tile(pos); |
| 2125 | netTile.foreground = tile.foreground; |
| 2126 | netTile.foregroundHueShift = tile.foregroundHueShift; |
| 2127 | netTile.foregroundColorVariant = tile.foregroundColorVariant; |
| 2128 | netTile.foregroundMod = tile.foregroundMod; |
| 2129 | netTile.foregroundModHueShift = tile.foregroundModHueShift; |
| 2130 | netTile.background = tile.background; |
| 2131 | netTile.backgroundHueShift = tile.backgroundHueShift; |
| 2132 | netTile.backgroundColorVariant = tile.backgroundColorVariant; |
| 2133 | netTile.backgroundMod = tile.backgroundMod; |
| 2134 | netTile.backgroundModHueShift = tile.backgroundModHueShift; |
| 2135 | netTile.liquid = tile.liquid.netUpdate(); |
| 2136 | netTile.collision = tile.getCollision(); |
| 2137 | netTile.blockBiomeIndex = tile.blockBiomeIndex; |
| 2138 | netTile.environmentBiomeIndex = tile.environmentBiomeIndex; |
| 2139 | netTile.dungeonId = tile.dungeonId; |
| 2140 | } |
| 2141 | |
| 2142 | void WorldServer::dirtyCollision(RectI const& region) { |
| 2143 | auto dirtyRegion = region.padded(CollisionGenerator::BlockInfluenceRadius); |
nothing calls this directly
no test coverage detected