Minetest  5.4.0
StaticObjectList Class Reference

#include <staticobject.h>

+ Collaboration diagram for StaticObjectList:

Public Member Functions

void insert (u16 id, const StaticObject &obj)
 
void remove (u16 id)
 
void serialize (std::ostream &os)
 
void deSerialize (std::istream &is)
 

Public Attributes

std::vector< StaticObjectm_stored
 
std::map< u16, StaticObjectm_active
 

Member Function Documentation

◆ deSerialize()

void StaticObjectList::deSerialize ( std::istream &  is)

References StaticObject::deSerialize(), errorstream, m_active, m_stored, readU16(), and readU8().

Referenced by MapBlock::deSerialize(), and MapBlock::deSerialize_pre22().

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

◆ insert()

void StaticObjectList::insert ( u16  id,
const StaticObject obj 
)
inline

References dstream, FATAL_ERROR, m_active, and m_stored.

Referenced by ServerEnvironment::saveStaticToBlock().

+ Here is the caller graph for this function:

◆ remove()

void StaticObjectList::remove ( u16  id)
inline

References m_active, and warningstream.

Referenced by ServerEnvironment::deleteStaticFromBlock().

+ Here is the caller graph for this function:

◆ serialize()

void StaticObjectList::serialize ( std::ostream &  os)

References errorstream, m_active, m_stored, StaticObject::serialize(), U16_MAX, writeU16(), and writeU8().

Referenced by MapBlock::serialize().

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

Member Data Documentation

◆ m_active

◆ m_stored


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