Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
StaticObject Struct Reference

#include <staticobject.h>

+ Collaboration diagram for StaticObject:

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
 

Constructor & Destructor Documentation

◆ StaticObject() [1/2]

StaticObject::StaticObject ( )
default

◆ StaticObject() [2/2]

StaticObject::StaticObject ( const ServerActiveObject * s_obj,
const v3f & pos_ )

References data, ServerActiveObject::getStaticData(), and ServerActiveObject::isStaticAllowed().

+ Here is the call graph for this function:

Member Function Documentation

◆ deSerialize()

void StaticObject::deSerialize ( std::istream & is,
u8 version )

References data, deSerializeString16(), pos, readU8(), readV3F1000(), and type.

Referenced by StaticObjectList::deSerialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ serialize()

void StaticObject::serialize ( std::ostream & os) const

References clampToF1000(), data, pos, serializeString16(), type, writeU8(), and writeV3F1000().

Referenced by StaticObjectList::serialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ data

std::string StaticObject::data

◆ pos

◆ type

u8 StaticObject::type = 0

Referenced by deSerialize(), and serialize().


The documentation for this struct was generated from the following files: