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 // vIndex: 0
34 virtual ~ActorEventCoordinator() /*override*/ = default;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI void registerWithActorManagerEvents(::IActorManagerConnector& actorManagerConnector);
41
42 MCAPI void registerWithGameplayUserManagerEvents(::IGameplayUserManagerConnector& gameplayUserManagerConnector);
43
44 MCAPI ::CoordinatorResult sendEvent(::EventRef<::MutableActorGameplayEvent<::CoordinatorResult>> event);
45
46 MCAPI ::CoordinatorResult sendEvent(::EventRef<::ActorGameplayEvent<::CoordinatorResult>> const& event);
47
48 MCAPI void sendEvent(::EventRef<::MutableActorGameplayEvent<void>> event);
49
50 MCAPI void sendEvent(::EventRef<::ActorGameplayEvent<void>> const& event);
51 // NOLINTEND
52
53public:
54 // vftables
55 // NOLINTBEGIN
56 MCNAPI static void** $vftable();
57 // NOLINTEND
58};
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