Skip to content

Commit

Permalink
add clear_all_key_values
Browse files Browse the repository at this point in the history
  • Loading branch information
ymo-4 committed Jul 18, 2024
1 parent cb37916 commit e2cb548
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,13 @@ impl Server {
}
}

/// Clears the whole list of key/values that are sent in rules queries.
pub fn clear_all_key_values(&self) {
unsafe {
sys::SteamAPI_ISteamGameServer_ClearAllKeyValues(self.server);
}
}

/// Returns an accessor to the steam UGC interface (steam workshop)
///
/// **For this to work properly, you need to call `UGC::init_for_game_server()`!**
Expand Down

0 comments on commit e2cb548

Please sign in to comment.