diff options
author | tycho <work.tycho@gmail.com> | 2015-05-30 12:11:17 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-05-30 12:11:17 +0200 |
commit | 06a74e45e247a2d23c6b5a238a3c1b9b17b6c341 (patch) | |
tree | 965c54b25acc4a3b7dee194f9194f885299e5656 /src/SpawnPrepare.h | |
parent | Clean up Spawn Prepare (diff) | |
download | cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar.gz cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar.bz2 cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar.lz cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar.xz cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar.zst cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.zip |
Diffstat (limited to '')
-rw-r--r-- | src/SpawnPrepare.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/SpawnPrepare.h b/src/SpawnPrepare.h index bd5c0e0c6..cc0da504e 100644 --- a/src/SpawnPrepare.h +++ b/src/SpawnPrepare.h @@ -6,8 +6,7 @@ class cWorld; /** Generates and lights the spawn area of the world. Runs as a separate thread. */ -class cSpawnPrepare: - public cChunkCoordCallback +class cSpawnPrepare { public: @@ -39,9 +38,12 @@ protected: cSpawnPrepare(cWorld & a_World, int a_SpawnChunkX, int a_SpawnChunkZ, int a_PrepareDistance, int a_FirstIdx); - virtual void Call(int a_ChunkX, int a_ChunkZ) override; + void PreparedChunkCallback(int a_ChunkX, int a_ChunkZ); /** Decodes the index into chunk coords. Provides the specific chunk ordering. */ void DecodeChunkCoords(int a_Idx, int & a_ChunkX, int & a_ChunkZ); + + friend class cSpawnPrepareCallback; + }; |