Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions RhythmGameUtilities/Scripts/Parsers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public static Dictionary<int, int> ParseBpmFromChartSection(
return section
.Where(item => item.Value[0] == TypeCode.BPM)
.Select(item => new KeyValuePair<int, int>(int.Parse(item.Key), int.Parse(item.Value.Skip(1).First())))
.OrderBy(item => item.Key)
.ToDictionary(item => item.Key, x => x.Value);
}

Expand Down
14 changes: 0 additions & 14 deletions RhythmGameUtilities/Structs/Song.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,20 +98,6 @@ public class Song
[JsonProperty]
public Dictionary<int, int> BPM { get; internal set; }

[JsonIgnore]
public Dictionary<int, int> SortedBPM
{
get
{
if (_sortedBPM.Count != BPM.Count)
{
_sortedBPM = new Dictionary<int, int>(BPM.OrderBy(b => b.Key));
}

return _sortedBPM;
}
}

[JsonProperty]
public Dictionary<int, int[]> TimeSignatures { get; internal set; }

Expand Down
1 change: 1 addition & 0 deletions UnityPackage/Scripts/Parsers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public static Dictionary<int, int> ParseBpmFromChartSection(
return section
.Where(item => item.Value[0] == TypeCode.BPM)
.Select(item => new KeyValuePair<int, int>(int.Parse(item.Key), int.Parse(item.Value.Skip(1).First())))
.OrderBy(item => item.Key)
.ToDictionary(item => item.Key, x => x.Value);
}

Expand Down
14 changes: 0 additions & 14 deletions UnityPackage/Structs/Song.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,20 +98,6 @@ public class Song
[JsonProperty]
public Dictionary<int, int> BPM { get; internal set; }

[JsonIgnore]
public Dictionary<int, int> SortedBPM
{
get
{
if (_sortedBPM.Count != BPM.Count)
{
_sortedBPM = new Dictionary<int, int>(BPM.OrderBy(b => b.Key));
}

return _sortedBPM;
}
}

[JsonProperty]
public Dictionary<int, int[]> TimeSignatures { get; internal set; }

Expand Down