flake parts
This commit is contained in:
25
src/include/utils/Events/Event.h
Normal file
25
src/include/utils/Events/Event.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef EVENT_H
|
||||
#define EVENT_H
|
||||
|
||||
#include "pch.hpp"
|
||||
|
||||
namespace Archimedes {
|
||||
|
||||
class Event {
|
||||
|
||||
public:
|
||||
|
||||
Event() {}
|
||||
Event(std::any data) : userData(data) {}
|
||||
|
||||
virtual ~Event() {}
|
||||
|
||||
virtual operator std::string() const = 0;
|
||||
|
||||
std::any userData;
|
||||
};
|
||||
}
|
||||
|
||||
#include "BasicEvents.h"
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user