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.

PresenceUtility.cs 963B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 int LastGameStart = 0;
  14. public static string GameSecret {
  15. get
  16. {
  17. return _gameSecret == null? Steamworks.SteamClient.SteamId.AccountId.ToString() : _gameSecret;
  18. }
  19. set
  20. {
  21. _gameSecret = value;
  22. }
  23. }
  24. private static string _gameSecret = null;
  25. public static int PlayerCount = 1;
  26. public static Activity Activity;
  27. public static uint PartyId { get => Steamworks.SteamClient.SteamId.AccountId; }
  28. public static long LobbyId;
  29. public static int LobbySize = 10;
  30. public static Relationship[] Users;
  31. }
  32. }