LeviLamina
Loading...
Searching...
No Matches
SubChunkInsertManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/threading/TaskGroup.h"
7#include "mc/world/level/SubChunkPos.h"
8
9// auto generated forward declare list
10// clang-format off
11class Player;
13// clang-format on
14
16public:
17 // SubChunkInsertManager inner types declare
18 // clang-format off
20 // clang-format on
21
22 // SubChunkInsertManager inner types define
24 public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<4, 4, int> mDistanceToPlayerSq;
28 ::ll::TypedStorage<4, 12, ::SubChunkPos> mPosition;
29 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::SubChunkPacketHandler>> mHandler;
30 // NOLINTEND
31 };
32
33public:
34 // member variables
35 // NOLINTBEGIN
36 ::ll::TypedStorage<8, 24, ::std::vector<::SubChunkInsertManager::SubChunkInsertTaskInfo>> mQueuedSubChunkTasks;
37 ::ll::TypedStorage<8, 336, ::TaskGroup> mTaskGroup;
38 ::ll::TypedStorage<8, 8, uint64> mMaxInFlightTasksFloor;
39 ::ll::TypedStorage<8, 8, uint64> mMaxInFlightTasks;
40 ::ll::TypedStorage<1, 1, bool> mIsLeavingGame;
41 ::ll::TypedStorage<8, 64, ::std::function<::Player*()>> mGetPrimaryLocalPlayer;
42 // NOLINTEND
43
44public:
45 // prevent constructor by default
46 SubChunkInsertManager();
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI explicit SubChunkInsertManager(::std::function<::Player*()> getPrimaryLocalPlayer);
52
53 MCAPI void addSubChunkInsertTask(::std::shared_ptr<::SubChunkPacketHandler> handler);
54
55 MCAPI void tick();
56
57 MCAPI ~SubChunkInsertManager();
58 // NOLINTEND
59
60public:
61 // constructor thunks
62 // NOLINTBEGIN
63 MCAPI void* $ctor(::std::function<::Player*()> getPrimaryLocalPlayer);
64 // NOLINTEND
65
66public:
67 // destructor thunk
68 // NOLINTBEGIN
69 MCAPI void $dtor();
70 // NOLINTEND
71};
Definition Player.h:129
Definition SubChunkInsertManager.h:5
Definition SubChunkPacketHandler.h:5
Definition SubChunkInsertManager.h:13