LeviLamina
Loading...
Searching...
No Matches
ServerInstanceEventCoordinator.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/world/events/EventCoordinator.h"
8#include "mc/world/events/EventRef.h"
9#include "mc/world/events/ServerInstanceGameplayEvent.h"
10
11// auto generated forward declare list
12// clang-format off
13class Level;
14class Minecraft;
15class ServerInstance;
18// clang-format on
19
20class ServerInstanceEventCoordinator : public ::EventCoordinator<::ServerInstanceEventListener> {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ServerInstanceEventHandler>> mServerInstanceEventHandler;
25 // NOLINTEND
26
27public:
28 // member functions
29 // NOLINTBEGIN
30 MCFOLD void registerServerInstanceEventHandler(::std::unique_ptr<::ServerInstanceEventHandler>&& handler);
31
32 MCAPI void sendEvent(::EventRef<::ServerInstanceGameplayEvent<void>> const& event);
33
34 MCAPI void sendServerInitializeEnd(::ServerInstance& instance);
35
36 MCAPI void sendServerInitializeStart(::ServerInstance& instance);
37
38 MCAPI void sendServerLevelInitialized(::ServerInstance& instance, ::Level& level);
39
40 MCAPI void sendServerMinecraftInitialized(
41 ::ServerInstance& instance,
42 ::Bedrock::NotNullNonOwnerPtr<::Minecraft> const& minecraft
43 );
44
45#ifdef LL_PLAT_C
46 MCAPI void sendServerResume(::ServerInstance& instance);
47
48 MCAPI void sendServerSuspend(::ServerInstance& instance);
49#endif
50
51 MCAPI void sendServerThreadStarted(::ServerInstance& instance);
52
53 MCAPI void sendServerThreadStopped(::ServerInstance& instance);
54
55 MCAPI void sendServerUpdateEnd(::ServerInstance& instance);
56
57 MCAPI void sendServerUpdateStart(::ServerInstance& instance);
58
59 MCAPI void sendStartLeaveGame(::ServerInstance& instance);
60 // NOLINTEND
61
62public:
63 // vftables
64 // NOLINTBEGIN
65 MCNAPI static void** $vftable();
66 // NOLINTEND
67};
Definition EventCoordinator.h:6
Definition EventRef.h:6
Definition Level.h:255
Definition Minecraft.h:61
Definition ServerInstanceEventCoordinator.h:20
static MCAPI void ** $vftable()
Definition ServerInstanceEventHandler.h:10
Definition ServerInstanceEventListener.h:17
Definition ServerInstance.h:64
Definition ServerInstanceGameplayEvent.h:6