forked from romen-h/ONI-Mods
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModSettings.cs
More file actions
43 lines (37 loc) · 1.2 KB
/
ModSettings.cs
File metadata and controls
43 lines (37 loc) · 1.2 KB
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
using Newtonsoft.Json;
using PeterHan.PLib.Options;
namespace RomenH.StirlingEngine
{
[JsonObject(MemberSerialization.OptIn)]
[ModInfo("https://github.com/romen-h/ONI-Mods")]
[RestartRequired]
public class ModSettings : SingletonOptions<ModSettings>
{
[JsonProperty]
[Option("Minimum Temperature Difference", "Determines the minimum temperature difference between building and source tile that allows the building to operate.")]
[Limit(1, 100)]
public float MinimumTemperatureDifference
{ get; set; }
[JsonProperty]
[Option("Max Power", "Determines the max power output and amount of heat the engine will pump.")]
[Limit(10, 1000)]
public float MaxWattOutput
{ get; set; }
[JsonProperty]
[Option("Waste Heat Ratio", "Determines the amount of heat that is taken into the building instead of generating power.")]
[Limit(0, 1)]
public float WasteHeatRatio
{ get; set; }
[JsonProperty]
[Option("DTU/W Coefficient", "Determines how much thermal energy is equivalent to one Watt.\nDefault = 100 DTU/W")]
public float DTUPerWatt
{ get; set; }
public ModSettings()
{
MinimumTemperatureDifference = 10f;
MaxWattOutput = 100f;
WasteHeatRatio = 0.1f;
DTUPerWatt = 100f;
}
}
}