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

summaryrefslogtreecommitdiff
path: root/source/game/StarWorldStorage.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-07-28 10:53:14 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-07-28 10:53:14 +1000
commit539819003051a47b86c61447e0e59044b0775b95 (patch)
treebf494079435a35b24c55bfc7779723d9df6e63ed /source/game/StarWorldStorage.hpp
parente1be2ab4297ba7a84489c87799857d986086df3d (diff)
relax sector unload criteria
Diffstat (limited to 'source/game/StarWorldStorage.hpp')
-rw-r--r--source/game/StarWorldStorage.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarWorldStorage.hpp b/source/game/StarWorldStorage.hpp
index 588204f..f0256d4 100644
--- a/source/game/StarWorldStorage.hpp
+++ b/source/game/StarWorldStorage.hpp
@@ -161,7 +161,7 @@ public:
// Ticks down the TTL on sectors and generation queue entries, stores old
// sectors, expires old generation queue entries, and unloads any zombie
// entities.
- void tick(float dt);
+ void tick(float dt, String const* worldId = nullptr);
// Unload all sectors that can be unloaded (if force is specified, ALWAYS
// unloads all sectors)
@@ -265,7 +265,7 @@ private:
// Store and unload the given sector to the given level, given the state of
// the surrounding sectors. If force is true, will always unload to the
// given level.
- void unloadSectorToLevel(Sector const& sector, SectorLoadLevel targetLoadLevel, bool force = false);
+ bool unloadSectorToLevel(Sector const& sector, SectorLoadLevel targetLoadLevel, bool force = false);
// Sync this sector to disk without unloading it.
void syncSector(Sector const& sector);