#include <staticobject.h>
Public Member Functions | |
StaticObject ()=default | |
StaticObject (const ServerActiveObject *s_obj, const v3f &pos_) | |
void | serialize (std::ostream &os) const |
void | deSerialize (std::istream &is, u8 version) |
Public Attributes | |
u8 | type = 0 |
v3f | pos |
std::string | data |
|
default |
StaticObject::StaticObject | ( | const ServerActiveObject * | s_obj, |
const v3f & | pos_ ) |
References data, ServerActiveObject::getStaticData(), and ServerActiveObject::isStaticAllowed().
void StaticObject::deSerialize | ( | std::istream & | is, |
u8 | version ) |
References data, deSerializeString16(), pos, readU8(), readV3F1000(), and type.
Referenced by StaticObjectList::deSerialize().
void StaticObject::serialize | ( | std::ostream & | os | ) | const |
References clampToF1000(), data, pos, serializeString16(), type, writeU8(), and writeV3F1000().
Referenced by StaticObjectList::serialize().
std::string StaticObject::data |
Referenced by StaticObject(), ServerEnvironment::deactivateFarObjects(), deSerialize(), and serialize().
v3f StaticObject::pos |
Referenced by ServerEnvironment::deactivateFarObjects(), deSerialize(), and serialize().
u8 StaticObject::type = 0 |
Referenced by deSerialize(), and serialize().