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