-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPlacementPlus.cs
More file actions
24 lines (21 loc) · 812 Bytes
/
PlacementPlus.cs
File metadata and controls
24 lines (21 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using HarmonyLib;
using StardewModdingAPI;
using static PlacementPlus.ModState;
namespace PlacementPlus
{
// ReSharper disable once ClassNeverInstantiated.Global
public class PlacementPlus : Mod
{
// Static instance of entry class to allow for static mod classes (i.e. patch classes) to interact with entry class data.
internal static PlacementPlus Instance;
/*********
** Public methods
*********/
public override void Entry(IModHelper helper)
{
Instance = this; // Initialize static instance first as Harmony patches rely on it.
Initialize(ref helper); // Initialize ModState to begin tracking values.
var harmony = new Harmony(ModManifest.UniqueID); harmony.PatchAll();
}
}
}