-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSledData.cs
More file actions
48 lines (43 loc) · 1.58 KB
/
SledData.cs
File metadata and controls
48 lines (43 loc) · 1.58 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
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleModMenu
{
internal class SledData
{
public MeshInterpretter originalValues;
public MeshInterpretter newValues;
public SledData()
{
this.originalValues = new MeshInterpretter();
this.newValues = new MeshInterpretter();
}
public SledData(MeshInterpretter originalValues, MeshInterpretter newValues)
{
this.originalValues = originalValues;
this.newValues = newValues;
}
/// <summary>
/// Resets the new values to the original values.
/// </summary>
public void resetToOriginal()
{
CopyValues(originalValues, newValues);
}
/// <summary>
/// Copies the values from one MeshInterpretter to another.
/// </summary>
/// <param name="originValues">The origin MeshInterpretter</param>
/// <param name="destinationValues">The destination MeshInterpretter</param>
public static void CopyValues(MeshInterpretter originValues, MeshInterpretter destinationValues)
{
destinationValues.power = originValues.power;
destinationValues.lugHeight = originValues.lugHeight;
destinationValues.pitchFactor = originValues.pitchFactor;
destinationValues.coefficientOfFriction = originValues.coefficientOfFriction;
destinationValues.snowPushForceFactor = originValues.snowPushForceFactor;
}
}
}