ServerEvents

This commit is contained in:
2025-04-15 00:35:31 -05:00
parent ba8d31335e
commit f94cb10412
7 changed files with 123 additions and 19 deletions

View File

@@ -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;