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