LeviLamina
Loading...
Searching...
No Matches
DynamicPropertiesManager.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/Subscription.h"
8
9// auto generated forward declare list
10// clang-format off
11class DebuggerStat;
15class LevelStorage;
16namespace cereal { struct ReflectionCtx; }
17// clang-format on
18
19class DynamicPropertiesManager {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 8, uint64> mTotalBytesSaved;
24 ::ll::TypedStorage<4, 4, int> mWatchdogTick;
25 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnSaveLevelDataSubscription;
26 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DynamicProperties>> mLevelDynamicProperties;
27 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::cereal::ReflectionCtx const>> mCerealContext;
28 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DebuggerStatCollector>> mMemoryStatCollector;
29 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DebuggerStatCollector>> mPropertiesStatCollector;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 DynamicPropertiesManager();
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCAPI explicit DynamicPropertiesManager(::cereal::ReflectionCtx const& ctx);
40
41 MCAPI ::std::optional<::DebuggerStat> _collectMemoryStats(uint64, uint64, uint64);
42
43 MCAPI ::std::optional<::DebuggerStat> _collectPropertiesStats(uint64, uint64, uint64);
44
45 MCAPI ::DynamicProperties& getOrAddLevelDynamicProperties();
46
47 MCAPI void readFromLevelStorage(::LevelStorage& levelStorage);
48
49 MCAPI void registerLevelStorageManagerListener(::ILevelStorageManagerConnector& levelStorageManagerConnector);
50
51 MCAPI void writeToLevelStorage(::LevelStorage& levelStorage);
52
53 MCAPI ~DynamicPropertiesManager();
54 // NOLINTEND
55
56public:
57 // constructor thunks
58 // NOLINTBEGIN
59 MCAPI void* $ctor(::cereal::ReflectionCtx const& ctx);
60 // NOLINTEND
61
62public:
63 // destructor thunk
64 // NOLINTBEGIN
65 MCAPI void $dtor();
66 // NOLINTEND
67};
Definition DebuggerStatCollector.h:15
Definition DebuggerStat.h:10
Definition DynamicProperties.h:16
Definition ILevelStorageManagerConnector.h:13
Definition LevelStorage.h:25
Definition ReflectionCtx.h:11
Definition ctx.h:5