public static WaypointsSection Read(IBitReader reader) { var waypointsSection = new WaypointsSection { Header = reader.ReadUInt16(), Version = reader.ReadUInt32(), Length = reader.ReadUInt16() }; for (int i = 0; i < waypointsSection._difficulties.Length; i++) { waypointsSection._difficulties[i] = WaypointsDifficulty.Read(reader); } return(waypointsSection); }
public static byte[] Write(WaypointsDifficulty waypointsDifficulty) { using var writer = new BitWriter(); waypointsDifficulty.Write(writer); return(writer.ToArray()); }
public static WaypointsDifficulty Read(IBitReader reader) { var waypointsDifficulty = new WaypointsDifficulty(reader); return(waypointsDifficulty); }