feat: added equality operator for SDL_Point
This commit is contained in:
parent
21a4e8ded8
commit
0be2a3fa2a
|
@ -14,4 +14,8 @@ typedef SDL_Point Tile;
|
||||||
typedef SDL_Point Chunk;
|
typedef SDL_Point Chunk;
|
||||||
typedef unsigned Sprite;
|
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
|
#endif // !ROGUEDEFS_H
|
||||||
|
|
Loading…
Reference in a new issue