diff --git a/Examples/PrintRHRData/PrintRHRData.csproj b/Examples/PrintRHRData/PrintRHRData.csproj new file mode 100644 index 0000000..1db72d6 --- /dev/null +++ b/Examples/PrintRHRData/PrintRHRData.csproj @@ -0,0 +1,14 @@ + + + + Exe + net10.0 + enable + enable + + + + + + + \ No newline at end of file diff --git a/Examples/PrintRHRData/Program.cs b/Examples/PrintRHRData/Program.cs new file mode 100644 index 0000000..cd78d9f --- /dev/null +++ b/Examples/PrintRHRData/Program.cs @@ -0,0 +1,31 @@ +using RhythiaLib.Rhr; + +namespace PrintRHRData +{ + internal class Program + { + static void Main(string[] args) + { + if (args.Length == 0) + { + Console.WriteLine("No path provided"); + return; + } + string path = args[0]; + if (string.IsNullOrWhiteSpace(path) || !File.Exists(path)) + { + Console.WriteLine("File not found"); + return; + } + + RhrReplay replay = RhrFile.Read(path); + Console.WriteLine($"Version: {replay.Version}"); + Console.WriteLine($"Player: {replay.ScoreData.PlayerName}"); + Console.WriteLine($"Map: {replay.ScoreData.LegacyMapId}"); + Console.WriteLine($"Accuracy: {replay.ScoreData.Accuracy}%"); + Console.WriteLine($"Misses: {replay.ScoreData.Misses}"); + Console.WriteLine($"Score: {replay.ScoreData.TotalScore}"); + Console.WriteLine($"Frames: {replay.Frames.Count}"); + } + } +} diff --git a/Examples/RhythiaLib.Examples.slnx b/Examples/RhythiaLib.Examples.slnx new file mode 100644 index 0000000..bd0c5d3 --- /dev/null +++ b/Examples/RhythiaLib.Examples.slnx @@ -0,0 +1,3 @@ + + +