-
Notifications
You must be signed in to change notification settings - Fork 1
/
SimulationSettings.cs
52 lines (46 loc) · 1.95 KB
/
SimulationSettings.cs
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
namespace Slimulator {
public class SimulationSettings {
public SimulationSettings(
int totalCountOfSimulationTicks = 70_000,
int ticksPerFrame = 20,
int frameRate = 60,
string seed = "HlenkaHelenka",
int threadCount = 1,
int slimeAffinityRadius = 4,
int slimeOccurenceAffinityMultiplier = 1,
int slimeTimeAffinityMultiplier = 10) {
TotalCountOfSimulationTicks = totalCountOfSimulationTicks;
TicksPerFrame = ticksPerFrame;
FrameRate = frameRate;
Seed = seed;
ThreadCount = threadCount;
SlimeAffinityRadius = slimeAffinityRadius;
SlimeOccurenceAffinityMultiplier = slimeOccurenceAffinityMultiplier;
SlimeTimeAffinityMultiplier = slimeTimeAffinityMultiplier;
}
public string Seed { get; }
public int TotalCountOfSimulationTicks { get; }
public int TicksPerFrame { get; }
public int FrameRate { get; }
public int SlimeAffinityRadius { get; }
public int SlimeOccurenceAffinityMultiplier { get; }
public int SlimeTimeAffinityMultiplier { get; }
public int ThreadCount { get; }
public static SimulationSettings Default() {
return new();
}
public static SimulationSettings SlowMotion() {
return new(totalCountOfSimulationTicks: 50_000, ticksPerFrame: 5);
}
public static SimulationSettings Fast() {
return new(totalCountOfSimulationTicks: 100_000, ticksPerFrame: 100);
}
public static SimulationSettings Benchmark() {
return new (totalCountOfSimulationTicks: 30_000, ticksPerFrame: 1000, frameRate: 1,
threadCount: 1);
}
public static SimulationSettings QuickTest() {
return new (totalCountOfSimulationTicks: 10_000, ticksPerFrame: 10, frameRate: 60);
}
}
}