public UseVoxels ( Voxel src_voxels, int chunkx, int chunky ) : void | ||
src_voxels | Voxel | |
chunkx | int | |
chunky | int | |
return | void |
public void UseVoxels(Voxel[] src_voxels, int chunkx, int chunky)
{
// If this chunk already displays given voxels, do nothing
if (this.voxels == src_voxels) {
return;
}
this.chunkX = chunkx;
this.chunkY = chunky;
this.voxels = src_voxels;
RebuildMesh();
}