Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
NodeTimer Class Reference

#include <nodetimer.h>

Public Member Functions

 NodeTimer ()=default
 
 NodeTimer (const v3s16 &position_)
 
 NodeTimer (f32 timeout_, f32 elapsed_, v3s16 position_)
 
 ~NodeTimer ()=default
 
void serialize (std::ostream &os) const
 
void deSerialize (std::istream &is)
 

Public Attributes

f32 timeout = 0.0f
 
f32 elapsed = 0.0f
 
v3s16 position
 

Constructor & Destructor Documentation

◆ NodeTimer() [1/3]

NodeTimer::NodeTimer ( )
default

◆ NodeTimer() [2/3]

NodeTimer::NodeTimer ( const v3s16 & position_)
inline

◆ NodeTimer() [3/3]

NodeTimer::NodeTimer ( f32 timeout_,
f32 elapsed_,
v3s16 position_ )
inline

◆ ~NodeTimer()

NodeTimer::~NodeTimer ( )
default

Member Function Documentation

◆ deSerialize()

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

References elapsed, readF1000(), and timeout.

Referenced by NodeTimerList::deSerialize().

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

◆ serialize()

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

References elapsed, timeout, and writeF1000().

Referenced by NodeTimerList::serialize().

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

Member Data Documentation

◆ elapsed

◆ position

◆ timeout


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