forked from nakano15/gaomonmod1dot4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDigimonContainer.cs
More file actions
21 lines (19 loc) · 865 Bytes
/
Copy pathDigimonContainer.cs
File metadata and controls
21 lines (19 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using Terraria.ModLoader;
using terraguardians;
using gaomonmod1dot4.Companions;
namespace gaomonmod1dot4
{
public class DigimonContainer : CompanionContainer //Must inherit CompanionContainer
{
public const uint Gaomon = 0;
public override CompanionBase GetCompanionDB(uint ID) //This overrideable method will be used to get the companion base infos. Use each ID for different companions as you seem fit.
{
switch(ID)
{
case Gaomon: //Gaomon equals to 0. So calling a companion of ID 0, and set the ModID as the name of this mod, will be refering to Gaomon.
return new GaomonBase(); //The base infos of Gaomon. This will only be called once, and be stored internally into a database of the mod.
}
return base.GetCompanionDB(ID);
}
}
}