aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/ChunkPos.h
diff options
context:
space:
mode:
authorLoki Rautio <lokirautio@gmail.com>2026-03-04 03:56:03 -0600
committerLoki Rautio <lokirautio@gmail.com>2026-03-04 03:56:03 -0600
commit42aec6dac53dffa6afe072560a7e1d4986112538 (patch)
tree0836426857391df1b6a83f6368a183f83ec9b104 /Minecraft.World/ChunkPos.h
parentc9d58eeac7c72f0b3038e084667b4d89a6249fce (diff)
parentef9b6fd500dfabd9463267b0dd9e29577eea8a2b (diff)
Merge branch 'main' into pr/win64-world-saves
# Conflicts: # Minecraft.Client/MinecraftServer.cpp # README.md
Diffstat (limited to 'Minecraft.World/ChunkPos.h')
-rw-r--r--Minecraft.World/ChunkPos.h15
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