R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
server::IEventBus Class Referenceabstract

Minimal interface for the EventBus. More...

#include <IEventBus.hpp>

Inheritance diagram for server::IEventBus:
Inheritance graph
Collaboration diagram for server::IEventBus:
Collaboration graph

Public Member Functions

virtual ~IEventBus ()=default
 
virtual void clear ()=0
 Remove all event subscriptions.
 

Detailed Description

Minimal interface for the EventBus.

This interface only exposes the clear() method, as template-based subscribe/publish functions cannot be virtualized. Implementations extending this interface must provide the internal storage and logic for event subscriptions.

Definition at line 21 of file IEventBus.hpp.

Constructor & Destructor Documentation

◆ ~IEventBus()

virtual server::IEventBus::~IEventBus ( )
virtualdefault

Member Function Documentation

◆ clear()

virtual void server::IEventBus::clear ( )
pure virtual

Remove all event subscriptions.

Clears every registered handler for all event types. Called typically during shutdown or reinitialization.

Implemented in server::EventBus.


The documentation for this class was generated from the following file: