last changes

This commit is contained in:
2020-06-15 22:22:46 +03:00
parent 5f405ca403
commit 259f321df4
53 changed files with 3368 additions and 842 deletions

37
AdServer/message.h Normal file
View File

@@ -0,0 +1,37 @@
#ifndef MESSAGE_H
#define MESSAGE_H
#pragma pack (push, 1)
struct adMessageHeader
{
int type;
int player;
};
struct adMessagePing // type = 1
{
adMessageHeader header;
char name[32];
};
struct adMessagePong // type = 2
{
adMessageHeader header;
int playerId;
unsigned int seed;
};
struct adMessageText // type = 3
{
adMessageHeader header;
char text[256];
};
#pragma pack (pop)
#endif // MESSAGE_H