diff options
| author | void_17 <heroerror3@gmail.com> | 2026-03-02 15:11:05 +0700 |
|---|---|---|
| committer | void_17 <heroerror3@gmail.com> | 2026-03-02 15:11:05 +0700 |
| commit | 09e0c04f7b9d2d357715dc908ff0094dcf3e4fcc (patch) | |
| tree | 47d8fb31e41dcfc09375367e873d33728b07f55d /Minecraft.World/ChunkPos.h | |
| parent | def238ff08dd90a06e0916876601f9a03f22c510 (diff) | |
Further C-style struct definitions fixes
Diffstat (limited to 'Minecraft.World/ChunkPos.h')
| -rw-r--r-- | Minecraft.World/ChunkPos.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Minecraft.World/ChunkPos.h b/Minecraft.World/ChunkPos.h index f1d483c7..2a3fda02 100644 --- a/Minecraft.World/ChunkPos.h +++ b/Minecraft.World/ChunkPos.h @@ -28,13 +28,14 @@ public: ChunkPos & operator= (const ChunkPos & other) { x = other.x; z = other.z; return *this; } }; -typedef struct +struct ChunkPosKeyHash { - __int64 operator() (const ChunkPos &k) const { return ChunkPos::hash_fnct(k); } - -} ChunkPosKeyHash; + inline __int64 operator()(const ChunkPos &k) const + { return ChunkPos::hash_fnct(k); } +}; -typedef struct +struct ChunkPosKeyEq { - bool operator() (const ChunkPos &x, const ChunkPos &y) const { return ChunkPos::eq_test(x, y); } -} ChunkPosKeyEq;
\ No newline at end of file + inline bool operator()(const ChunkPos &x, const ChunkPos &y) const + { return ChunkPos::eq_test(x, y); } +};
\ No newline at end of file |
