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