LeviLamina
Loading...
Searching...
No Matches
SubChunkInterlocker.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/platform/threading/SpinLockImpl.h"
7
8
// auto generated forward declare list
9
// clang-format off
10
class
SpinLockImpl
;
11
class
SubChunkPos
;
12
// clang-format on
13
14
class
SubChunkInterlocker
{
15
public
:
16
// member variables
17
// NOLINTBEGIN
18
::ll::TypedStorage<8, 32, ::SpinLockImpl> mSpinLock;
19
::ll::TypedStorage<8, 24, ::std::vector<::SubChunkPos>> mLocked3x3x3SubChunks;
20
// NOLINTEND
21
22
public
:
23
// member functions
24
// NOLINTBEGIN
25
MCAPI_C
bool
tryLock3x3x3(
::SubChunkPos
const
& center);
26
27
MCAPI
bool
tryLock3x3xN(
::SubChunkPos
const
& bottom,
int
top);
28
29
MCAPI
void
unlock3x3xN(
::SubChunkPos
const
& bottom,
int
top);
30
// NOLINTEND
31
};
SpinLockImpl
Definition
SpinLockImpl.h:5
SubChunkInterlocker
Definition
SubChunkInterlocker.h:14
SubChunkPos
Definition
SubChunkPos.h:5
src
mc
world
level
chunk
SubChunkInterlocker.h
Generated on
for LeviLamina by
1.16.1