This repository has been archived by the owner on Jun 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNuclearPlus.cs
41 lines (36 loc) · 1.72 KB
/
NuclearPlus.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
using Mafi;
using Mafi.Base;
using Mafi.Core;
using Mafi.Core.Mods;
namespace NuclearPlus;
public sealed class NuclearPlus : DataOnlyMod
{
// Name of this mod. It will be eventually shown to the player.
public override string Name => Core.Name;
// Version, currently unused.
public override int Version => Core.VersionInt;
// Mod constructor that lists mod dependencies as parameters.
// This guarantee that all listed mods will be loaded before this mod.
// It is a good idea to depend on both `Mafi.Core.CoreMod` and `Mafi.Base.BaseMod`.
public NuclearPlus(CoreMod coreMod, BaseMod baseMod)
{
// You can use Log class for logging. These will be written to the log file
// and can be also displayed in the in-game console with command `also_log_to_console`.
Core.LogWithVersion(Log.Info, "constructed");
}
public override void RegisterPrototypes(ProtoRegistrator registrator)
{
Core.LogWithVersion(Log.Info, "registering prototypes");
registrator.RegisterData<Products.CountableProductData>();
registrator.RegisterData<Products.FluidProductData>();
// Need to register products manually, the below doesn't see the attibutes for some reason...
//registrator.RegisterAllProducts();
registrator.RegisterData<Buildings.ReactorData>();
registrator.RegisterData<Machines.AdvancedCoolingTowerData>();
registrator.RegisterData<Recipes.AdvancedCoolingTowerData>();
registrator.RegisterData<Recipes.AssemblyData>();
registrator.RegisterData<Recipes.ChemicalPlantData>();
registrator.RegisterData<Recipes.DistillationTowerData>();
registrator.RegisterDataWithInterface<IResearchNodesData>();
}
}