Discord integration for Gamecraft
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.

35 lines
706B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Security.Cryptography;
  7. using RobocraftX.Common;
  8. using Discord;
  9. namespace GamecraftRPC
  10. {
  11. public static class PresenceUtility
  12. {
  13. public static ulong LastGameStart = 0;
  14. public static uint PlayerCount = 1;
  15. public static Activity Activity;
  16. public static ulong SteamId { get => Steamworks.SteamClient.SteamId.Value; }
  17. public static Lobby? Lobby;
  18. public static bool IsActivityHost = false;
  19. public static bool IsServerActive = false;
  20. public static bool IsConnecting = false;
  21. public static bool IsVoiceConnected = false;
  22. }
  23. }