Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
ItemImageDef Struct Reference

#include <itemdef.h>

+ Collaboration diagram for ItemImageDef:

Public Member Functions

ItemImageDefoperator= (const std::string &other_name)
 
void reset ()
 
void serialize (std::ostream &os, u16 protocol_version) const
 
void deSerialize (std::istream &is, u16 protocol_version)
 

Public Attributes

std::string name
 
TileAnimationParams animation
 

Member Function Documentation

◆ deSerialize()

void ItemImageDef::deSerialize ( std::istream & is,
u16 protocol_version )

References animation, TileAnimationParams::deSerialize(), deSerializeString16(), and name.

Referenced by ItemDefinition::deSerialize().

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

◆ operator=()

ItemImageDef & ItemImageDef::operator= ( const std::string & other_name)
inline

◆ reset()

void ItemImageDef::reset ( )
inline

References animation, name, TAT_NONE, and TileAnimationParams::type.

Referenced by ItemDefinition::reset().

+ Here is the caller graph for this function:

◆ serialize()

void ItemImageDef::serialize ( std::ostream & os,
u16 protocol_version ) const

References animation, TileAnimationParams::extractFirstFrame(), name, TileAnimationParams::serialize(), and serializeString16().

Referenced by ItemDefinition::serialize().

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

Member Data Documentation

◆ animation

◆ name


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