LeviLamina
Loading...
Searching...
No Matches
ChunkTickRangeManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class ChunkPos;
8class ChunkSource;
9class Dimension;
11class LevelChunk;
12namespace Bedrock::PubSub { class Subscription; }
13// clang-format on
14
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnChunkLoaded;
20 ::ll::TypedStorage<4, 4, uint> mChunkTickRange;
21 ::ll::TypedStorage<4, 4, uint> mMaxSimRadiusInChunks;
22 // NOLINTEND
23
24public:
25 // member functions
26 // NOLINTBEGIN
27 MCAPI ChunkTickRangeManager(uint chunkTickRange, uint maxSimRadiusInChunks);
28
29 MCAPI void _onChunkLoaded(::ChunkSource&, ::LevelChunk& levelChunk, int closestPlayerDistanceSquared);
30
31 MCAPI bool isChunkInTickRange(::LevelChunk const& lc, ::std::optional<int> minDistToPlayer) const;
32
33 MCAPI bool isChunkInTickRange(
34 ::ChunkPos const& chunkPos,
35 ::Dimension const& dimension,
36 bool serverBuildRatio,
37 float chunkViewRadius,
38 int numActiveUsers,
39 int shouldServerGenerate
40 ) const;
41
42 MCAPI void registerForLevelChunkEvents(::ILevelChunkEventManagerConnector& levelChunkEventManagerConnector);
43
45 // NOLINTEND
46
47public:
48 // constructor thunks
49 // NOLINTBEGIN
50 MCAPI void* $ctor(uint chunkTickRange, uint maxSimRadiusInChunks);
51 // NOLINTEND
52
53public:
54 // destructor thunk
55 // NOLINTBEGIN
56 MCAPI void $dtor();
57 // NOLINTEND
58};
Definition ChunkPos.h:11
Definition ChunkSource.h:34
Definition ChunkTickRangeManager.h:15
Definition Dimension.h:83
Definition ILevelChunkEventManagerConnector.h:14
Definition LevelChunk.h:73