LeviLamina
Loading...
Searching...
No Matches
TickingAreaListBase.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class BlockPos;
8class ITickingArea;
9class LevelStorage;
10class Random;
11class Vec3;
12struct ActorUniqueID;
14// clang-format on
15
17public:
18 // TickingAreaListBase inner types define
19 using RequeueAreaFunc = ::std::function<void(::ITickingArea const&)>;
20
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::ITickingArea>>> mTickingAreas;
25 // NOLINTEND
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual ~TickingAreaListBase();
31
32 virtual bool removeDistantEntityAreasAndCheckForRemoved(
33 ::std::vector<::Vec3> const& playerPositions,
34 ::std::function<void(::ITickingArea const&)> requeue,
35 ::LevelStorage& levelStorage
36 );
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI bool _shouldRemoveArea(uint idx, ::std::vector<::Vec3> const& playerPositions) const;
43
44 MCAPI uint countEntityTickingAreas() const;
45
46 MCAPI void destroyAreas();
47
48 MCAPI ::std::vector<::std::shared_ptr<::ITickingArea>> findStandaloneAreasContaining(::BlockPos const& position);
49
50 MCAPI ::std::vector<::std::shared_ptr<::ITickingArea>> findStandaloneAreasNamed(::std::string const& name) const;
51
52 MCAPI ::std::shared_ptr<::ITickingArea> getAreaFor(::ActorUniqueID const& entityId) const;
53
54 MCFOLD ::std::vector<::std::shared_ptr<::ITickingArea>> const& getAreas() const;
55
56 MCAPI ::std::vector<::TickingAreaDescription> getStandaloneTickingAreaDescriptions() const;
57
58 MCAPI void processRemoves();
59
60 MCAPI ::std::vector<::TickingAreaDescription> removeAllStandaloneAreas(::LevelStorage& levelStorage);
61
62 MCAPI ::std::vector<::TickingAreaDescription>
63 removeAreas(::std::vector<::std::shared_ptr<::ITickingArea>> const& areasToRemove, ::LevelStorage& levelStorage);
64
65 MCAPI void tickSeasons(::Random& random);
66 // NOLINTEND
67
68public:
69 // destructor thunk
70 // NOLINTBEGIN
71 MCAPI void $dtor();
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCAPI bool $removeDistantEntityAreasAndCheckForRemoved(
78 ::std::vector<::Vec3> const& playerPositions,
79 ::std::function<void(::ITickingArea const&)> requeue,
80 ::LevelStorage& levelStorage
81 );
82
83
84 // NOLINTEND
85
86public:
87 // vftables
88 // NOLINTBEGIN
89 MCNAPI static void** $vftable();
90 // NOLINTEND
91};
Definition BlockPos.h:21
Definition ITickingArea.h:25
Definition LevelStorage.h:26
Definition Random.h:10
Definition TickingAreaListBase.h:16
static MCAPI void ** $vftable()
Definition Vec3.h:10
Definition ActorUniqueID.h:10
Definition TickingAreaDescription.h:9