mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:20:54 +01:00
16 lines
299 B
C
16 lines
299 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <Events/EventDispatcher.h>
|
||
|
|
|
||
|
|
enum class BSTEventResult
|
||
|
|
{
|
||
|
|
kOk,
|
||
|
|
kAbort
|
||
|
|
};
|
||
|
|
|
||
|
|
template <class T> struct BSTEventSink
|
||
|
|
{
|
||
|
|
virtual ~BSTEventSink() {}
|
||
|
|
virtual BSTEventResult OnEvent(const T* apEvent, const EventDispatcher<T>* apSender) { return BSTEventResult::kOk; }
|
||
|
|
};
|