R-Type  2
Doom but in better
Loading...
Searching...
No Matches
MessageStruct.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2024
3** rtype (Workspace)
4** File description:
5** MessageStruct.hpp
6*/
7
8#pragma once
9#include <cstddef>
10#include <utility>
11
12
14
15namespace GUI
16{
17 namespace Network
18 {
19 struct MessageInfo {
20 int status;
21 int assetId;
22 char username[9];
23 std::pair<float, float> coords;
24 };
25
31 }
32}
Enum for the different types of messages that can be eschanged with the server.
MessageType
Enum for the different message types in the UDP protocol.
std::pair< float, float > coords
Coordinates associated with the event, such as the position of an entity.
char username[9]
Username of player connecting.
int status
Status of the event (e.g., success or failure).
int assetId
ID representing the game asset related to the event (e.g., entity or object).