R-Type 0.1
Loading...
Searching...
No Matches
rtype::client::NetworkEvent Struct Reference

Connection event or raw message received from the server. More...

#include <NetworkClient.hpp>

Public Attributes

NetworkEventType type = NetworkEventType::Message
 Event kind.
 
std::uint32_t connectionId = 0
 
rtype::protocol::MessageType messageType = protocol::MessageType::Invalid
 Message type, for Message events.
 
std::vector< std::uint8_t > payload
 Message payload, for Message events.
 

Detailed Description

Connection event or raw message received from the server.

Member Data Documentation

◆ connectionId

std::uint32_t rtype::client::NetworkEvent::connectionId = 0

Connection id given by the server.