TripleSlice / F1Telemetry

Telemetry for the F1 23 game which gives different overlays which can be customized
GNU General Public License v3.0
18 stars 1 forks source link

Create better Enums for packets #13

Closed ryanabaker closed 2 years ago

ryanabaker commented 2 years ago

Update current Struct definitions to use enums such as:

PacketLapData.cs public byte m_resultStatus; // Result status - 0 = invalid, 1 = inactive, 2 = active // 3 = finished, 4 = didnotfinish, 5 = disqualified

should become....

public Result m_resultStatus; // Result status - 0 = invalid, 1 = inactive, 2 = active // 3 = finished, 4 = didnotfinish, 5 = disqualified

public enum Result : byte { Invalid, Inactive, Active, Finished, DidNotFinish, Disqualified }