heavy restructuring with smart pointers, not finished
This commit is contained in:
+6
-4
@@ -1,13 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include "raylib.h"
|
||||
#include "datatypes.h"
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
class GraphItem{
|
||||
|
||||
public:
|
||||
int id;
|
||||
GraphItemType type;
|
||||
std::vector<int> connections;
|
||||
|
||||
std::vector<std::shared_ptr<GraphItem>> neighbors;
|
||||
|
||||
virtual void draw(Vec2D<float> mouse, Camera2D cam) = 0;
|
||||
virtual ~GraphItem() = default;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user