-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRawRandoSettings.cs
43 lines (34 loc) · 1.22 KB
/
RawRandoSettings.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
//using GlobalSettings = ItemChanger.Internal.GlobalSettings;
//namespace Fyrenest
//{
// public class RandoSettings
//{
// public bool AddCharms;
// [MenuChanger.Attributes.MenuRange(0, 15)]
// public int IncreaseMaxCharmCostBy;
// public LogicSettings Logic = new();
// public RandoSettings() { }
// public RandoSettings(GlobalSettings rs)
// {
// AddCharms = rs.AddCharms;
// IncreaseMaxCharmCostBy = rs.IncreaseMaxCharmCostBy;
// if (Modding.ModHooks.GetMod("Randomizer 4") != null)
// {
// Logic = LoadLogic(rs);
// }
// }
// private LogicSettings LoadLogic(GlobalSettings rs) =>
// RandomizerMod.RandomizerData.JsonUtil.DeserializeString<LogicSettings>(rs.LogicSettings);
// public bool Enabled() => AddCharms;
// internal void WriteTo(GlobalSettings gs)
// {
// gs.AddCharms = AddCharms;
// gs.IncreaseMaxCharmCostBy = IncreaseMaxCharmCostBy;
// if (Modding.ModHooks.GetMod("Randomizer 4") != null)
// {
// gs.LogicSettings = SaveLogic();
// }
// }
// private string SaveLogic() => RandomizerMod.RandomizerData.JsonUtil.Serialize(Logic);
//}
//}