C++ 事件框架:EventBus
jopen
10年前
EventBus 是一个为 C++11 编写的轻量级同步事件框架。
示例代码:
Player player1("Player 1"); // Player instance with a name PlayerChatEvent e(*this, player1, "This is a chat message"); // Create the event object EventBus::FireEvent(e); // Fire the event