X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=gameserver.h;h=d8e0d38c018d929938291de77d012c24664bbb0f;hb=4bf136afb77a4c2937952b9152165f1ddcd2da9d;hp=670a9ba089be4debe5a46160d33b0ee6875b934f;hpb=a5cdfe2fc872f03c7988d63498abb7e7827325c1;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/gameserver.h b/gameserver.h index 670a9ba..d8e0d38 100644 --- a/gameserver.h +++ b/gameserver.h @@ -8,6 +8,7 @@ #include "vg/vg_steam_http.h" #include "vg/vg_steam_auth.h" #include "network_msg.h" +#include "network_common.h" #include "highscores.h" #include @@ -15,6 +16,16 @@ struct { HSteamNetPollGroup client_group; EServerMode auth_mode; + struct gameserver_client { + int active; + int authenticated; + HSteamNetConnection connection; + char username[ NETWORK_USERNAME_MAX ]; + char items[k_netmsg_playeritem_max][ADDON_UID_MAX]; + u64 steamid; + } + clients[ NETWORK_MAX_PLAYERS ]; + u8 app_symmetric_key[ k_nSteamEncryptedAppTicketSymmetricKeyLen ]; int monitor_fd;