forked from mherbold/IRSDKSharper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIRacingSdkDatum.cs
More file actions
42 lines (38 loc) · 1.06 KB
/
Copy pathIRacingSdkDatum.cs
File metadata and controls
42 lines (38 loc) · 1.06 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
namespace IRSDKSharper
{
public class IRacingSdkDatum
{
public const int MaxNameLength = 32;
public const int MaxDescLength = 64;
public const int MaxUnitLength = 32;
public const int Size = sizeof( IRacingSdkEnum.VarType ) + sizeof( int ) * 2 + sizeof( bool ) + 3 /* padding */ + MaxNameLength + MaxDescLength + MaxUnitLength;
public IRacingSdkEnum.VarType VarType { get; }
public int Offset { get; }
public int Count { get; }
public bool CountAsTime { get; }
public string Name { get; }
public string Desc { get; }
public string Unit { get; }
public IRacingSdkDatum()
{
VarType = IRacingSdkEnum.VarType.Bool;
Offset = 0;
Count = 1;
CountAsTime = false;
Name = "Not initialized";
Desc = "Not initialized";
Unit = "Not initialized";
}
public IRacingSdkDatum( IRacingSdkEnum.VarType varType, int offset, int count, bool countAsTime, string name, string desc, string unit )
{
VarType = varType;
Offset = offset;
Count = count;
CountAsTime = countAsTime;
Name = name;
Desc = desc;
Unit = unit;
}
}
}