private void SaveTrainerInfo() { SAV.Game = (byte)(CB_Game.SelectedIndex + (int)GameVersion.SW); SAV.Gender = (byte)CB_Gender.SelectedIndex; SAV.Money = Util.ToUInt32(MT_Money.Text); SAV.Language = WinFormsUtil.GetIndex(CB_Language); SAV.OT = TB_OTName.Text; SAV.Blocks.TrainerCard.OT = TB_TrainerCardName.Text; SAV.Blocks.MyStatus.Number = SAV.Blocks.TrainerCard.Number = TB_TrainerCardNumber.Text; SAV.Blocks.TrainerCard.TrainerID = Util.ToInt32(MT_TrainerCardID.Text); SAV.Blocks.TrainerCard.RotoRallyScore = Util.ToInt32(MT_RotoRally.Text); var watt = Util.ToUInt32(MT_Watt.Text); SAV.MyStatus.Watt = watt; if (SAV.GetRecord(Record8.WattTotal) < watt) { SAV.SetRecord(Record8.WattTotal, (int)watt); } SAV.Misc.BP = (int)NUD_BP.Value; // Copy Position //if (GB_Map.Enabled && MapUpdated) //{ // SAV.Situation.M = (int)NUD_M.Value; // SAV.Situation.X = (float)NUD_X.Value; // SAV.Situation.Z = (float)NUD_Z.Value; // SAV.Situation.Y = (float)NUD_Y.Value; // SAV.Situation.R = (float)NUD_R.Value; // SAV.Situation.UpdateOverworldCoordinates(); //} // Save PlayTime SAV.PlayedHours = ushort.Parse(MT_Hours.Text); SAV.PlayedMinutes = ushort.Parse(MT_Minutes.Text) % 60; SAV.PlayedSeconds = ushort.Parse(MT_Seconds.Text) % 60; //SAV.SecondsToStart = (uint)Util.GetSecondsFrom2000(CAL_AdventureStartDate.Value, CAL_AdventureStartTime.Value); //SAV.SecondsToFame = (uint)Util.GetSecondsFrom2000(CAL_HoFDate.Value, CAL_HoFTime.Value); // //if (SAV.Played.LastSavedDate.HasValue) // SAV.Played.LastSavedDate = new DateTime(CAL_LastSavedDate.Value.Year, CAL_LastSavedDate.Value.Month, CAL_LastSavedDate.Value.Day, CAL_LastSavedTime.Value.Hour, CAL_LastSavedTime.Value.Minute, 0); }