leadercraft/Leadercraft/Server/Tools.cs

29 lines
459 B
C#
Raw Normal View History

using System;
using Steamworks;
2020-05-14 23:09:39 -04:00
using RobocraftX.Common;
namespace Leadercraft.Server
{
public static class Tools
{
public static bool IsSteamAvailable
{
get => SteamClient.IsValid;
}
2020-05-14 23:09:39 -04:00
public static ulong UserId
{
2020-05-14 23:09:39 -04:00
get => SteamClient.SteamId.Value;
}
public static string UserName
{
get => SteamClient.Name;
}
public static ulong GameId
{
get => GameMode.SaveGameDetails.WorkshopId;
}
}
}