feat: added equality operator for SDL_Point
This commit is contained in:
parent
21a4e8ded8
commit
0be2a3fa2a
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue