Struct bevy_steamworks::Friends
source · pub struct Friends<Manager> { /* private fields */ }
Expand description
Access to the steam friends interface
Implementations§
source§impl<Manager> Friends<Manager>
impl<Manager> Friends<Manager>
pub fn get_friends(&self, flags: FriendFlags) -> Vec<Friend<Manager>>
sourcepub fn get_coplay_friends(&self) -> Vec<Friend<Manager>>
pub fn get_coplay_friends(&self) -> Vec<Friend<Manager>>
Returns recently played with players list
pub fn get_friend(&self, friend: SteamId) -> Friend<Manager>
pub fn request_user_information(&self, user: SteamId, name_only: bool) -> bool
pub fn activate_game_overlay(&self, dialog: &str)
pub fn activate_game_overlay_to_web_page(&self, url: &str)
pub fn activate_game_overlay_to_store( &self, app_id: AppId, overlay_to_store_flag: OverlayToStoreFlag )
pub fn activate_game_overlay_to_user(&self, dialog: &str, user: SteamId)
sourcepub fn activate_invite_dialog(&self, lobby: LobbyId)
pub fn activate_invite_dialog(&self, lobby: LobbyId)
Opens up an invite dialog for the given lobby
sourcepub fn set_rich_presence(&self, key: &str, value: Option<&str>) -> bool
pub fn set_rich_presence(&self, key: &str, value: Option<&str>) -> bool
Set rich presence for the user. Unsets the rich presence if value
is None or empty.
See Steam API
sourcepub fn clear_rich_presence(&self)
pub fn clear_rich_presence(&self)
Clears all of the current user’s Rich Presence key/values.
sourcepub fn get_user_restrictions(&self) -> UserRestriction
pub fn get_user_restrictions(&self) -> UserRestriction
Checks if current user is chat restricted.
If they are restricted, then they can’t send or receive any text/voice chat messages, can’t see custom avatars. A chat restricted user can’t add friends or join any groups. Restricted users can still be online and send/receive game invites.
Auto Trait Implementations§
impl<Manager> RefUnwindSafe for Friends<Manager>where
Manager: RefUnwindSafe,
impl<Manager> !Send for Friends<Manager>
impl<Manager> !Sync for Friends<Manager>
impl<Manager> Unpin for Friends<Manager>
impl<Manager> UnwindSafe for Friends<Manager>where
Manager: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.