当前位置: 软件>C/C++软件
C++ 事件框架 EventBus
本文导语: 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::F...
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