-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBetterFishing.cs
53 lines (44 loc) · 1.39 KB
/
BetterFishing.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 BetterFishing.AnglerShop;
using BetterFishing.Compat;
using BetterFishing.Config;
using BetterFishing.Config.Model;
using BetterFishing.EasyQuests;
using BetterFishing.Multilure;
using BetterFishing.Multilure.Condition;
using BetterFishing.Util;
using Microsoft.Xna.Framework;
using System.IO;
using System;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace BetterFishing
{
public class BetterFishing : Mod
{
public const string LOCALIZATION_PATH = "Mods.BetterFishing";
public const string ASSETS_PATH = "BetterFishing/Assets";
public readonly static ModConfiguration Configuration = ModContent.GetInstance<ModConfiguration>();
public static BetterFishing Instance;
public static CalamityCompat Calamity;
public static VanillaCompat Vanilla;
public override void Load()
{
Instance = this;
Vanilla = new VanillaCompat();
Calamity = new CalamityCompat();
}
public override void PostSetupContent()
{
Vanilla.TryEnable();
Calamity.TryEnable();
}
public override void Unload()
{
Vanilla.TryDisable();
Calamity.TryDisable();
}
public override void HandlePacket(BinaryReader reader, int whoAmI) => PacketHandler.Invoke(reader, whoAmI);
}
}