2023-03-24 15:22:54 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Verse;
|
|
|
|
|
|
|
|
|
|
namespace RJWSexperience.Settings
|
|
|
|
|
{
|
|
|
|
|
public class SettingsContainer : IExposable
|
|
|
|
|
{
|
|
|
|
|
public List<ISettingHandle> Handles { get; }
|
|
|
|
|
|
|
|
|
|
public SettingsContainer(List<ISettingHandle> handles)
|
|
|
|
|
{
|
|
|
|
|
Handles = handles;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void ExposeData()
|
|
|
|
|
{
|
|
|
|
|
foreach (ISettingHandle setting in Handles)
|
|
|
|
|
{
|
|
|
|
|
setting.Scribe();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static SettingsContainer CreateHistoryContainer(Configurations settings) => new SettingsContainer(new List<ISettingHandle> {
|
|
|
|
|
settings.EnableRecordRandomizer,
|
|
|
|
|
settings.MaxLustDeviation,
|
|
|
|
|
settings.AvgLust,
|
|
|
|
|
settings.MaxSexCountDeviation,
|
|
|
|
|
settings.SexPerYear,
|
|
|
|
|
settings.MinSexableFromLifestage,
|
|
|
|
|
settings.MinSexablePercent,
|
|
|
|
|
settings.VirginRatio,
|
|
|
|
|
settings.SlavesBeenRapedExp,
|
|
|
|
|
settings.EnableSexHistory,
|
2023-03-25 09:17:47 +00:00
|
|
|
|
settings.HideGizmoWhenDrafted
|
2023-03-24 15:22:54 +00:00
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|