#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
