feat: added equality operator for SDL_Point

This commit is contained in:
Sara 2025-06-04 00:18:45 +02:00
parent 21a4e8ded8
commit 0be2a3fa2a

View file

@ -14,4 +14,8 @@ typedef SDL_Point Tile;
typedef SDL_Point Chunk;
typedef unsigned Sprite;
static inline bool operator==(SDL_Point const &lhs, SDL_Point const &rhs) {
return lhs.x == rhs.x && lhs.y == rhs.y;
}
#endif // !ROGUEDEFS_H