forked from nakano15/gaomonmod1dot4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainMod.cs
More file actions
26 lines (22 loc) · 915 Bytes
/
MainMod.cs
File metadata and controls
26 lines (22 loc) · 915 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
using Terraria.ModLoader;
using terraguardians;
namespace gaomonmod1dot4
{
public class MainMod : Mod
{
public static Groups.DigimonGroup digimonGroup; //Custom companion group, so you can distinguish companions of a certain type by their group.
public override void Load()
{
digimonGroup = new Groups.DigimonGroup(); //Creating the companion group, so I can assign it to companions.
}
public override void Unload()
{
digimonGroup = null;
}
public override void PostSetupContent()
{
terraguardians.MainMod.AddCompanionDB(new DigimonContainer(), this); //Adding the companion container I made to the companion database. That will control the companions list of the mod. Check DigimonContainer.cs.
terraguardians.MainMod.AddCompanionHookContainer(new CustomModHooks(), this); //Adds custom mod hooks to TerraGuardians Mod. The Custom Mod Hook only adds a new skin to Blue.
}
}
}