conversion to smart pointers done but still buggy

This commit is contained in:
Sebastian
2024-11-01 02:38:47 +01:00
parent c0eb7c98ba
commit 19b2c9549f
15 changed files with 389 additions and 524 deletions
+3
View File
@@ -10,6 +10,9 @@ class GraphItem{
public:
std::vector<std::shared_ptr<GraphItem>> neighbors;
GraphItemType graphItemType;
virtual void draw(Vec2D<float> mouse, Camera2D cam) = 0;
virtual GraphItemType getType() {return graphItemType;}
virtual ~GraphItem() = default;
};