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

Method writeNetTile

source/game/StarWorldServer.cpp:2123–2140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2121}
2122
2123void 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
2142void WorldServer::dirtyCollision(RectI const& region) {
2143 auto dirtyRegion = region.padded(CollisionGenerator::BlockInfluenceRadius);

Callers

nothing calls this directly

Calls 2

netUpdateMethod · 0.80
getCollisionMethod · 0.60

Tested by

no test coverage detected