LeviLamina
Loading...
Searching...
No Matches
ActorEventCoordinator.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/pub_sub/Subscription.h"
7#include "mc/gameplayhandlers/CoordinatorResult.h"
8#include "mc/world/events/ActorGameplayEvent.h"
9#include "mc/world/events/EventCoordinator.h"
10#include "mc/world/events/EventRef.h"
11#include "mc/world/events/MutableActorGameplayEvent.h"
12
13// auto generated forward declare list
14// clang-format off
19// clang-format on
20
21class ActorEventCoordinator : public ::EventCoordinator<::ActorEventListener> {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ActorGameplayHandler>> mActorGameplayHandler;
26 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnGameplayUserAddedSubscription;
27 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mPostReloadActorAddedSubscription;
28 // NOLINTEND
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual ~ActorEventCoordinator() /*override*/ = default;
34 // NOLINTEND
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCAPI void registerWithActorManagerEvents(::IActorManagerConnector& actorManagerConnector);
40
41 MCAPI void registerWithGameplayUserManagerEvents(::IGameplayUserManagerConnector& gameplayUserManagerConnector);
42
43 MCAPI ::CoordinatorResult sendEvent(::EventRef<::ActorGameplayEvent<::CoordinatorResult>> const& event);
44
45 MCAPI ::CoordinatorResult sendEvent(::EventRef<::MutableActorGameplayEvent<::CoordinatorResult>> event);
46
47 MCAPI void sendEvent(::EventRef<::ActorGameplayEvent<void>> const& event);
48
49 MCAPI void sendEvent(::EventRef<::MutableActorGameplayEvent<void>> event);
50 // NOLINTEND
51
52public:
53 // vftables
54 // NOLINTBEGIN
55 MCNAPI static void** $vftable();
56 // NOLINTEND
57};
Definition ActorEventCoordinator.h:21
static MCAPI void ** $vftable()
Definition ActorEventListener.h:20
Definition ActorGameplayHandler.h:13
Definition EventCoordinator.h:6
Definition EventRef.h:6
Definition IActorManagerConnector.h:14
Definition IGameplayUserManagerConnector.h:14
Definition ActorGameplayEvent.h:31
Definition MutableActorGameplayEvent.h:10