summaryrefslogtreecommitdiffstats
path: root/src/SpawnPrepare.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/SpawnPrepare.h')
-rw-r--r--src/SpawnPrepare.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/SpawnPrepare.h b/src/SpawnPrepare.h
index 62daf1f84..88ef561ff 100644
--- a/src/SpawnPrepare.h
+++ b/src/SpawnPrepare.h
@@ -6,18 +6,26 @@ class cWorld;
/** Generates and lights the spawn area of the world. Runs as a separate thread. */
-class cSpawnPrepare:
- public std::enable_shared_from_this<cSpawnPrepare>
+class cSpawnPrepare : public std::enable_shared_from_this<cSpawnPrepare>
{
/** Private tag allows public constructors that can only be used with private access. */
- struct sMakeSharedTag {};
-public:
-
- cSpawnPrepare(cWorld & a_World, int a_SpawnChunkX, int a_SpawnChunkZ, int a_PrepareDistance, int a_FirstIdx, sMakeSharedTag);
+ struct sMakeSharedTag
+ {
+ };
+
+ public:
+ cSpawnPrepare(
+ cWorld & a_World,
+ int a_SpawnChunkX,
+ int a_SpawnChunkZ,
+ int a_PrepareDistance,
+ int a_FirstIdx,
+ sMakeSharedTag
+ );
static void PrepareChunks(cWorld & a_World, int a_SpawnChunkX, int a_SpawnChunkZ, int a_PrepareDistance);
-protected:
+ protected:
cWorld & m_World;
int m_SpawnChunkX;
int m_SpawnChunkZ;
@@ -47,6 +55,4 @@ protected:
void DecodeChunkCoords(int a_Idx, int & a_ChunkX, int & a_ChunkZ);
friend class cSpawnPrepareCallback;
-
};
-