mirror of
https://github.com/OatmealDome/Rotationator.git
synced 2026-03-21 17:34:16 -05:00
Program: Save override phases to BYAML
For debugging purposes, just in case.
This commit is contained in:
parent
6297c86fe0
commit
700ecb78ff
|
|
@ -25,4 +25,15 @@ public class OverridePhase
|
|||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public Dictionary<string, dynamic> ToByamlCompatibleFormat()
|
||||
{
|
||||
return new Dictionary<string, dynamic>()
|
||||
{
|
||||
{ "Length", Length },
|
||||
{ "RegularStages", RegularStages },
|
||||
{ "GachiRule", GachiRule.ToEnumString() },
|
||||
{ "GachiStages", GachiStages }
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
@ -302,7 +302,13 @@ void Run(InvocationContext context)
|
|||
{ "Generator", "Rotationator 1" },
|
||||
{ "GenerationTime", referenceNow.ToString("O") },
|
||||
{ "BaseByamlStartTime", baseTime.ToString("O") },
|
||||
{ "RandomSeed", seed.ToString() }
|
||||
{ "RandomSeed", seed.ToString() },
|
||||
{
|
||||
"OverridePhases",
|
||||
overridePhases.Select(p =>
|
||||
new KeyValuePair<string, dynamic>(p.Key.ToString("O"), p.Value.ToByamlCompatibleFormat()))
|
||||
.ToDictionary()
|
||||
}
|
||||
};
|
||||
|
||||
ByamlFile.Save(outputByamlPath, lastByaml, new ByamlSerializerSettings()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user