|
1234567891011121314151617181920212223242526272829 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- using GamecraftModdingAPI.Events;
- using Svelto.ECS;
- using RobocraftX.Common;
-
- namespace GamecraftRPC.Events
- {
- class EditPresenceHandler : SimpleEventHandlerEngine
- {
- public static readonly string HandlerName = "GamecraftRPCEditPresenceEventHandler";
-
- //private Discord.Discord discordRPC = null;
-
- public static void OnAdd(Discord.Discord discordRPC)
- {
- Plugin.SetDiscordActivity(discordRPC, state: "In-Game", details: $"Editing {GameMode.SaveGameDetails.Name}", start: PresenceUtility.LastGameStart, matchSecret: PresenceUtility.GameSecret, joinSecret: PresenceUtility.GameSecret);
- }
-
- public EditPresenceHandler(Discord.Discord _discordRPC) : base((db) => { OnAdd(_discordRPC); }, (db) => { }, EventType.BuildSwitchedTo, HandlerName)
- {
- //this.discordRPC = _discordRPC;
- }
- }
- }
|