Ejemplo n.º 1
0
 public static void BootMeUp()
 {
     DiscordRPC.EventHandlers eventHandlers = default(DiscordRPC.EventHandlers);
     eventHandlers.readyCallback        = (DiscordRPC.ReadyCallback)Delegate.Combine(eventHandlers.readyCallback, new DiscordRPC.ReadyCallback(ReadyCallback));
     eventHandlers.disconnectedCallback = (DiscordRPC.DisconnectedCallback)Delegate.Combine(eventHandlers.disconnectedCallback, new DiscordRPC.DisconnectedCallback(DisconnectedCallback));
     eventHandlers.errorCallback        = (DiscordRPC.ErrorCallback)Delegate.Combine(eventHandlers.errorCallback, new DiscordRPC.ErrorCallback(ErrorCallback));
     eventHandlers.joinCallback         = (DiscordRPC.JoinCallback)Delegate.Combine(eventHandlers.joinCallback, new DiscordRPC.JoinCallback(JoinCallback));
     eventHandlers.spectateCallback     = (DiscordRPC.SpectateCallback)Delegate.Combine(eventHandlers.spectateCallback, new DiscordRPC.SpectateCallback(SpectateCallback));
     eventHandlers.requestCallback      = (DiscordRPC.RequestCallback)Delegate.Combine(eventHandlers.requestCallback, new DiscordRPC.RequestCallback(RequestCallback));
     DiscordRPC.Initialize("428272711702282252", ref eventHandlers, true, "0612");
     prsnc = default(DiscordRPC.RichPresence);
     prsnc.largeImageKey = "logo";
     prsnc.state         = "Main Menu";
     DiscordRPC.UpdatePresence(ref RimRPC.prsnc);
     ReadyCallback();
 }
Ejemplo n.º 2
0
 public static extern void Initialize(string applicationId, ref DiscordRPC.EventHandlers handlers, bool autoRegister, string optionalSteamId);