reduced shader bind code dupe & adjust skate uprighter strenght
[carveJwlIkooP6JGAAIwe30JlM.git] / network.h
index 16594e84184c1f01ad8519142d7f48fca77986c2..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,19 +43,21 @@ struct {
    u8 app_symmetric_key[ 1024 ];
    u32 app_key_length;
    EServerMode auth_mode;
-   
-   int name_update;
 
    HSteamNetConnection remote;
    ESteamNetworkingConnectionState state;
 
    f64 last_attempt, last_frame;
    u32 retries;
+
+   i32 network_info;
 }
 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 */