Luanti 5.17.0-dev
Loading...
Searching...
No Matches
ActiveObjectMessage Struct Reference

#include <activeobject.h>

Collaboration diagram for ActiveObjectMessage:

Public Member Functions

 ActiveObjectMessage (u16 id_, bool reliable_=true, std::string_view data_="")
void appendTo (std::string &data) const

Public Attributes

u16 id
bool reliable
std::string datastring

Constructor & Destructor Documentation

◆ ActiveObjectMessage()

ActiveObjectMessage::ActiveObjectMessage ( u16 id_,
bool reliable_ = true,
std::string_view data_ = "" )
inline

References datastring, id, and reliable.

Member Function Documentation

◆ appendTo()

void ActiveObjectMessage::appendTo ( std::string & data) const

References datastring, serializeString16(), and writeU16().

Referenced by Server::AsyncRunStep(), and Server::SendMovePlayer().

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

Member Data Documentation

◆ datastring

std::string ActiveObjectMessage::datastring

◆ id

u16 ActiveObjectMessage::id

◆ reliable

bool ActiveObjectMessage::reliable

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