LeviLamina
Loading...
Searching...
No Matches
MobEvents.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/BasicTimer.h"
7#include "mc/deps/core/utility/pub_sub/Subscription.h"
8#include "mc/world/level/MobEvent.h"
9#include "mc/world/level/MobEventsIndex.h"
10
11// auto generated forward declare list
12// clang-format off
13class CompoundTag;
15class LevelStorage;
16// clang-format on
17
18class MobEvents {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 216, ::std::array<::MobEvent, 3>> mMobEvents;
23 ::ll::TypedStorage<8, 80, ::BasicTimer> mSaveTimer;
24 ::ll::TypedStorage<8, 8, ::LevelStorage&> mLevelStorage;
25 ::ll::TypedStorage<1, 1, bool> mEventsEnabled;
26 ::ll::TypedStorage<1, 1, bool> mNeedsToSave;
27 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnSaveSubscription;
28 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnLevelStorageManagerStartLeaveGameSubscription;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 MobEvents& operator=(MobEvents const&);
34 MobEvents(MobEvents const&);
35 MobEvents();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 // vIndex: 0
41 virtual ~MobEvents() = default;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCNAPI explicit MobEvents(::LevelStorage& levelStorage);
48
50
51 MCNAPI ::MobEventsIndex getIndexFromName(::std::string const& name) const;
52
53 MCNAPI void
55
56 MCNAPI void readFromLevelStorage();
57
58 MCNAPI ::std::unique_ptr<::CompoundTag> serialize() const;
59
60 MCNAPI void writeToLevelStorage();
61 // NOLINTEND
62
63public:
64 // static variables
65 // NOLINTBEGIN
66 MCNAPI static ::std::string const& EVENTS_ENABLED_STRING();
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCNAPI void* $ctor(::LevelStorage& levelStorage);
73 // NOLINTEND
74
75public:
76 // vftables
77 // NOLINTBEGIN
78 MCNAPI static void** $vftable();
79 // NOLINTEND
80};
Definition CompoundTag.h:13
Definition ILevelStorageManagerConnector.h:13
Definition LevelStorage.h:25
Definition MobEvents.h:18
static MCAPI ::std::string const & EVENTS_ENABLED_STRING()
MCAPI void _onSaveEvent(::LevelStorage &)
MCAPI ::std::unique_ptr<::CompoundTag > serialize() const
MCAPI::MobEventsIndex getIndexFromName(::std::string const &name) const
MCAPI MobEvents(::LevelStorage &levelStorage)
MCAPI void readFromLevelStorage()
MCAPI void writeToLevelStorage()
MCAPI void * $ctor(::LevelStorage &levelStorage)
static MCAPI void ** $vftable()
MCAPI void initializeWithLevelStorageManagerConnector(::ILevelStorageManagerConnector &levelStorageManagerConnector)