3es  0.7
tes::DataMessage Struct Reference

Defines an object data message. More...

#include <3esmessages.h>

Public Types

enum  { MessageId = OIdData }
 ID for this message.
 

Public Member Functions

bool read (PacketReader &reader)
 Read message content. More...
 
bool write (PacketWriter &writer) const
 Write this message to writer. More...
 

Public Attributes

uint32_t id
 Id of the object to update data.
 

Detailed Description

Defines an object data message.

This is for complex shapes to send additional creation data piecewise. Not supported for transient shapes.

This is the message header and the payload follows.

Member Function Documentation

◆ read()

bool tes::DataMessage::read ( PacketReader reader)
inline

Read message content.

Crc should have been validated already

Parameters
readerThe stream to read from.
Returns
True on success, false if there is an issue with amount of data available.

References tes::PacketReader::readElement().

◆ write()

bool tes::DataMessage::write ( PacketWriter writer) const
inline

Write this message to writer.

Parameters
writerThe target buffer.
Returns
True on success.

References tes::PacketWriter::writeElement().


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