|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- using GamecraftModdingAPI.Events;
- using Svelto.ECS;
-
- namespace GamecraftRPC.Events
- {
- class MenuPresenceHandler : SimpleEventHandlerEngine
- {
- public static readonly string HandlerName = "GamecraftRPCMenuPresenceEventHandler";
-
- //private Discord.Discord discordRPC = null;
-
- public static void OnAdd(Discord.Discord discordRPC)
- {
- Plugin.SetDiscordActivity(discordRPC, state: "On menu screen", details: "", start: (int)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds);
- }
-
- public MenuPresenceHandler(Discord.Discord _discordRPC) : base((db) => { OnAdd(_discordRPC); }, (db) => { }, EventType.Menu, HandlerName)
- {
- //this.discordRPC = _discordRPC;
- }
- }
- }
|