Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
TouchInteraction Struct Reference

#include <itemdef.h>

Public Member Functions

 TouchInteraction ()
 
TouchInteractionMode getMode (PointedThingType pointed_type) const
 
void serialize (std::ostream &os) const
 
void deSerialize (std::istream &is)
 

Public Attributes

TouchInteractionMode pointed_nothing
 
TouchInteractionMode pointed_node
 
TouchInteractionMode pointed_object
 

Constructor & Destructor Documentation

◆ TouchInteraction()

TouchInteraction::TouchInteraction ( )

Member Function Documentation

◆ deSerialize()

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

References pointed_node, pointed_nothing, pointed_object, readU8(), and TouchInteractionMode_END.

Referenced by ItemDefinition::deSerialize().

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

◆ getMode()

TouchInteractionMode TouchInteraction::getMode ( PointedThingType  pointed_type) const

References FATAL_ERROR, g_settings, Settings::get(), LONG_DIG_SHORT_PLACE, pointed_node, pointed_nothing, pointed_object, POINTEDTHING_NODE, POINTEDTHING_NOTHING, POINTEDTHING_OBJECT, SHORT_DIG_LONG_PLACE, and TouchInteractionMode_USER.

Referenced by Game::processPlayerInteraction().

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

◆ serialize()

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

References pointed_node, pointed_nothing, pointed_object, and writeU8().

Referenced by ItemDefinition::serialize().

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

Member Data Documentation

◆ pointed_node

◆ pointed_nothing

◆ pointed_object


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