X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=gameserver.h;h=fa856cee1785aed63b10e9112a84d411cd58dec2;hb=8090b8da9ce1397ba47d7e2d91b4f1716f708f25;hp=a1b5d6ae0b2d5a64b7c3b18a1495e1f052e7372d;hpb=46f4e9ee87dc67402166e4c6b05efbe922cd7574;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/gameserver.h b/gameserver.h index a1b5d6a..fa856ce 100644 --- a/gameserver.h +++ b/gameserver.h @@ -2,12 +2,14 @@ #define GAMESERVER_H #define VG_SERVER + #include "vg/vg.h" #include "vg/vg_steam.h" #include "vg/vg_steam_networking.h" #include "vg/vg_steam_http.h" #include "vg/vg_steam_auth.h" #include "network_msg.h" +#include "network_common.h" #include "highscores.h" #include @@ -17,10 +19,14 @@ struct { struct gameserver_client { int active; + u32 version; int authenticated; HSteamNetConnection connection; + char username[ NETWORK_USERNAME_MAX ]; + char items[k_netmsg_playeritem_max][ADDON_UID_MAX]; + u64 steamid; } - clients[ 32 ]; + clients[ NETWORK_MAX_PLAYERS ]; u8 app_symmetric_key[ k_nSteamEncryptedAppTicketSymmetricKeyLen ];