chore: setup & add examples solution/project

This commit is contained in:
2026-08-04 13:07:10 -04:00
parent 512d616a51
commit 779ce75dd1
3 changed files with 48 additions and 0 deletions
+31
View File
@@ -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}");
}
}
}