LeviLamina
Loading...
Searching...
No Matches
ChunkGenerationManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/SubClientId.h"
7
8// auto generated forward declare list
9// clang-format off
10class ChunkPos;
11class ChunkViewOwner;
14class SpinLockImpl;
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 32, ::SpinLockImpl> mGenerationRequestLock;
22 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ChunkViewOwner, ::std::unordered_set<::ChunkPos>>>
23 mGenerationRequests;
24 // NOLINTEND
25
26public:
27 // member functions
28 // NOLINTBEGIN
29 MCAPI void addServerChunksToPacket(
30 ::NetworkIdentifier const& player,
31 ::SubClientId clientId,
33 );
34
35 MCAPI void clearAllGenerationRequests(::NetworkIdentifier const& player, ::SubClientId clientId);
36
37 MCAPI bool hasPendingGenerationRequests(::NetworkIdentifier const& player, ::SubClientId clientId) const;
38 // NOLINTEND
39};
Definition ChunkGenerationManager.h:17
Definition ChunkPos.h:11
Definition ChunkViewOwner.h:13
Definition NetworkChunkPublisherUpdatePacket.h:18
Definition NetworkIdentifier.h:11
Definition SpinLockImpl.h:5