Files
Cubed/include/Cubed/gameplay/chuck_status.hpp
2026-03-07 17:00:05 +08:00

16 lines
370 B
C++

#pragma once
#include <functional>
struct ChuckPos {
int x;
int y;
bool operator==(const ChuckPos&) const = default;
struct Hash {
std::size_t operator()(const ChuckPos& pos) const{
std::size_t h1 = std::hash<int>{}(pos.x);
std::size_t h2 = std::hash<int>{}(pos.y);
return h1 ^ (h2 << 1);
}
};
};