Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarCelestialDatabase.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-20 19:10:41 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-20 19:10:41 +1000
commit607be749451aa40e3619e7ceab0927d1fcec8233 (patch)
tree27bd18fa88ea129754443e916578aa4479cdfdc7 /source/game/StarCelestialDatabase.hpp
parentd0307e7aa77ddc8d15b6d1e036e563f3c9150287 (diff)
Fix server hang while looking for starter world
Diffstat (limited to 'source/game/StarCelestialDatabase.hpp')
-rw-r--r--source/game/StarCelestialDatabase.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/game/StarCelestialDatabase.hpp b/source/game/StarCelestialDatabase.hpp
index ac5b42b..22bac88 100644
--- a/source/game/StarCelestialDatabase.hpp
+++ b/source/game/StarCelestialDatabase.hpp
@@ -162,7 +162,8 @@ protected:
static Maybe<CelestialOrbitRegion> orbitRegion(
List<CelestialOrbitRegion> const& orbitRegions, int planetaryOrbitNumber);
- CelestialChunk const& getChunk(Vec2I const& chunkLocation);
+ typedef std::function<void(std::function<void()>&&)>&& UnlockDuringFunction;
+ CelestialChunk const& getChunk(Vec2I const& chunkLocation, UnlockDuringFunction unlockDuring = {});
CelestialChunk produceChunk(Vec2I const& chunkLocation) const;
Maybe<pair<CelestialParameters, HashMap<int, CelestialPlanet>>> produceSystem(