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:
parent
2386bfda7e
commit
8339594206
3 changed files with 49 additions and 26 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue