Follow the leader
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

12345678910111213141516171819202122232425262728
  1. using System;
  2. using Steamworks;
  3. using RobocraftX.Common;
  4. namespace Leadercraft.Server
  5. {
  6. public static class Tools
  7. {
  8. public static bool IsSteamAvailable
  9. {
  10. get => SteamClient.IsValid;
  11. }
  12. public static ulong UserId
  13. {
  14. get => SteamClient.SteamId.Value;
  15. }
  16. public static string UserName
  17. {
  18. get => SteamClient.Name;
  19. }
  20. public static ulong GameId
  21. {
  22. get => GameMode.SaveGameDetails.WorkshopId;
  23. }
  24. }
  25. }