Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions QuestomAssets/BeatSaber/DifficultyBeatmap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ public class DifficultyBeatmap
[JsonProperty("_noteJumpMovementSpeed")]
public Single NoteJumpMovementSpeed { get; set; }

/// <summary>
/// This value is actually an integer, but some custom maps have a float in there and it won't deserialize properly
/// </summary>
[JsonProperty("_noteJumpStartBeatOffset")]
public Single NoteJumpStartBeatOffset { get; set; }

Expand Down Expand Up @@ -51,7 +48,7 @@ private void Parse(AssetsFile assetsFile, AssetsObject owner, AssetsReader reade
Difficulty = (Difficulty)reader.ReadInt32();
DifficultyRank = reader.ReadInt32();
NoteJumpMovementSpeed = reader.ReadSingle();
NoteJumpStartBeatOffset = reader.ReadInt32();
NoteJumpStartBeatOffset = reader.ReadSingle();
BeatmapDataPtr = SmartPtr<BeatmapDataObject>.Read(assetsFile, owner, reader);
}

Expand All @@ -60,10 +57,9 @@ public void Write(AssetsWriter writer)
writer.Write((int)Difficulty);
writer.Write(DifficultyRank);
writer.Write(NoteJumpMovementSpeed);
Int32 jump = (Int32)NoteJumpStartBeatOffset;
writer.Write(jump);
writer.Write(NoteJumpStartBeatOffset);
BeatmapDataPtr.Write(writer);
}
}

}
}