Add default copy constructors to Color and Position classes

This commit is contained in:
Kamil Chojnowski
2019-10-10 01:47:34 +02:00
parent caae18dbce
commit 6a2d12ce27
2 changed files with 4 additions and 0 deletions

View File

@@ -36,6 +36,8 @@ public:
Position() : x(65535), y(65535), z(255) { }
Position(uint16 x, uint16 y, uint8 z) : x(x), y(y), z(z) { }
Position(const Position &position) = default;
Position translatedToDirection(Otc::Direction direction) {
Position pos = *this;
switch(direction) {