1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Implement unloading of static_save=false objects according to existing docs (#10485)

This commit is contained in:
sfan5
2020-10-19 20:38:33 +02:00
committed by GitHub
parent 660115c1ab
commit 4f2303849e
4 changed files with 17 additions and 3 deletions

View File

@@ -83,6 +83,7 @@ public:
void addedToEnvironment(u32 dtime_s);
void removingFromEnvironment();
bool isStaticAllowed() const { return false; }
bool shouldUnload() const { return false; }
std::string getClientInitializationData(u16 protocol_version);
void getStaticData(std::string *result) const;
void step(float dtime, bool send_recommended);