ServerEvents
This commit is contained in:
@@ -53,17 +53,26 @@ namespace Archimedes {
|
||||
|
||||
void end() { done = true; }
|
||||
|
||||
bool isDone() const { return done; }
|
||||
|
||||
std::unordered_map<std::string, unsigned int> getEventTypes() const { return eventTypes; }
|
||||
|
||||
void addEventType(std::string type) { eventTypes[type] = nextEventType++; }
|
||||
|
||||
private:
|
||||
|
||||
std::list<std::string>::iterator roInsert;
|
||||
|
||||
inline static App* instance = nullptr;
|
||||
|
||||
unsigned int nextEventType = 0;
|
||||
protected:
|
||||
|
||||
bool done = false;
|
||||
|
||||
std::unordered_map<std::string, Module*> modules;
|
||||
std::unordered_map<std::string, unsigned int> eventTypes;
|
||||
|
||||
std::list<std::string> runOrder;
|
||||
|
||||
std::list<std::string> toClose;
|
||||
|
||||
Reference in New Issue
Block a user