This repository has been archived by the owner on Dec 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.cs
45 lines (38 loc) · 1.59 KB
/
Main.cs
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
42
43
44
45
using HarmonyLib;
using System.Reflection;
using VRage.Plugins;
namespace SEPluginTemplate
{
public class Main : IPlugin
{
/// <summary>
/// Called on startup when plugin loads. Constructor, optional, is not required.
/// </summary>
public Main()
{
}
/// <summary>
/// Called when the game closes. This method is required regardless if you are using it or not. If you are not using it, then just don't put anything in the method.
/// </summary>
public void Dispose()
{
}
/// <summary>
/// Called on startup when plugin gets initialized. This method is required regardless if you are using it or not. If you are not using it, then just don't put anything in the method.
/// </summary>
public void Init(object gameInstance)
{
//Use the code below in this method if you are planning on using Harmony to modify existing game methods. Optional, is not required. For more info about how harmony works, go to https://harmony.pardeike.net/
// Starts an instance of Harmony
Harmony harmony = new Harmony("SEPluginTemplate");
// Patches all patches in the plugin.
harmony.PatchAll(Assembly.GetExecutingAssembly());
}
/// <summary>
/// Called every game update. This method is required regardless if you are using it or not. If you are not using it, then just don't put anything in the method.
/// </summary>
public void Update()
{
}
}
}