#include "vg/vg_stdint.h"
#include "steam.h"
+#include "network_common.h"
#include "network_msg.h"
#include "highscores.h"
#include "addon_types.h"
/*
* Interface
*/
-//#define SR_USE_LOCALHOST
/* Call it at start; Connects us to the gameserver */
static void network_init(void);
HSteamNetConnection remote;
ESteamNetworkingConnectionState state;
+ u32 remote_version;
f64 last_attempt, last_frame;
u32 retries;
u32 week, u64 userdata );
static void network_publish_laptime( const char *mod_uid,
const char *route_uid, f64 lap_time );
+static void chat_send_message( const char *message );
static int network_connected(void){
+ if( network_client.remote_version != NETWORK_SKATERIFT_VERSION ) return 0;
return network_client.state == k_ESteamNetworkingConnectionState_Connected;
}