Gamecraft-Discord connection. It can send and receive messages in a specific channel.
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.
|
- using System.Reflection;
- using Harmony;
- using IllusionPlugin;
- using UnityEngine;
-
- namespace GCDC
- {
- public class GCDCPlugin : IPlugin
- {
- public string Name { get; } = "GCDC";
- public string Version { get; } = "v0.0.1";
- public static HarmonyInstance harmony { get; protected set; }
- public const string HarmonyID = "io.github.norbipeti.GCDC";
-
- public void OnApplicationStart()
- {
- if (harmony == null)
- {
- harmony = HarmonyInstance.Create(HarmonyID);
- harmony.PatchAll(Assembly.GetExecutingAssembly());
- }
-
- Debug.Log("GCDC loaded");
- }
-
- public void OnApplicationQuit()
- {
- harmony?.UnpatchAll(HarmonyID);
- }
-
- public void OnLevelWasLoaded(int level)
- {
- }
-
- public void OnLevelWasInitialized(int level)
- {
- }
-
- public void OnUpdate()
- {
- }
-
- public void OnFixedUpdate()
- {
- }
- }
- }
|