2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
class Chunk;
|
|
|
|
|
class Mob;
|
|
|
|
|
|
2026-03-02 17:37:16 +07:00
|
|
|
class DirtyChunkSorter : public std::binary_function<const Chunk *,const Chunk *,bool>
|
2026-03-01 12:16:08 +08:00
|
|
|
{
|
|
|
|
|
private:
|
2026-03-03 03:04:10 +08:00
|
|
|
shared_ptr<LivingEntity> cameraEntity;
|
2026-03-01 12:16:08 +08:00
|
|
|
int playerIndex; // 4J added
|
|
|
|
|
|
|
|
|
|
public:
|
2026-03-03 03:04:10 +08:00
|
|
|
DirtyChunkSorter(shared_ptr<LivingEntity> cameraEntity, int playerIndex); // 4J - added player index
|
2026-03-01 12:16:08 +08:00
|
|
|
bool operator()(const Chunk *a, const Chunk *b) const;
|
|
|
|
|
};
|