-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathEngineRunData.cs
More file actions
33 lines (29 loc) · 835 Bytes
/
EngineRunData.cs
File metadata and controls
33 lines (29 loc) · 835 Bytes
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
namespace TestFlight
{
public class EngineRunData : IConfigNode
{
public uint id;
public bool hasBeenRun;
public float timeSinceLastShutdown;
public EngineRunData(uint id)
{
this.id = id;
}
public EngineRunData(ConfigNode node)
{
Load(node);
}
public void Load(ConfigNode node)
{
node.TryGetValue("id", ref id);
node.TryGetValue("hasBeenRun", ref hasBeenRun);
node.TryGetValue("timeSinceLastShutdown", ref timeSinceLastShutdown);
}
public void Save(ConfigNode node)
{
node.AddValue("id", id);
node.AddValue("hasBeenRun", hasBeenRun);
node.AddValue("timeSinceLastShutdown", timeSinceLastShutdown);
}
}
}