network oneshots
[carveJwlIkooP6JGAAIwe30JlM.git] / network.h
index 066b9f82f3e1bc245ce3a3fbe63fa6a3331ec03c..e6407eb031d619ed2ebb839813efeba8af53f6c4 100644 (file)
--- a/network.h
+++ b/network.h
@@ -10,6 +10,7 @@
 #include "steam.h"
 #include "network_msg.h"
 #include "highscores.h"
+#include "addon_types.h"
 
 static int network_scores_updated = 0;
 
@@ -42,8 +43,6 @@ struct {
    u8 app_symmetric_key[ 1024 ];
    u32 app_key_length;
    EServerMode auth_mode;
-   
-   int name_update;
 
    HSteamNetConnection remote;
    ESteamNetworkingConnectionState state;
@@ -56,7 +55,9 @@ struct {
 static network_client = {
    .state = k_ESteamNetworkingConnectionState_None,
    .auth_mode = eServerModeAuthentication,
-   .name_update = 1
 };
 
+static int packet_minsize( SteamNetworkingMessage_t *msg, u32 size );
+static void network_send_item( enum netmsg_playeritem_type type );
+
 #endif /* NETWORK_H */