diff options
Diffstat (limited to 'AnodyneArchipelago/Plugin.cs')
| -rw-r--r-- | AnodyneArchipelago/Plugin.cs | 8 |
1 files changed, 7 insertions, 1 deletions
| diff --git a/AnodyneArchipelago/Plugin.cs b/AnodyneArchipelago/Plugin.cs index 1f6e7ea..66f020d 100644 --- a/AnodyneArchipelago/Plugin.cs +++ b/AnodyneArchipelago/Plugin.cs | |||
| @@ -3,16 +3,22 @@ using BepInEx; | |||
| 3 | using BepInEx.NET.Common; | 3 | using BepInEx.NET.Common; |
| 4 | using HarmonyLib; | 4 | using HarmonyLib; |
| 5 | using HarmonyLib.Tools; | 5 | using HarmonyLib.Tools; |
| 6 | using System; | ||
| 6 | using System.Reflection; | 7 | using System.Reflection; |
| 7 | 8 | ||
| 8 | namespace AnodyneArchipelago | 9 | namespace AnodyneArchipelago |
| 9 | { | 10 | { |
| 10 | [BepInPlugin("com.fourisland.plugins.anodyne.archipelago", "Anodyne Archipelago", "1.0.0.0")] | 11 | [BepInPlugin("com.fourisland.plugins.anodyne.archipelago", "Anodyne Archipelago", "0.1.0")] |
| 11 | public class Plugin : BasePlugin | 12 | public class Plugin : BasePlugin |
| 12 | { | 13 | { |
| 13 | public static Plugin Instance = null; | 14 | public static Plugin Instance = null; |
| 14 | public static Player Player = null; | 15 | public static Player Player = null; |
| 15 | 16 | ||
| 17 | public static string GetVersion() | ||
| 18 | { | ||
| 19 | return ((BepInPlugin)Attribute.GetCustomAttribute(typeof(Plugin), typeof(BepInPlugin))).Version.ToString(); | ||
| 20 | } | ||
| 21 | |||
| 16 | public override void Load() | 22 | public override void Load() |
| 17 | { | 23 | { |
| 18 | Instance = this; | 24 | Instance = this; |
