-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRiskOfSlimeRainMod.cs
53 lines (46 loc) · 1.06 KB
/
RiskOfSlimeRainMod.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
46
47
48
49
50
51
52
53
using RiskOfSlimeRain.Core.ROREffects;
using RiskOfSlimeRain.Core.Subworlds;
using RiskOfSlimeRain.Helpers;
using RiskOfSlimeRain.Network;
using RiskOfSlimeRain.Network.NPCs;
using System.IO;
using Terraria.ModLoader;
namespace RiskOfSlimeRain
{
public class RiskOfSlimeRainMod : Mod
{
public static RiskOfSlimeRainMod Instance { get; private set; }
public RiskOfSlimeRainMod()
{
Instance = this;
}
public override void Load()
{
NetHandler.Load();
ROREffectManager.Load();
SpawnedFromStatuePacket.Load();
}
public override void PostSetupContent()
{
ROREffectManager.PostSetupContent();
NPCHelper.Load();
//TODO sublib
//SubworldManager.Load();
NPCHelper.LogBadModNPCs();
}
public override void Unload()
{
NetHandler.Unload();
ROREffectManager.Unload();
NPCHelper.Unload();
SubworldManager.Unload();
PlayerHelper.Unload();
SpawnedFromStatuePacket.Unload();
Instance = null;
}
public override void HandlePacket(BinaryReader reader, int whoAmI)
{
NetHandler.HandlePackets(reader, whoAmI);
}
}
}