Minetest  5.4.0
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)
 
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, and ServerActiveObject::getStaticData().

+ 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)

References 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

◆ pos

◆ type

u8 StaticObject::type = 0

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