Super simple events added. Seems to be a good way for handling interaction. Modified a few base classes.

This commit is contained in:
Sebastian
2024-11-24 03:08:06 +01:00
parent 62a5c53969
commit f04838bffa
14 changed files with 160 additions and 67 deletions
+5
View File
@@ -1,5 +1,6 @@
#pragma once
#include "datatypes.h"
#include "raylib.h"
namespace VISEQ::BASE {
@@ -33,6 +34,10 @@ namespace VISEQ::BASE {
virtual bool released() {
return IsMouseButtonReleased(MOUSE_BUTTON_LEFT);
}
virtual GRAPH::GraphItemType getType() = 0;
virtual void pickUp() = 0;
virtual void drag() = 0;
virtual void putDown() = 0;
};
}