R-Type  2
Doom but in better
Loading...
Searching...
No Matches
GameMessage Struct Reference

A structure representing a game message. More...

#include <GameMessage.hpp>

Collaboration diagram for GameMessage:
Collaboration graph

Data Fields

messageType type
 The type of message (e.g., SPAWN, MOVE, etc.).
 
std::size_t id
 The unique identifier for the entity or object involved in the event.
 
messageInfo msg
 Additional information about the event (status, asset ID, and coordinates).
 

Detailed Description

A structure representing a game message.

The GameMessage structure encapsulates a message in the game. It consists of a message type, a unique ID, and associated information about the event (e.g., status, asset ID, and coordinates).

Definition at line 59 of file GameMessage.hpp.

Field Documentation

◆ id

std::size_t GameMessage::id

The unique identifier for the entity or object involved in the event.

Definition at line 61 of file GameMessage.hpp.

◆ msg

messageInfo GameMessage::msg

Additional information about the event (status, asset ID, and coordinates).

Definition at line 62 of file GameMessage.hpp.

◆ type

messageType GameMessage::type

The type of message (e.g., SPAWN, MOVE, etc.).

Definition at line 60 of file GameMessage.hpp.


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