using System; using System.Collections.Generic; using Newtonsoft.Json; using WeEngine.ModelInfo; namespace WeApp.Configuration.Cache { public class SceneDto : SceneModel { public List Attaches { get; set; } public bool HasEnd { get; set; } public new string Description => base.Description; [JsonIgnore] public new string _description => base._description; public new List GuideInfos { get; set; } /// /// 系统得分 /// public decimal? SystemScore { get; set; } /// /// 满分 /// public decimal? FullScore { get; set; } /// /// 得分百分比 /// public decimal ScorePer => GetPer(); public decimal GetPer() { if (SystemScore == null || FullScore == null) { return 0; } return Math.Round(((decimal)SystemScore / (decimal)FullScore) * 100, 2); } } public class ScenePathDto { public ScenePathDto() { PathList = new List(); } public bool hasChange { get; set; } public List PathList { get; set; } } }