Exemple #1
0
/** Convenience function to read the coarse map height. */
inline chunk_height coarse_height(world& w, map_coordinates pos)
{
    return w.acquire_read_access().get_coarse_height(pos);
}
Exemple #2
0
inline void prepare_for_player(world& w, chunk_coordinates pos)
{
    auto proxy = w.acquire_read_access();
    proxy.get_compressed_surface(pos);
    proxy.get_compressed_lightmap(pos);
}
Exemple #3
0
/** Convenience function to read a single block. */
inline uint16_t get_block(world& w, world_coordinates pos)
{
    return w.acquire_read_access().get_block(pos);
}