mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
ActiveObjectMgr fixes (#13560)
This commit is contained in:
parent
929a13a9a0
commit
11ec75c2ad
17 changed files with 204 additions and 153 deletions
|
@ -277,7 +277,7 @@ public:
|
|||
Returns the id of the object.
|
||||
Returns 0 if not added and thus deleted.
|
||||
*/
|
||||
u16 addActiveObject(ServerActiveObject *object);
|
||||
u16 addActiveObject(std::unique_ptr<ServerActiveObject> object);
|
||||
|
||||
/*
|
||||
Add an active object as a static object to the corresponding
|
||||
|
@ -422,7 +422,8 @@ private:
|
|||
Returns the id of the object.
|
||||
Returns 0 if not added and thus deleted.
|
||||
*/
|
||||
u16 addActiveObjectRaw(ServerActiveObject *object, bool set_changed, u32 dtime_s);
|
||||
u16 addActiveObjectRaw(std::unique_ptr<ServerActiveObject> object,
|
||||
bool set_changed, u32 dtime_s);
|
||||
|
||||
/*
|
||||
Remove all objects that satisfy (isGone() && m_known_by_count==0)
|
||||
|
@ -518,5 +519,6 @@ private:
|
|||
MetricGaugePtr m_active_block_gauge;
|
||||
MetricGaugePtr m_active_object_gauge;
|
||||
|
||||
ServerActiveObject* createSAO(ActiveObjectType type, v3f pos, const std::string &data);
|
||||
std::unique_ptr<ServerActiveObject> createSAO(ActiveObjectType type, v3f pos,
|
||||
const std::string &data);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue