1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Handle static_save changes at runtime and between restarts

This commit is contained in:
sfan5 2024-03-02 09:54:53 +01:00
parent 2386bfda7e
commit 8339594206
3 changed files with 49 additions and 26 deletions

View file

@ -280,15 +280,6 @@ public:
*/
u16 addActiveObject(std::unique_ptr<ServerActiveObject> object);
/*
Add an active object as a static object to the corresponding
MapBlock.
Caller allocates memory, ServerEnvironment frees memory.
Return value: true if succeeded, false if failed.
(note: not used, pending removal from engine)
*/
//bool addActiveObjectAsStatic(ServerActiveObject *object);
/*
Find out what new objects have been added to
inside a radius around a position
@ -428,7 +419,7 @@ private:
Returns 0 if not added and thus deleted.
*/
u16 addActiveObjectRaw(std::unique_ptr<ServerActiveObject> object,
bool set_changed, u32 dtime_s);
const StaticObject *from_static, u32 dtime_s);
/*
Remove all objects that satisfy (isGone() && m_known_by_count==0)