private ApplyPopulateState ( |
||
action | ||
region | ||
populateOverlay | ||
Результат | void |
private void ApplyPopulateState(PopulateAction action, RegionFile region, Bitmap populateOverlay)
{
for (int chunkX = 0; chunkX < 32; chunkX++)
{
for (int chunkZ = 0; chunkZ < 32; chunkZ++)
{
Chunk c = region.Chunks[chunkX, chunkZ];
if (c == null || c.Root == null)
continue;
((TAG_Byte)c.Root["Level"]["TerrainPopulated"]).Payload = action.PopulatedFlags[chunkX, chunkZ];
}
}
RegionUtil.RenderRegionChunkstobePopulated(region, populateOverlay);
}