feat: VFS 虚拟仿真实验核心框架 v2
- 加权评分系统:每步独立 ScoreWeight,满分 100,SequenceClick 按子项比例计分 - StepData 新增 DetailedContent(学习模式详细操作说明)和 SubStepCount - 伤情检查步骤扩展为 5 子项序列(视觉检查→肿胀→疼痛→生命体征→神经评估) - 夹板固定模式完整评分(选择夹板→放置衬垫→夹板固定→固定后检查) - Doc/ 文件夹归档三份文档:项目大纲、文案、评分标准 - README 更新评分权重表和夹板固定流程
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
/// 单个实验类型的完整配置:包含学习模式与考核模式的所有步骤。
|
||||
/// 在 Unity Editor 中为每种实验类型各创建一份 Asset。
|
||||
/// </summary>
|
||||
[CreateAssetMenu(fileName = "ExperimentConfig", menuName = "VFS/Experiment Config")]
|
||||
public class ExperimentConfig : ScriptableObject
|
||||
{
|
||||
[Header("实验标识")]
|
||||
public ExperimentType Type;
|
||||
[Header("实验名称")]
|
||||
public string DisplayName;
|
||||
[Header("骨折固定专属 - 固定方式对应的步骤覆盖")]
|
||||
public FixationMethod DefaultFixationMethod = FixationMethod.LimbFixation;
|
||||
[Header("学习模式步骤列表(肢体固定)")]
|
||||
public StepData[] LearnStepsLimb;
|
||||
[Header("学习模式步骤列表(夹板固定)")]
|
||||
public StepData[] LearnStepsSplint;
|
||||
[Header("考核模式步骤列表(肢体固定)")]
|
||||
public StepData[] ExamStepsLimb;
|
||||
[Header("考核模式步骤列表(夹板固定)")]
|
||||
public StepData[] ExamStepsSplint;
|
||||
|
||||
public StepData[] GetStepsFor(ExperimentMode mode, FixationMethod fixation)
|
||||
{
|
||||
if (mode == ExperimentMode.Learn)
|
||||
return fixation == FixationMethod.SplintFixation ? LearnStepsSplint : LearnStepsLimb;
|
||||
else
|
||||
return fixation == FixationMethod.SplintFixation ? ExamStepsSplint : ExamStepsLimb;
|
||||
}
|
||||
|
||||
public int StepCount(ExperimentMode mode, FixationMethod fixation)
|
||||
{
|
||||
var steps = GetStepsFor(mode, fixation);
|
||||
return steps != null ? steps.Length : 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user