Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
event_bus.hpp File Reference

Typed publish/subscribe event bus with immediate dispatch. More...

#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <memory>
#include <typeindex>
#include <typeinfo>
#include <unordered_map>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

class  aegis2d::core::EventBus
 Lets systems react to events without knowing who sends them. More...
 

Namespaces

namespace  aegis2d
 Root namespace of the engine.
 
namespace  aegis2d::core
 Logging, time, main loop, events and configuration shared by client and server.
 

Typedefs

using aegis2d::core::SubscriptionId = std::uint64_t
 Handle returned by EventBus::subscribe(), used to unsubscribe. Never 0.
 

Detailed Description

Typed publish/subscribe event bus with immediate dispatch.