Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ChunkDebugStorage.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class ChunkPos;
8class LevelChunk;
9struct DimensionType;
10namespace Bedrock { struct ChunkDimensionDebugData; }
11namespace Bedrock::Profiling { class PerfClock; }
12namespace Bedrock::RefCount::details { struct KeepAlive; }
13// clang-format on
14
15namespace Bedrock {
16
17class ChunkDebugStorage {
18public:
19 // member variables
20 // NOLINTBEGIN
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 ChunkDebugStorage& operator=(ChunkDebugStorage const&);
39 ChunkDebugStorage(ChunkDebugStorage const&);
40
41public:
42 // member functions
43 // NOLINTBEGIN
45
46#ifdef LL_PLAT_C
47 MCNAPI void clearChunkMapServerData();
48
49 MCNAPI void dubious_clearSomeMoreDataSelectively();
50
51 MCNAPI ::std::shared_ptr<::Bedrock::ChunkDimensionDebugData const>
52 getChunkMapServerData(::DimensionType dimensionID);
53
54 MCNAPI void legacy_clearSomeDataSelectively();
55
56 MCNAPI void onChunkRebuildFinished(
57 ::ChunkPos const& pos,
58 ::std::chrono::time_point<
60 ::std::chrono::duration<int64, ::std::ratio<1, 1000000000000000000>>> start,
61 ::std::chrono::time_point<
63 ::std::chrono::duration<int64, ::std::ratio<1, 1000000000000000000>>> stop,
64 bool alreadyHadGeometry
65 );
66#endif
67
68 MCNAPI void onLegacyUpdateMap(bool const* legacyMap);
69
70 MCNAPI void onLiveSave(::LevelChunk const& levelChunk);
71
73 ::DimensionType dimensionID,
74 ::std::shared_ptr<::Bedrock::ChunkDimensionDebugData const> chunkMapDebugDraw
75 );
76
77#ifdef LL_PLAT_C
78 MCNAPI void setReusedSubChunksPercent(::ChunkPos const& pos, uchar reusedPercent);
79#endif
80 // NOLINTEND
81
82public:
83 // constructor thunks
84 // NOLINTBEGIN
85 MCNAPI void* $ctor();
86 // NOLINTEND
87};
88
89} // namespace Bedrock
MCAPI void setChunkMapServerData(::DimensionType dimensionID, ::std::shared_ptr<::Bedrock::ChunkDimensionDebugData const > chunkMapDebugDraw)
MCAPI void onLiveSave(::LevelChunk const &levelChunk)
MCAPI void onLegacyUpdateMap(bool const *legacyMap)
Definition PerfClock.h:7
Definition ChunkPos.h:13
Definition LevelChunk.h:76
Definition ChunkDimensionDebugData.h:15
Definition DimensionType.h:5
Definition Alias.h:14