private void SaveToFile() { RankContainer container = new RankContainer(); container.stageID = Program.MainForm.ConfigEditor.currentID; container.normalMission.SonicA = (ushort)NumericSonicA.Value; container.normalMission.SonicB = (ushort)NumericSonicB.Value; container.normalMission.SonicC = (ushort)NumericSonicC.Value; container.normalMission.SonicD = (ushort)NumericSonicD.Value; container.normalMission.DarkA = (ushort)NumericDarkA.Value; container.normalMission.DarkB = (ushort)NumericDarkB.Value; container.normalMission.DarkC = (ushort)NumericDarkC.Value; container.normalMission.DarkD = (ushort)NumericDarkD.Value; container.normalMission.RoseA = (ushort)NumericRoseA.Value; container.normalMission.RoseB = (ushort)NumericRoseB.Value; container.normalMission.RoseC = (ushort)NumericRoseC.Value; container.normalMission.RoseD = (ushort)NumericRoseD.Value; container.normalMission.ChaotixA = (ushort)NumericChaotixA.Value; container.normalMission.ChaotixB = (ushort)NumericChaotixB.Value; container.normalMission.ChaotixC = (ushort)NumericChaotixC.Value; container.normalMission.ChaotixD = (ushort)NumericChaotixD.Value; container.extraMissionScore.SonicA = (ushort)NumericSonicEA.Value; container.extraMissionScore.SonicB = (ushort)NumericSonicEB.Value; container.extraMissionScore.SonicC = (ushort)NumericSonicEC.Value; container.extraMissionScore.SonicD = (ushort)NumericSonicED.Value; container.extraMissionScore.ChaotixA = (ushort)NumericChaotixEA.Value; container.extraMissionScore.ChaotixB = (ushort)NumericChaotixEB.Value; container.extraMissionScore.ChaotixC = (ushort)NumericChaotixEC.Value; container.extraMissionScore.ChaotixD = (ushort)NumericChaotixED.Value; container.extraMissionTime.DarkAMin = (byte)NumericDarkEAMin.Value; container.extraMissionTime.DarkBMin = (byte)NumericDarkEBMin.Value; container.extraMissionTime.DarkCMin = (byte)NumericDarkECMin.Value; container.extraMissionTime.DarkDMin = (byte)NumericDarkEDMin.Value; container.extraMissionTime.RoseAMin = (byte)NumericRoseEAMin.Value; container.extraMissionTime.RoseBMin = (byte)NumericRoseEBMin.Value; container.extraMissionTime.RoseCMin = (byte)NumericRoseECMin.Value; container.extraMissionTime.RoseDMin = (byte)NumericRoseEDMin.Value; container.extraMissionTime.DarkASec = (byte)NumericDarkEASec.Value; container.extraMissionTime.DarkBSec = (byte)NumericDarkEBSec.Value; container.extraMissionTime.DarkCSec = (byte)NumericDarkECSec.Value; container.extraMissionTime.DarkDSec = (byte)NumericDarkEDSec.Value; container.extraMissionTime.RoseASec = (byte)NumericRoseEASec.Value; container.extraMissionTime.RoseBSec = (byte)NumericRoseEBSec.Value; container.extraMissionTime.RoseCSec = (byte)NumericRoseECSec.Value; container.extraMissionTime.RoseDSec = (byte)NumericRoseEDSec.Value; JsonSerializable <RankContainer> .ToPath(container, rankJsonPath); }