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