blob: e34ec5012d52c84688a08a881d9c5029a82dd9dc (
plain) (
tree)
|
|
#ifndef TMWA_COMMON_VERSION_HPP
#define TMWA_COMMON_VERSION_HPP
# include <cstdint>
// TODO make these bitwise enums
# define TMWA_FLAG_REGISTRATION 0x01
# define TMWA_SERVER_LOGIN 0x01
# define TMWA_SERVER_CHAR 0x02
# define TMWA_SERVER_INTER 0x04
# define TMWA_SERVER_MAP 0x08
struct Version
{
uint8_t major;
uint8_t minor; // flavor1
uint8_t patch; // flavor2
uint8_t devel; // flavor3
uint8_t flags;
uint8_t which;
uint16_t vend;
// can't add vendor name yet
};
static_assert(sizeof(Version) == 8, "this is sent over the network, can't change");
extern Version CURRENT_LOGIN_SERVER_VERSION;
extern Version CURRENT_CHAR_SERVER_VERSION;
extern Version CURRENT_MAP_SERVER_VERSION;
#endif // TMWA_COMMON_VERSION_HPP
|