From e2cb548032cbe91dd57542e7374dad69acab7e4e Mon Sep 17 00:00:00 2001 From: ymo4 <41833771+ymo-4@users.noreply.github.com> Date: Thu, 18 Jul 2024 17:21:17 +0300 Subject: [PATCH] add clear_all_key_values --- src/server.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/server.rs b/src/server.rs index 56aa31d..778d569 100644 --- a/src/server.rs +++ b/src/server.rs @@ -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()`!**