Facepunch.Steamworks Wiki

Steamworks.Friend

Fields

Properties

bool IsAway { get; }
Returns true if this friend is marked as away
bool IsBlocked { get; }
Returns true if you have this user blocked
bool IsBusy { get; }
Returns true if this friend is marked as busy
bool IsFriend { get; }
Return true if this is a friend
bool IsMe { get; }
Returns true if this is the local user
bool IsOnline { get; }
Returns true if this friend is online
bool IsPlayingThisGame { get; }
Return true if this user is playing the game we're running
bool IsSnoozing { get; }
Returns true if this friend is marked as snoozing
string Name { get; }
IEnumerable<string> NameHistory { get; }
FriendState State { get; }
int SteamLevel { get; }

Methods

bool GetAchievement( string statName, bool defult = False )
Gets a user achievement state. Must call RequestUserStats first.
System.DateTime GetAchievementUnlockTime( string statName )
Gets a the time this achievement was unlocked.
string GetRichPresence( string key )
float GetStatFloat( string statName, float defult = 0 )
Gets a user stat. Must call RequestUserStats first.
int GetStatInt( string statName, int defult = 0 )
Gets a user stat. Must call RequestUserStats first.
bool InviteToGame( string Text )
Invite this friend to the game that we are playing
bool IsIn( SteamId group_or_room )
async Task RequestInfoAsync()
Sometimes we don't know the user's name. This will wait until we have downloaded the information on this user.
async Task<bool> RequestUserStatsAsync()
Tries to get download the latest user stats
bool SendMessage( string message )
Sends a message to a Steam friend. Returns true if success

Page Links


Special Pages


Wikis

?

Render Time: 21ms

DB GetPage 5
Generate Html 0
SaveChanges (1) 12
Render Body 0
Render Sidebar 1