forked from vectozavr/pseudo3DEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMsgType.h
29 lines (23 loc) · 823 Bytes
/
MsgType.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// Created by Neirokan on 30.04.2020
//
#ifndef PSEUDO3DENGINE_MSGTYPE_H
#define PSEUDO3DENGINE_MSGTYPE_H
#include <SFML/Network.hpp>
enum class MsgType
{
None, // Empty message
Fake, // Fake message
Confirm, // confirm receive
Connect, // connection to server
Disconnect, // disconnect from server
WorldInit, // world initialization from server to client
WorldUpdate, // world update from server to client
PlayerUpdate, // player update from client to server
Shoot, // player shooted from client to server
NewPlayer,
ReInit, // Reinit Stats
};
sf::Packet& operator<<(sf::Packet& packet, MsgType type);
sf::Packet& operator>>(sf::Packet& packet, MsgType& type);
#endif //PSEUDO3DENGINE_MSGTYPE_H