using JetBrains.Annotations; using Realms; namespace EscapeRoomEngine.Engine.Runtime.Measurements { /// /// The target and estimated time, along with the percentile since the last section, that will be stored in the database. /// public class PlanResult : EmbeddedObject { /// /// The target time set by the game master when this section ended. /// public float TargetTime { get; set; } /// /// The percentile of the current player during this section. /// public float SectionPercentile { get; set; } /// /// The estimated time to complete the whole puzzle plan when this section ended. /// public float TimeEstimation { get; set; } [UsedImplicitly] public PlanResult() {} public PlanResult(float targetTime, float sectionPercentile, float timeEstimation) { TargetTime = targetTime; SectionPercentile = float.IsNaN(sectionPercentile) ? 0.5f : sectionPercentile; TimeEstimation = timeEstimation; } } }