network oneshots
[carveJwlIkooP6JGAAIwe30JlM.git] / player_remote.h
index 3c795b24c08b01d76529632a0661c5f79645f3c5..a35e22ce1f0e897c032ab12259195dcf2927dfd6 100644 (file)
@@ -5,6 +5,8 @@
 #include "network.h"
 #include "network_common.h"
 
+#define NETWORK_SFX_QUEUE_LENGTH 12
+
 struct {
    struct network_player {
       int active;
@@ -41,12 +43,15 @@ struct {
          } 
          data;
       }
-      frames[6];
+      frames[ NETWORK_BUFFERFRAMES ];
 
       f64 t;
    }
    interp_data[ NETWORK_MAX_PLAYERS ];
 
+   struct net_sfx sfx_queue[ NETWORK_SFX_QUEUE_LENGTH ];
+   u8 sfx_availible[ NETWORK_SFX_QUEUE_LENGTH ];
+
    m4x3f *final_mtx;
    struct player_board_pose board_poses[ NETWORK_MAX_PLAYERS ];
 
@@ -61,5 +66,6 @@ static void remote_player_debug_update(void);
 static void remote_player_send_playerframe(void);
 static void animate_remote_player( u32 index );
 static void render_remote_players( world_instance *world, camera *cam );
+static void relink_all_remote_player_worlds(void);
 
 #endif /* PLAYER_REMOTE_H */