using MongoDB.Bson.Serialization.Attributes; using System; using System.Collections.Generic; using System.Text; namespace ET { public class Task:Entity { public TaskTargetType TaskTargetType; public int[] TotalAmountList; public int[] CurrAmountList; [BsonIgnore] public bool IsComplete { get { if (TotalAmountList == null ) return false; bool iscomplete = true; for (int i = 0; i < TotalAmountList.Length; i++) { iscomplete = iscomplete && CurrAmountList[i] >= TotalAmountList[i]; } return iscomplete; } } } public class UnitTask:Entity,ISerializeToEntity { public List FinishTaskIdList { get; set; }= new List(); /// /// 待领取奖励 /// public List CompleteTaskIdList { get; set; }= new List(); public List RunningTaskList{ get; set; } = new List(); //!日常任务数 6 public long[] DateTimeArr = new long[6]; } }