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#include "mc/platform/threading/SpinLockImpl.h"
8#include "mc/world/level/ChunkPos.h"
9
10// auto generated forward declare list
11// clang-format off
12class ChunkViewOwner;
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
30 ::NetworkIdentifier const& player,
31 ::SubClientId clientId,
33 );
34
35 MCNAPI void clearAllGenerationRequests(::NetworkIdentifier const& player, ::SubClientId clientId);
36
37 MCNAPI bool hasPendingGenerationRequests(::NetworkIdentifier const& player, ::SubClientId clientId) const;
38 // NOLINTEND
39};
Definition ChunkGenerationManager.h:17
MCAPI void addServerChunksToPacket(::NetworkIdentifier const &player, ::SubClientId clientId, ::NetworkChunkPublisherUpdatePacket &updatePacket)
MCAPI void clearAllGenerationRequests(::NetworkIdentifier const &player, ::SubClientId clientId)
MCAPI bool hasPendingGenerationRequests(::NetworkIdentifier const &player, ::SubClientId clientId) const
Definition ChunkViewOwner.h:9
Definition NetworkChunkPublisherUpdatePacket.h:18
Definition NetworkIdentifier.h:10