/// <summary> /// 从timetable中删去Checkpoint /// </summary> /// <param name="checkpoint"></param> public static void RemoveCheckpoint(Checkpoint.Checkpoint checkpoint) => _timeTable.Remove(checkpoint);
/// <summary> /// 查看时间表中是否已经有了Checkpoint /// </summary> /// <param name="cp"></param> /// <returns></returns> private static bool CheckpointListContains(Checkpoint.Checkpoint cp) => _timeTable.Any(checkpoint => checkpoint == cp);
/// <summary> /// 往timetable中加入Checkpoint /// </summary> /// <param name="checkpoint"></param> public static void AddCheckpoint(Checkpoint.Checkpoint checkpoint) => _timeTable.Add(checkpoint);