Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
LevelEventManager.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/deps/core/utility/pub_sub/Connector.h"
8#include "mc/deps/core/utility/pub_sub/Publisher.h"
9#include "mc/deps/shared_types/legacy/LevelEvent.h"
10#include "mc/world/level/ILevelEventManagerCoordinator.h"
11
12// auto generated forward declare list
13// clang-format off
14class CompoundTag;
15class IDimension;
17class PacketSender;
19class Vec3;
20namespace Bedrock::PubSub::ThreadModel { struct MultiThreaded; }
21// clang-format on
22
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<1, 1, bool const> mIsClientSide;
28 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::LevelEventCoordinator> const> mLevelEventCoordinator;
29 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::PacketSender>> mPacketSender;
30 ::ll::TypedStorage<
31 8,
32 128,
34 void(::SharedTypes::Legacy::LevelEvent, ::Vec3 const&, int),
36 0>>
37 mLevelEventDataPublisher;
38 ::ll::TypedStorage<
39 8,
40 128,
42 void(::SharedTypes::Legacy::LevelEvent, ::CompoundTag const&),
44 0>>
45 mLevelEventCompoundTagPublisher;
46 // NOLINTEND
47
48public:
49 // virtual functions
50 // NOLINTBEGIN
51 virtual ~LevelEventManager() /*override*/ = default;
52
53 virtual ::Bedrock::PubSub::Connector<void(::SharedTypes::Legacy::LevelEvent, ::Vec3 const&, int)>&
54 getLevelEventDataConnector() /*override*/;
55
56 virtual ::Bedrock::PubSub::Connector<void(::SharedTypes::Legacy::LevelEvent, ::CompoundTag const&)>&
57 getLevelEventCompoundTagConnector() /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
64 ::SharedTypes::Legacy::LevelEvent type,
65 ::CompoundTag const& tag,
66 ::UserEntityIdentifierComponent const* userIdentifierToExclude
67 );
68
70 ::SharedTypes::Legacy::LevelEvent type,
71 ::Vec3 const& pos,
72 int data,
73 ::UserEntityIdentifierComponent const* userIdentifierToExclude
74 );
75
76 MCNAPI void
77 broadcastLocalEvent(::IDimension& dimension, ::SharedTypes::Legacy::LevelEvent type, ::Vec3 const& pos, int data);
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCNAPI ::Bedrock::PubSub::Connector<void(::SharedTypes::Legacy::LevelEvent, ::Vec3 const&, int)>&
85
86 MCNAPI ::Bedrock::PubSub::Connector<void(::SharedTypes::Legacy::LevelEvent, ::CompoundTag const&)>&
88
89
90 // NOLINTEND
91};
Definition Publisher.h:25
Definition CompoundTag.h:18
Definition IDimension.h:24
Definition ILevelEventManagerCoordinator.h:15
Definition LevelEventCoordinator.h:22
Definition LevelEventManager.h:23
MCAPI void broadcastLevelEvent(::SharedTypes::Legacy::LevelEvent type, ::Vec3 const &pos, int data, ::UserEntityIdentifierComponent const *userIdentifierToExclude)
MCAPI ::Bedrock::PubSub::Connector< void(::SharedTypes::Legacy::LevelEvent, ::CompoundTag const &)> & $getLevelEventCompoundTagConnector()
MCAPI void broadcastLevelEvent(::SharedTypes::Legacy::LevelEvent type, ::CompoundTag const &tag, ::UserEntityIdentifierComponent const *userIdentifierToExclude)
MCAPI void broadcastLocalEvent(::IDimension &dimension, ::SharedTypes::Legacy::LevelEvent type, ::Vec3 const &pos, int data)
MCAPI ::Bedrock::PubSub::Connector< void(::SharedTypes::Legacy::LevelEvent, ::Vec3 const &, int)> & $getLevelEventDataConnector()
Definition PacketSender.h:17
Definition UserEntityIdentifierComponent.h:17
Definition Vec3.h:10