| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- using System;
- using System.Collections.Generic;
- using Newtonsoft.Json;
- using WeEngine.ModelInfo;
- namespace WeApp.Configuration.Cache
- {
- public class SceneDto : SceneModel
- {
- public List<CampAttachDto> Attaches { get; set; }
- public bool HasEnd { get; set; }
- public new string Description => base.Description;
- [JsonIgnore]
- public new string _description => base._description;
- public new List<GuideModel> GuideInfos { get; set; }
- /// <summary>
- /// 系统得分
- /// </summary>
- public decimal? SystemScore { get; set; }
- /// <summary>
- /// 满分
- /// </summary>
- public decimal? FullScore { get; set; }
- /// <summary>
- /// 得分百分比
- /// </summary>
- 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<string>();
- }
- public bool hasChange { get; set; }
- public List<string> PathList { get; set; }
- }
- }
|