This repository has moved! Please check out the latest version at the new location https://git.exmods.org/NGnius/GameSDKcraft
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.

PresenceUtility.cs 883B

123456789101112131415161718192021222324252627282930313233343536373839
  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 Relationship[] Users;
  29. }
  30. }