mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-10 09:27:12 +00:00
13 lines
296 B
C++
13 lines
296 B
C++
#pragma once
|
|
class Entity;
|
|
class Chunk;
|
|
|
|
class DistanceChunkSorter
|
|
: public std::binary_function<const Chunk*, const Chunk*, bool> {
|
|
private:
|
|
double ix, iy, iz;
|
|
|
|
public:
|
|
DistanceChunkSorter(std::shared_ptr<Entity> player);
|
|
bool operator()(const Chunk* a, const Chunk* b) const;
|
|
}; |