conversion to smart pointers done but still buggy
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user