mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-25 06:40:28 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
25 lines
687 B
C#
25 lines
687 B
C#
namespace Editor;
|
|
|
|
public static partial class EditorUtility
|
|
{
|
|
public static partial class Account
|
|
{
|
|
public static async ValueTask Assure()
|
|
{
|
|
if ( AccountInformation.Session is not null )
|
|
return;
|
|
|
|
await AccountInformation.Update();
|
|
}
|
|
|
|
public static Task Refresh() => AccountInformation.Update();
|
|
|
|
public static bool IsMember( string org ) => AccountInformation.HasOrganization( org );
|
|
|
|
public static IReadOnlyList<Package.Organization> Memberships => AccountInformation.Memberships;
|
|
public static IReadOnlyList<Package> Favourites => AccountInformation.Favourites;
|
|
public static IReadOnlyList<StreamService> ServiceLinks => AccountInformation.Links;
|
|
|
|
}
|
|
}
|