Files
sbox-public/engine/Sandbox.Tools/Utility/Account.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

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;
}
}