v1 using observer pattern
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
template <typename TEventId, typename TEventInfo>
|
||||
class Subscriber {
|
||||
public:
|
||||
virtual void onNotification(const TEventId& eventId,
|
||||
const TEventInfo& eventInfo) = 0;
|
||||
|
||||
virtual ~Subscriber() = default;
|
||||
};
|
||||
Reference in New Issue
Block a user