Network code documentation for my turn-based game
1.0
Loading...
Searching...
No Matches
network
include
types.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
#include <string>
5
6
enum class
ReturnStatus
: std::int8_t {
7
kSuccess
= 0,
8
kFailure
= 1
9
};
10
14
struct
PlayerData
{
15
std::string
username
;
16
int
elo
;
17
};
18
19
using
Port
= std::uint16_t;
PlayerData
PlayerData is a struct containing the username of a player and its elo.
Definition
types.h:14
PlayerData::username
std::string username
Definition
types.h:15
PlayerData::elo
int elo
Definition
types.h:16
Port
std::uint16_t Port
Definition
types.h:19
ReturnStatus
ReturnStatus
Definition
types.h:6
ReturnStatus::kFailure
@ kFailure
ReturnStatus::kSuccess
@ kSuccess
Generated by
1.10.0