Make it possible use GridPosition with emplace_back

This commit is contained in:
Patricia Aas 2021-07-06 12:41:50 +02:00
parent 30f69464dd
commit eb36d24b31
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ struct Position {
struct GridPosition {
size_t x;
size_t y;
constexpr GridPosition(size_t x, size_t y) : x(x), y(y) {}
};
using Rect = sf::Rect<int>;