mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-08-06 00:00:23 +08:00
refactor(UniverseGenTweaks): split MoreSettings into focused classes
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System.IO;
|
||||
using UXAssist.Common.ModFeatures;
|
||||
|
||||
namespace UniverseGenTweaks;
|
||||
|
||||
[ModFeature("UniverseGenSave", Order = 13)]
|
||||
public static class GalaxyGenSave
|
||||
{
|
||||
public static void Export(BinaryWriter w)
|
||||
{
|
||||
w.Write(GalaxyGenSettingsPatch.GameMinDist);
|
||||
w.Write(GalaxyGenSettingsPatch.GameMinStep);
|
||||
w.Write(GalaxyGenSettingsPatch.GameMaxStep);
|
||||
w.Write(GalaxyGenSettingsPatch.GameFlatten);
|
||||
}
|
||||
|
||||
public static void Import(BinaryReader r)
|
||||
{
|
||||
GalaxyGenSettingsPatch.GameMinDist = r.ReadDouble();
|
||||
GalaxyGenSettingsPatch.GameMinStep = r.ReadDouble();
|
||||
GalaxyGenSettingsPatch.GameMaxStep = r.ReadDouble();
|
||||
GalaxyGenSettingsPatch.GameFlatten = r.ReadDouble();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user