You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Models/R3E.cs
+77-22Lines changed: 77 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
usingSystem;
1
2
usingSystem.Runtime.InteropServices;
2
3
3
4
namespaceR3E
@@ -9,13 +10,26 @@ public class Constant
9
10
publicenumVersionMajor
10
11
{
11
12
// Major version number to test against
12
-
R3E_VERSION_MAJOR=2
13
+
R3E_VERSION_MAJOR=3
13
14
};
14
15
15
16
publicenumVersionMinor
16
17
{
17
18
// Minor version number to test against
18
-
R3E_VERSION_MINOR=14
19
+
R3E_VERSION_MINOR=4
20
+
};
21
+
22
+
publicenumGameMode
23
+
{
24
+
Unavailable=-1,
25
+
TrackTest=0,
26
+
LeaderboardChallenge=1,
27
+
Competition=2,
28
+
SingleRace=3,
29
+
Championship=4,
30
+
Multiplayer=5,
31
+
MultiplayerRanked=6,// not impl currently
32
+
TryBeforeYouBuy=7,
19
33
};
20
34
21
35
publicenumSession
@@ -153,16 +167,17 @@ public enum PitMenuSelection
153
167
Fuel=3,
154
168
Fronttires=4,
155
169
Reartires=5,
156
-
Frontwing=6,
157
-
Rearwing=7,
158
-
Suspension=8,
170
+
Body=6,
171
+
Frontwing=7,
172
+
Rearwing=8,
173
+
Suspension=9,
159
174
160
175
// Pit menu buttons
161
-
ButtonTop=9,
162
-
ButtonBottom=10,
176
+
ButtonTop=10,
177
+
ButtonBottom=11,
163
178
164
179
// Pit menu nothing selected
165
-
Max=11
180
+
Max=12
166
181
};
167
182
168
183
publicenumTireType
@@ -238,6 +253,9 @@ public struct SectorStarts<T>
238
253
[StructLayout(LayoutKind.Sequential,Pack=1)]
239
254
publicstructPlayerData
240
255
{
256
+
// Player user id
257
+
publicInt32userId;
258
+
241
259
// Virtual physics time
242
260
// Unit: Ticks (1 tick = 1/400th of a second)
243
261
publicInt32gameSimulationTicks;
@@ -319,6 +337,8 @@ public struct PlayerData
319
337
320
338
// Reserved data
321
339
publicDoubleunused1;
340
+
publicDoubleunused2;
341
+
publicDoubleunused3;
322
342
}
323
343
324
344
[StructLayout(LayoutKind.Sequential,Pack=1)]
@@ -441,6 +461,7 @@ public struct PitMenuState
441
461
publicInt32fuel;
442
462
publicInt32frontTires;
443
463
publicInt32rearTires;
464
+
publicInt32body;
444
465
publicInt32frontWing;
445
466
publicInt32rearWing;
446
467
publicInt32suspension;
@@ -453,11 +474,12 @@ public struct PitMenuState
453
474
[StructLayout(LayoutKind.Sequential,Pack=1)]
454
475
publicstructCutTrackPenalties
455
476
{
456
-
publicInt32driveThrough;
457
-
publicInt32stopAndGo;
458
-
publicInt32pitStop;
459
-
publicInt32timeDeduction;
460
-
publicInt32slowDown;
477
+
// -1.0 = none pending, otherwise penalty time dep on penalty type (drive-through active = 0.0, stop-and-go = time to stay, slow-down = time left to give back etc))
0 commit comments