using System.Collections.Generic; namespace DefaultNamespace.ProcessMode { public class AnimationProcess { public string Type { get; set; } // 流程类型(例如:教学、培训、练习) public List Steps { get; private set; } // 流程中的步骤列表 /// /// 构造函数 /// /// 流程类型 public AnimationProcess(string type) { Type = type; Steps = new List(); } /// /// 添加步骤到流程中 /// /// 要添加的步骤 public void AddStep(AnimationStep step) { Steps.Add(step); } /// /// 计算流程的总评分 /// /// 总评分 public float CalculateTotalScore() { float totalScore = 0; foreach (AnimationStep step in Steps) { totalScore += step.Score; } return totalScore; } } }