mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 10:29:19 +02:00
work
This commit is contained in:
23
network/message.h
Normal file
23
network/message.h
Normal 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);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user