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/world/level/MobEventsIndex.h"
7
8// auto generated forward declare list
9// clang-format off
10class BasicTimer;
11class CompoundTag;
13class LevelStorage;
14class MobEvent;
15namespace Bedrock::PubSub { class Subscription; }
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 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 0
35 virtual ~MobEvents() = default;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI explicit MobEvents(::LevelStorage& levelStorage);
42
43 MCAPI void _onSaveEvent(::LevelStorage&);
44
45 MCAPI ::MobEventsIndex getIndexFromName(::std::string const& name) const;
46
47 MCAPI void initializeWithLevelStorageManagerConnector(::ILevelStorageManagerConnector& levelStorageManagerConnector
48 );
49
50 MCAPI void readFromLevelStorage();
51
52 MCAPI ::std::unique_ptr<::CompoundTag> serialize() const;
53
54 MCAPI void writeToLevelStorage();
55 // NOLINTEND
56
57public:
58 // static variables
59 // NOLINTBEGIN
60 MCAPI static ::std::string const& EVENTS_ENABLED_STRING();
61 // NOLINTEND
62
63public:
64 // constructor thunks
65 // NOLINTBEGIN
66 MCAPI void* $ctor(::LevelStorage& levelStorage);
67 // NOLINTEND
68
69public:
70 // destructor thunk
71 // NOLINTBEGIN
72
73 // NOLINTEND
74
75public:
76 // vftables
77 // NOLINTBEGIN
78 MCAPI static void** $vftable();
79 // NOLINTEND
80};
Definition BasicTimer.h:5
Definition CompoundTag.h:13
Definition ILevelStorageManagerConnector.h:13
Definition LevelStorage.h:24
Definition MobEvent.h:5
Definition MobEvents.h:18
Definition serialize.h:11