diff options
author | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
commit | cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a (patch) | |
tree | f647b20e1823f1846af88e832cf82a4a02e96e69 /src/SpawnPrepare.h | |
parent | Improve clang-format config file, remove automatically enforced code style from contrib guide. (diff) | |
download | cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.gz cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.bz2 cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.lz cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.xz cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.zst cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.zip |
Diffstat (limited to 'src/SpawnPrepare.h')
-rw-r--r-- | src/SpawnPrepare.h | 24 |
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; - }; - |