mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-27 07:05:50 +03:00
Expose IsFollowing, GetFollowerCount, and EnumerateFollowingList in SteamFriends
This commit is contained in:
parent
4e98ae5027
commit
1a263c09cf
@ -298,5 +298,22 @@ public static bool ListenForFriendsMessages
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static async Task<bool> IsFollowing(SteamId steamID)
|
||||||
|
{
|
||||||
|
var r = await Internal.IsFollowing(steamID);
|
||||||
|
return r.Value.IsFollowing;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static async Task<int> GetFollowerCount(SteamId steamID)
|
||||||
|
{
|
||||||
|
var r = await Internal.GetFollowerCount(steamID);
|
||||||
|
return r.Value.Count;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static async Task<ulong[]> EnumerateFollowingList(uint StartIndex)
|
||||||
|
{
|
||||||
|
var r = await Internal.EnumerateFollowingList(StartIndex);
|
||||||
|
return r.Value.GSteamID;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user