aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Venner <[email protected]>2021-04-24 02:16:24 +0100
committerWilliam Venner <[email protected]>2021-04-24 02:16:24 +0100
commitc414f7afb8d69a3c8664efc52e70b4da6423ac0c (patch)
treed8e989980700fabdd29588f78ad74385bb0b2cff
parentAdd more UGC bindings (diff)
downloadsteamworks-rs-c414f7afb8d69a3c8664efc52e70b4da6423ac0c.tar.xz
steamworks-rs-c414f7afb8d69a3c8664efc52e70b4da6423ac0c.zip
Add missing SteamAPI_ISteamUGC_SetReturnKeyValueTags
-rw-r--r--src/ugc.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ugc.rs b/src/ugc.rs
index 2de046a..1609d4b 100644
--- a/src/ugc.rs
+++ b/src/ugc.rs
@@ -803,6 +803,15 @@ impl <Manager> UserListQuery<Manager> {
self
}
+ /// Include key value tags in results
+ pub fn include_key_value_tags(self, include: bool) -> Self {
+ let ok = unsafe {
+ sys::SteamAPI_ISteamUGC_SetReturnKeyValueTags(self.ugc, self.handle.unwrap(), include)
+ };
+ debug_assert!(ok);
+ self
+ }
+
/// Runs the query
pub fn fetch<F>(mut self, cb: F)
where F: for<'a> FnOnce(Result<QueryResults<'a>,SteamError>) + 'static + Send
@@ -954,6 +963,15 @@ impl <Manager> ItemListDetailsQuery<Manager> {
self
}
+ /// Include key value tags in results
+ pub fn include_key_value_tags(self, include: bool) -> Self {
+ let ok = unsafe {
+ sys::SteamAPI_ISteamUGC_SetReturnKeyValueTags(self.ugc, self.handle.unwrap(), include)
+ };
+ debug_assert!(ok);
+ self
+ }
+
/// Runs the query
pub fn fetch<F>(mut self, cb: F)
where F: for<'a> FnOnce(Result<QueryResults<'a>,SteamError>) + 'static + Send