-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathZinkModAutoClayModSystem.cs
More file actions
48 lines (39 loc) · 982 Bytes
/
ZinkModAutoClayModSystem.cs
File metadata and controls
48 lines (39 loc) · 982 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using HarmonyLib;
using Vintagestory.API.Client;
using Vintagestory.API.Common;
namespace ZinkModAutoClay;
public class ZinkModAutoClayModSystem : ModSystem
{
private Harmony harmony = null!;
private static bool running = false;
private static int lastLayer = 0;
private static int quantity = 4;
public static bool Running
{
get => running;
set => running = value;
}
public static int LastLayer
{
get => lastLayer;
set => lastLayer = value;
}
public static int Quantity
{
get => quantity;
set => quantity = value;
}
public override bool ShouldLoad(EnumAppSide forSide)
{
return forSide == EnumAppSide.Client;
}
public override void StartClientSide(ICoreClientAPI api)
{
harmony = new Harmony(Mod.Info.ModID);
harmony.PatchAll();
}
public override void Dispose()
{
harmony?.UnpatchAll(Mod.Info.ModID);
}
}