]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - netconn.h
Blub's nick completion
[xonotic/darkplaces.git] / netconn.h
index 63df664494c0f3833439d997001e283f3cbc8cba..b359c949c3d877a917e8e354cb1d2d029fe07798 100755 (executable)
--- a/netconn.h
+++ b/netconn.h
@@ -252,6 +252,8 @@ typedef struct serverlist_info_s
        int numbots;
        // number of currently connected players that are not bots
        int numhumans;
+       // number of free slots
+       int freeslots;
        // protocol version
        int protocol;
        // game data version
@@ -273,7 +275,8 @@ typedef enum
        SLIF_PROTOCOL,
        SLIF_NUMBOTS,
        SLIF_NUMHUMANS,
-       SLIF_COUNT
+       SLIF_COUNT,
+       SLIF_FREESLOTS
 } serverlist_infofield_t;
 
 typedef enum
@@ -281,7 +284,8 @@ typedef enum
        SQS_NONE = 0,
        SQS_QUERYING,
        SQS_QUERIED,
-       SQS_TIMEDOUT
+       SQS_TIMEDOUT,
+       SQS_REFRESHING
 } serverlist_query_state;
 
 typedef struct serverlist_entry_s
@@ -292,7 +296,7 @@ typedef struct serverlist_entry_s
        unsigned querycounter;
        // used to calculate ping when update comes in
        double querytime;
-       // query protocol to use on this server
+   // query protocol to use on this server
        int protocol; // may be PROTOCOL_QUAKEWORLD or PROTOCOL_DARKPLACES7
 
        serverlist_info_t info;
@@ -378,12 +382,13 @@ void NetConn_QueryQueueFrame(void);
 void Net_Stats_f(void);
 void Net_Slist_f(void);
 void Net_SlistQW_f(void);
+void Net_Refresh_f(void);
 
 // ServerList interface (public)
 // manually refresh the view set, do this after having changed the mask or any other flag
 void ServerList_RebuildViewList(void);
 void ServerList_ResetMasks(void);
-void ServerList_QueryList(qboolean querydp, qboolean queryqw);
+void ServerList_QueryList(qboolean resetcache, qboolean querydp, qboolean queryqw, qboolean consoleoutput);
 
 #endif