Skip to content
LeviMC
English
AutoLightDark
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
40
41 MCNAPI void _collectMemoryStats(::DebuggerStat& dynamicPropertiesStats);
42
43 MCNAPI void _collectPropertiesStats(::DebuggerStat& dynamicProperties);
44
45 MCNAPI ::DynamicProperties& getOrAddLevelDynamicProperties();
46
47 MCNAPI void readFromLevelStorage(::LevelStorage& levelStorage);
48
49 MCNAPI void registerLevelStorageManagerListener(::ILevelStorageManagerConnector& levelStorageManagerConnector);
50
51 MCNAPI void writeToLevelStorage(::LevelStorage& levelStorage);
52
54 // NOLINTEND
55
56public:
57 // constructor thunks
58 // NOLINTBEGIN
59 MCNAPI void* $ctor(::cereal::ReflectionCtx const& ctx);
60 // NOLINTEND
61
62public:
63 // destructor thunk
64 // NOLINTBEGIN
65 MCNAPI void $dtor();
66 // NOLINTEND
67};
Definition DebuggerStatCollector.h:15
Definition DebuggerStat.h:10
MCAPI void _collectPropertiesStats(::DebuggerStat &dynamicProperties)
MCAPI void * $ctor(::cereal::ReflectionCtx const &ctx)
MCAPI void _collectMemoryStats(::DebuggerStat &dynamicPropertiesStats)
MCAPI DynamicPropertiesManager(::cereal::ReflectionCtx const &ctx)
MCAPI::DynamicProperties & getOrAddLevelDynamicProperties()
MCAPI void registerLevelStorageManagerListener(::ILevelStorageManagerConnector &levelStorageManagerConnector)
MCAPI void writeToLevelStorage(::LevelStorage &levelStorage)
MCAPI void readFromLevelStorage(::LevelStorage &levelStorage)
Definition DynamicProperties.h:16
Definition ILevelStorageManagerConnector.h:13
Definition LevelStorage.h:26
Definition ReflectionCtx.h:11
Definition ctx.h:5