VOX
A little voxel engine
Loading...
Searching...
No Matches
AbstractEvent.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <typeindex>
5
6namespace Event
7{
8 typedef std::type_index Type;
9
11 {
12
13 public:
14
15 AbstractEvent() = default;
16 virtual ~AbstractEvent() = default;
17
18 virtual Type getType() const noexcept = 0;
19 static Type getStaticType() { return typeid(AbstractEvent); }
20
21 };
22
23} // namespace Event
Definition: AbstractEvent.hpp:11
virtual Type getType() const noexcept=0
virtual ~AbstractEvent()=default
static Type getStaticType()
Definition: AbstractEvent.hpp:19
Definition: AbstractEvent.cpp:4
std::type_index Type
Definition: AbstractEvent.hpp:8