private void PresentEventInfo() { var item = view.SelectedEvent; if (item == null) { view.EventInfoEnabled = false; return; } view.EventInfoEnabled = true; view.EventType = (int)item.eventType; view.OrdRankType = (int)item.ordRankType; view.OrdRankId = item.ordRankId; view.QualRankType = (int)item.qualRankType; view.QualRankId = item.qualRankId; view.InLimitType = (int)item.inLimitType; view.InLimit = item.inLimit; view.PreQualRankType = (int)item.preQualRankType; view.PreQualRankId = item.preQualRankId; view.PreQualLimitType = (int)item.preQualLimitType; view.PreQualLimit = item.preQualLimit; view.SelectedRoundsInfo = item.roundInfos; view.HillSurface = (int)item.hillSurface; view.SelectedHill = hills.GetProfileData(item.hillId); view.SelectedClassifications = calendarFactory.GetClassificationDataFromIds(item.classifications); }
private void HillSetUp(GameSave save, int eventId, EventInfo currentEventInfo) { var hillId = save.calendar.events[eventId].hillId; hill.profileData.Value = hillsRepository.GetProfileData(hillId); hill.landingAreaSO = hillsFactory.landingAreas[(int)currentEventInfo.hillSurface].Value; var track = currentEventInfo.hillSurface == HillSurface.Matting ? hill.profileData.Value.inrunData.summerTrack : hill.profileData.Value.inrunData.winterTrack; hill.inrunTrackSO = hillsFactory.inrunTracks[(int)track].Value; hill.GenerateMesh(); _hillInfo = hillsRepository.GetHillInfo(hillId); var(head, tail, gate) = compensationsJumpSimulator.GetCompensations(); _hillInfo.SetCompensations(head, tail, gate); }