X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_remote.h;h=3e66aff776cc5891227c8b6d884e9c521a21a8ae;hb=1b889e55df5f9c0a8a26daba03ffa21754d78230;hp=3c795b24c08b01d76529632a0661c5f79645f3c5;hpb=074fa69f479724f9800849430bad5caf730b01ef;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_remote.h b/player_remote.h index 3c795b2..3e66aff 100644 --- a/player_remote.h +++ b/player_remote.h @@ -5,20 +5,28 @@ #include "network.h" #include "network_common.h" +#define NETWORK_SFX_QUEUE_LENGTH 12 + struct { struct network_player { - int active; + int active, isfriend, isblocked; + u64 steamid; u16 board_view_slot, playermodel_view_slot; enum player_subsystem subsystem; /* this is set IF they exist in a world that we have loaded */ world_instance *active_world; - int hub_match, client_match; + int world_match[ k_world_max ]; + u32 location_pstr; /* TODO: valid if active_world set. */ /* TODO: Compression with server code */ char username[ NETWORK_USERNAME_MAX ]; char items[k_netmsg_playeritem_max][ADDON_UID_MAX]; + /* ui */ + u32 medals[3]; + f32 opacity; + u32 down_bytes; f32 down_kbs; } @@ -41,12 +49,14 @@ struct { } data; } - frames[6]; + frames[ NETWORK_BUFFERFRAMES ]; f64 t; } interp_data[ NETWORK_MAX_PLAYERS ]; + struct net_sfx sfx_queue[ NETWORK_SFX_QUEUE_LENGTH ]; + m4x3f *final_mtx; struct player_board_pose board_poses[ NETWORK_MAX_PLAYERS ]; @@ -61,5 +71,7 @@ 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); +static void player_remote_update_friendflags( struct network_player *remote ); #endif /* PLAYER_REMOTE_H */