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