Add duty free systems and travel stage updates
This commit is contained in:
@@ -8,12 +8,39 @@ public class MapDefinition {
|
||||
public bool isTutorial;
|
||||
public Platform.PlatformSkin platformSkin;
|
||||
public string backgroundResourcePath;
|
||||
public string[] backgroundResourcePaths;
|
||||
public float backgroundFitScaleMultiplier = 1f;
|
||||
public float backgroundVerticalOffset = 0f;
|
||||
public FinishGateStyle finishGateStyle;
|
||||
public float targetDistance;
|
||||
public float timeLimit;
|
||||
public int clearMileageReward;
|
||||
public bool hasNextMap;
|
||||
public MapId nextMapId;
|
||||
public CourseProfile courseProfile;
|
||||
public CourseStep[] openingSteps;
|
||||
public CourseStep[] loopSteps;
|
||||
|
||||
public CourseStep[] GetOpeningSteps() {
|
||||
return courseProfile != null
|
||||
? courseProfile.GetOpeningSteps()
|
||||
: CourseStepFactory.CloneSteps(openingSteps);
|
||||
}
|
||||
|
||||
public CourseStep[] GetLoopSteps() {
|
||||
return courseProfile != null
|
||||
? courseProfile.GetLoopSteps()
|
||||
: CourseStepFactory.CloneSteps(loopSteps);
|
||||
}
|
||||
|
||||
public string[] GetBackgroundResourcePaths() {
|
||||
if(backgroundResourcePaths != null && backgroundResourcePaths.Length > 0)
|
||||
{
|
||||
return (string[]) backgroundResourcePaths.Clone();
|
||||
}
|
||||
|
||||
return string.IsNullOrEmpty(backgroundResourcePath)
|
||||
? new string[0]
|
||||
: new string[] { backgroundResourcePath };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user