-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPolyTechUtils.cs
55 lines (54 loc) · 1.56 KB
/
PolyTechUtils.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
53
54
55
using System.IO;
using PolyTechFramework;
namespace PolyTechFramework
{
class PolyTechUtils
{
public static void setModdedSimSpeeds()
{
Bridge.NUM_SIMULATION_SPEEDS = 11;
Bridge.DEFAULT_SIMULATION_SPEED_INDEX = 5;
Bridge.m_SimulationSpeeds = new float[]
{
0.0000001f,
0.05f,
0.1f,
0.2f,
0.5f,
1f,
2f,
3f,
6f,
12f,
24f
};
}
public static void setVanillaSimSpeeds()
{
Bridge.NUM_SIMULATION_SPEEDS = 5;
Bridge.DEFAULT_SIMULATION_SPEED_INDEX = 2;
Bridge.m_SimulationSpeeds = new float[]
{
0.2f,
0.5f,
1f,
2f,
3f
};
}
public static void setReplaysModded()
{
if (GamePersistentPath.GetPersistentDataDirectory() == null) return;
Replays.m_Path = Path.Combine(GamePersistentPath.GetPersistentDataDirectory(), Replays.REPLAYS_DIRECTORY);
Replays.m_Path = Path.Combine(Replays.m_Path, "modded");
Utils.TryToCreateDirectory(Replays.m_Path);
}
public static void setReplaysVanilla()
{
Replays.m_Path = Path.Combine(GamePersistentPath.GetPersistentDataDirectory(), Replays.REPLAYS_DIRECTORY);
}
public static void setVersion()
{
}
}
}