blob: c98564749b1c67844ca0ca234c80d10253f0357f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
using AnodyneSharp.Entities;
using BepInEx;
using BepInEx.NET.Common;
using HarmonyLib;
using HarmonyLib.Tools;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Reflection;
namespace AnodyneArchipelago
{
[BepInPlugin("com.fourisland.plugins.anodyne.archipelago", "Anodyne Archipelago", "0.2.0")]
public class Plugin : BasePlugin
{
public static Plugin Instance = null;
public static GraphicsDevice GraphicsDevice = null;
public static Player Player = null;
public static ArchipelagoManager ArchipelagoManager = null;
public static bool IsGamePaused = false;
public static string GetVersion()
{
return ((BepInPlugin)Attribute.GetCustomAttribute(typeof(Plugin), typeof(BepInPlugin))).Version.ToString();
}
public override void Load()
{
Instance = this;
// Plugin startup logic
Log.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded!");
// Make patches
HarmonyFileLog.Enabled = true;
HarmonyFileLog.FileWriterPath = "HarmonyLog.txt";
Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly());
}
}
}
|