-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLevelConfiguration.cs
More file actions
35 lines (33 loc) · 1.02 KB
/
LevelConfiguration.cs
File metadata and controls
35 lines (33 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.Text;
namespace coil
{
public class LevelConfiguration
{
public TweakPicker TweakPicker { get; set; }
public SegPicker SegPicker { get; set; }
public OptimizationSetup OptimizationSetup { get; set; }
public InitialWanderSetup InitialWanderSetup { get; set; }
public LevelConfiguration(TweakPicker tp, SegPicker sp, OptimizationSetup optimizationSetup, InitialWanderSetup iws)
{
TweakPicker = tp;
SegPicker = sp;
OptimizationSetup = optimizationSetup;
InitialWanderSetup = iws;
}
public string GetStr()
{
var os = OptimizationSetup.GetStr();
if (string.IsNullOrWhiteSpace(os))
{
os = "";
}
else
{
os = " " + os;
}
return $"{TweakPicker.GetStr()} {SegPicker.GetName()}{os}";
}
}
}