v1 using observer pattern

This commit is contained in:
2026-01-11 23:10:47 +00:00
parent 792dab6211
commit 98e3237d37
11 changed files with 207 additions and 2 deletions
@@ -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;
};