From 27f748cecaef369d1ddaba4deecc09f0b0b898c2 Mon Sep 17 00:00:00 2001 From: josh Date: Wed, 19 Mar 2025 15:45:02 -0400 Subject: [PATCH] Include v2i_hash --- Core/include/Core/World.hpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/Core/include/Core/World.hpp b/Core/include/Core/World.hpp index 63f6bb4..9f214b0 100644 --- a/Core/include/Core/World.hpp +++ b/Core/include/Core/World.hpp @@ -8,20 +8,11 @@ #include #include "ConcurrentQueue.hpp" #include "Entity.hpp" - +#include "Core/v2i_hash.hpp" #pragma once -template<> -struct std::hash -{ - std::size_t operator()(const Vector2i& k) const - { - // Read 2x int32_t into one int64_t and return std::hash to prevent collisions. - // This doesn't really gain any performance until you zoom out a lot. - return std::hash()(((int64_t) k.x << 32) | ((int64_t) k.y)); - } -}; + namespace CaveGame::Core { class WorldAsyncIOThreadManager