2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
class Entity;
|
|
|
|
|
class Chunk;
|
|
|
|
|
|
2026-03-02 17:37:16 +07:00
|
|
|
class DistanceChunkSorter : public std::binary_function<const Chunk *,const Chunk *,bool>
|
2026-03-01 12:16:08 +08:00
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
double ix, iy, iz;
|
|
|
|
|
|
|
|
|
|
public:
|
2026-03-02 17:37:16 +07:00
|
|
|
DistanceChunkSorter(shared_ptr<Entity> player);
|
2026-03-01 12:16:08 +08:00
|
|
|
bool operator()(const Chunk *a, const Chunk *b) const;
|
|
|
|
|
};
|