the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3class Rect2i
4{
5private:
6 int xPos;
7 int yPos;
8 int width;
9 int height;
10
11public:
12 Rect2i(int x, int y, int width, int height);
13
14 Rect2i *intersect(const Rect2i *other);
15 int getX() const;
16 int getY() const;
17 void setX(int x);
18 void setY(int y);
19 int getWidth() const;
20 int getHeight() const;
21 void setWidth(int width);
22 void setHeight(int height);
23 void setPosition(int x, int y);
24};