wind rushing sound
[carveJwlIkooP6JGAAIwe30JlM.git] / network.h
index b643a1b7da9f96641972d352417c3569d3ba2577..dd6adc0c25f0faab87237f5415b9a230bf370934 100644 (file)
--- a/network.h
+++ b/network.h
@@ -63,11 +63,20 @@ struct {
    vg_pool request_pool;
 
    char server_adress[64];
+
+   enum server_intent {
+      k_server_intent_offline,
+      k_server_intent_online
+   }
+   user_intent;
+   f64 last_intent_change;
+   f32 fintent; /* yeah this shit really shouldnt be here but oh well */
 }
 static network_client = {
    .auth_mode = eServerModeAuthentication,
    .state = k_ESteamNetworkingConnectionState_None,
-   .server_adress = "46.101.34.155"
+   .server_adress = "46.101.34.155",
+   .last_intent_change = -99999.9
 };
 
 static int packet_minsize( SteamNetworkingMessage_t *msg, u32 size );
@@ -78,6 +87,9 @@ static void network_request_scoreboard( const char *mod_uid,
 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 void render_server_status_gui(void);
+static void network_status_string( vg_str *str, u32 *colour );
+static void network_send_region(void);
 
 static int network_connected(void){
    if( network_client.remote_version != NETWORK_SKATERIFT_VERSION ) return 0;