3es  0.7
tes::DestroyMessage Struct Reference

Message to destroy an exiting object by id and type. More...

#include <3esmessages.h>

Public Types

enum  { MessageId = OIdDestroy }
 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 destroy, matching the CreateMessage id.
 

Detailed Description

Message to destroy an exiting object by id and type.

Member Function Documentation

◆ read()

bool tes::DestroyMessage::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::DestroyMessage::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: