SDLPP: make copySelf actually copy everything

This commit is contained in:
2020-12-18 16:02:02 +01:00
parent 67a56d31de
commit 20c30712b9
9 changed files with 36 additions and 3 deletions
+5
View File
@@ -88,4 +88,9 @@ SDL_Rect RectColider::getRect() {
r.h = pixel_h;
return r;
}
std::shared_ptr< CollisionPolygon > RectColider::copySelf() {
return std::make_shared< RectColider >( *this );
}
} // namespace SDLPP