Friendclass

objectFriend
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.Friend

Constructors2

Showing 2 constructors

Methods3

Showing 3 methods

public string GetRichPresence(string key)PUBLIC

Returns a string that was possibly set by rich presence

ParameterTypeDescription
keystring
Returns:string

public void OpenAddFriendOverlay()PUBLIC

Opens the Steam overlay with a popup that allows the local Steam user to confirm whether to add this user to their Steam friends list.

Returns:void

public void OpenInOverlay()PUBLIC

Opens the Steam overlay web browser to their user profile.

Returns:void

Properties11

Showing 11 properties

public ulong Sandbox.Friend.Id { get; set; }PUBLICGETSET

The friend's Steam Id

Returns:ulong

public bool Sandbox.Friend.IsAway { get; set; }PUBLICGETSET

Returns true if your friend is away

Returns:bool

public bool Sandbox.Friend.IsBlocked { get; set; }PUBLICGETSET

Returns true if you have blocked/ignored this user

Returns:bool

public bool Sandbox.Friend.IsBusy { get; set; }PUBLICGETSET

Returns true if this friend is marked as busy

Returns:bool

public bool Sandbox.Friend.IsFriend { get; set; }PUBLICGETSET

Returns true if this user is your friend

Returns:bool

public bool Sandbox.Friend.IsMe { get; set; }PUBLICGETSET

Returns true if this friend is the local user

Returns:bool

public bool Sandbox.Friend.IsOnline { get; set; }PUBLICGETSET

Returns true if your friend is online

Returns:bool

public bool Sandbox.Friend.IsPlayingAGame { get; set; }PUBLICGETSET

Returns true if they're playing any game

Returns:bool

public bool Sandbox.Friend.IsPlayingThisGame { get; set; }PUBLICGETSET

Returns true if they're playing this game

Returns:bool

public bool Sandbox.Friend.IsSnoozing { get; set; }PUBLICGETSET

Returns true if this friend is marked as snoozing

Returns:bool

public string Sandbox.Friend.Name { get; set; }PUBLICGETSET

The friend's name

Returns:string

On this page