public int GetHeightMapLevel(int x, int z) { return(LocalMap.Chunk(x / Global.CHUNK_SIZE, z / Global.CHUNK_SIZE).HeightMap[x % Global.CHUNK_SIZE, z % Global.CHUNK_SIZE]); }
//public ChunkCoords GetChunkCoords(Position position) //{ // return new ChunkCoords (position.X / Settings.CHUNK_SIZE, position.Z / Settings.CHUNK_SIZE); //} public Chunk GetChunk(ChunkCoords chunkCoords) { var chunk = localMap.Chunk(chunkCoords); return(chunk); }