23 lines
628 B
C#
23 lines
628 B
C#
using System;
|
|
|
|
[Serializable]
|
|
public class CourseProfile {
|
|
public CourseStep[] openingSteps;
|
|
public CourseStep[] loopSteps;
|
|
|
|
public CourseStep[] GetOpeningSteps() {
|
|
return CourseStepFactory.CloneSteps(openingSteps);
|
|
}
|
|
|
|
public CourseStep[] GetLoopSteps() {
|
|
return CourseStepFactory.CloneSteps(loopSteps);
|
|
}
|
|
|
|
public static CourseProfile Create(CourseStep[] openingSteps, CourseStep[] loopSteps) {
|
|
return new CourseProfile {
|
|
openingSteps = CourseStepFactory.CloneSteps(openingSteps),
|
|
loopSteps = CourseStepFactory.CloneSteps(loopSteps)
|
|
};
|
|
}
|
|
}
|