LeviLamina
Loading...
Searching...
No Matches
EventCoordinatorPimpl.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
5#include "mc/world/events/EventResult.h"
6
7template <class T0>
9public:
10 using EventFuncPtr = std::function<EventResult(T0&)>;
11
12 std::vector<T0*> mListeners;
13 std::vector<EventFuncPtr> mEventsToProcess;
14 std::vector<T0*> mPendingRegistrations;
15 bool mHasPendingRegistrations;
16 std::thread::id mThreadId;
17 bool mThreadIdInitialized;
18 uint mThreadCheckIndex;
19
20 // // ServerInstanceEventListener
21 // virtual ~EventCoordinatorPimpl();
22
23 // // ServerInstanceEventListener
24 // MCAPI bool registerListener(gsl::not_null<T0*>);
25
26 // // ScriptingEventListener
27 // MCAPI void processEvent(EventFuncPtr);
28
29 // // ActorEventListener
30 // MCAPI void unregisterListener(gsl::not_null<T0*>);
31};
Definition EnableNonOwnerReferences.h:7
Definition EventCoordinatorPimpl.h:8