LeviLamina
Loading...
Searching...
No Matches
TickingAreaView.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/ticking/ITickingAreaView.h"
7
8// auto generated forward declare list
9// clang-format off
10class BlockSource;
11class ChunkPos;
12class ChunkSource;
13class ChunkViewSource;
14class Level;
15class LevelChunk;
16class Random;
17struct Bounds;
18struct DimensionType;
19struct Tick;
20namespace LevelChunkTicking { struct Registry; }
21// clang-format on
22
23class TickingAreaView : public ::ITickingAreaView {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mTickingArea;
28 ::ll::TypedStorage<4, 4, uint> mPolicyHandle;
29 ::ll::TypedStorage<1, 1, bool> mInfluenceDirty;
30 ::ll::TypedStorage<1, 1, bool> mDoneLoading;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 TickingAreaView();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40#ifdef LL_PLAT_S
41 virtual ~TickingAreaView() /*override*/;
42#else // LL_PLAT_C
43 virtual ~TickingAreaView() /*override*/ = default;
44#endif
45
46 virtual void init(::Bounds const& bounds, bool isCircle) /*override*/;
47
48 virtual void tick(::Tick const& currentTick, ::BlockSource& region, bool preload, bool randomize) /*override*/;
49
50 virtual void tickSeasons(::BlockSource& region, ::Random& random) /*override*/;
51
52 virtual ::DimensionType getDimensionId() const /*override*/;
53
54 virtual ::Bounds const getBoundsCopy() const /*override*/;
55
56 virtual bool isCircle() const /*override*/;
57
58 virtual bool isDoneLoading() const /*override*/;
59
60 virtual bool checkInitialLoadDone(::Tick currentLevelTick) /*override*/;
61
62 virtual bool checkLoadedChunkNeighborsDone(::BlockSource const& region, bool useDoneLoading) const /*override*/;
63
64 virtual void move(::Bounds const& bounds) /*override*/;
65
66 virtual ::std::unique_ptr<::ChunkViewSource> createChildSource() /*override*/;
67
68 virtual ::std::shared_ptr<::LevelChunk> getAvailableChunk(::ChunkPos const& cp) /*override*/;
69 // NOLINTEND
70
71public:
72 // member functions
73 // NOLINTBEGIN
74 MCAPI explicit TickingAreaView(::ChunkSource& parent);
75
76 MCAPI bool _tickChunk(
77 ::Tick const& currentTick,
78 ::BlockSource& region,
79 ::Level& level,
80 ::ChunkPos const& cp,
82 );
83 // NOLINTEND
84
85public:
86 // constructor thunks
87 // NOLINTBEGIN
88 MCAPI void* $ctor(::ChunkSource& parent);
89 // NOLINTEND
90
91public:
92 // destructor thunk
93 // NOLINTBEGIN
94#ifdef LL_PLAT_S
95 MCAPI void $dtor();
96#endif
97 // NOLINTEND
98
99public:
100 // virtual function thunks
101 // NOLINTBEGIN
102 MCAPI void $init(::Bounds const& bounds, bool isCircle);
103
104 MCAPI void $tick(::Tick const& currentTick, ::BlockSource& region, bool preload, bool randomize);
105
106 MCAPI void $tickSeasons(::BlockSource& region, ::Random& random);
107
108 MCAPI ::DimensionType $getDimensionId() const;
109
110 MCAPI ::Bounds const $getBoundsCopy() const;
111
112 MCAPI bool $isCircle() const;
113
114 MCAPI bool $isDoneLoading() const;
115
116 MCAPI bool $checkInitialLoadDone(::Tick currentLevelTick);
117
118 MCAPI bool $checkLoadedChunkNeighborsDone(::BlockSource const& region, bool useDoneLoading) const;
119
120 MCAPI void $move(::Bounds const& bounds);
121
122 MCAPI ::std::unique_ptr<::ChunkViewSource> $createChildSource();
123
124 MCAPI ::std::shared_ptr<::LevelChunk> $getAvailableChunk(::ChunkPos const& cp);
125
126
127 // NOLINTEND
128
129public:
130 // vftables
131 // NOLINTBEGIN
132 MCNAPI static void** $vftable();
133 // NOLINTEND
134};
Definition BlockSource.h:71
Definition ChunkPos.h:13
Definition ChunkSource.h:36
Definition ChunkViewSource.h:22
Definition ITickingAreaView.h:17
Definition LevelChunk.h:77
Definition Level.h:254
Definition Random.h:10
static MCAPI void ** $vftable()
Definition Bounds.h:8
Definition DimensionType.h:5
Definition Registry.h:10
Definition Tick.h:5