示例#1
0
    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);
    }
示例#2
0
 public static byte[] Write(WaypointsDifficulty waypointsDifficulty)
 {
     using var writer = new BitWriter();
     waypointsDifficulty.Write(writer);
     return(writer.ToArray());
 }
示例#3
0
    public static WaypointsDifficulty Read(IBitReader reader)
    {
        var waypointsDifficulty = new WaypointsDifficulty(reader);

        return(waypointsDifficulty);
    }