Skip to content

Commit

Permalink
more u32
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Jun 18, 2024
1 parent c343d98 commit 40a149f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion framework_crates/bones_framework/src/networking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,10 @@ where
// If local input is disabled, we still submit a default value representing no-inputs.
// This way if input is disabled current inputs will not be held down indefinitely.
self.session
.add_local_input(self.local_player_idx as usize, InputTypes::Dense::default())
.add_local_input(
self.local_player_idx as usize,
InputTypes::Dense::default(),
)
.unwrap();
}

Expand Down
6 changes: 3 additions & 3 deletions framework_crates/bones_framework/src/networking/online.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub struct OnlineMatchmaker(BiChannelClient<OnlineMatchmakerRequest, OnlineMatch
/// Online matchmaker request
#[derive(Debug)]
pub enum OnlineMatchmakerRequest {
SearchForGame { id: NodeId, player_count: usize },
SearchForGame { id: NodeId, player_count: u32 },
StopSearch,
}

Expand Down Expand Up @@ -80,7 +80,7 @@ async fn online_matchmaker(
async fn search_for_game(
matchmaker_channel: &BiChannelServer<OnlineMatchmakerRequest, OnlineMatchmakerResponse>,
id: NodeId,
player_count: usize,
player_count: u32,
) -> anyhow::Result<()> {
info!("Connecting to online matchmaker");
let ep = get_network_endpoint().await;
Expand Down Expand Up @@ -176,7 +176,7 @@ async fn search_for_game(
}

/// Search for game with `matchmaking_server` and `player_count`
pub fn start_search_for_game(matchmaking_server: NodeId, player_count: usize) {
pub fn start_search_for_game(matchmaking_server: NodeId, player_count: u32) {
// TODO remove
info!("Starting search for online game with player count {player_count}");
ONLINE_MATCHMAKER
Expand Down

0 comments on commit 40a149f

Please sign in to comment.