mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
ServerEnvironment & StaticObject cleanups
* isFreeServerActiveObjectId is now part of ServerEnvironment * getFreeServerActiveObjectId is now part of ServerEnvironment * StaticObject constructor now take ServerActiveObject instead of type + string. This permits to remove a big string copy in some code parts
This commit is contained in:
@@ -19,7 +19,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
|
||||
#include "staticobject.h"
|
||||
#include "util/serialize.h"
|
||||
#include "log.h"
|
||||
#include "content_sao.h"
|
||||
|
||||
StaticObject::StaticObject(const ServerActiveObject *s_obj, const v3f &pos_):
|
||||
type(s_obj->getType()),
|
||||
pos(pos_)
|
||||
{
|
||||
s_obj->getStaticData(&data);
|
||||
}
|
||||
|
||||
void StaticObject::serialize(std::ostream &os)
|
||||
{
|
||||
|
Reference in New Issue
Block a user