16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 10:29:19 +02:00
This commit is contained in:
milek7
2018-12-03 23:12:33 +01:00
parent 18ad14bc53
commit f525a77e23
13 changed files with 386 additions and 5 deletions

23
network/message.h Normal file
View File

@@ -0,0 +1,23 @@
#pragma once
#include "network/message.h"
namespace network
{
struct message
{
enum type_e
{
CONNECT_REQUEST = 0,
CONNECT_ACCEPT,
STEP_INFO,
VEHICLE_COMMAND,
TYPE_MAX
};
type_e type;
void serialize(std::ostream &stream);
static message deserialize(std::istream &stream);
};
}