15 #include <ST_util/atomic_queue/concurrentqueue.h>
16 #include "../src/main/message.hpp"
17 #include <ST_util/bytell_hash_map.hpp>
21 #include "message_types.hpp"
22 #include "../src/main/subscriber.hpp"
33 ska::bytell_hash_map<uint8_t, std::vector<subscriber *>> subscribers;
53 std::shared_ptr<void> make_data(T data) {
54 return std::make_shared<T>(data);
The central messaging system of the engine. All subsystem make extensive use of it.
void subscribe(uint8_t msg, subscriber *sub)
void send_msg(message *msg)
A message object passed around in the message bus. Holds anything created with make_data<>().
This class handles a small queue for messages.