비트 찍기 완료 및 클로드를 통한 api작업

This commit is contained in:
jongjae0305
2026-05-20 16:44:28 +09:00
commit 2cd1be88d4
1596 changed files with 444234 additions and 0 deletions
+67
View File
@@ -0,0 +1,67 @@
using System;
using System.Collections.Generic;
using UnityEngine;
[Serializable]
public class NoteData
{
public float time; // 베어야 하는 시간
public int position; // 생성 위치 (0~3)
public int colorType; // 0: 빨강, 1: 파랑
}
[Serializable]
public class MapData
{
public List<NoteData> target;
}
// ── songs.json DTO ──────────────────────────────────────
[Serializable]
public class SongsList
{
public string version;
public List<SongInfo> songs;
}
[Serializable]
public class SongInfo
{
public string id;
public string title;
public string artist;
public float bpm;
public int duration;
public string audioFile;
public long audioSize;
public string coverImage;
public DifficultyMap difficulties;
public string addedAt;
}
[Serializable]
public class DifficultyMap
{
public DifficultyInfo easy;
public DifficultyInfo normal;
public DifficultyInfo hard;
public DifficultyInfo expert;
public DifficultyInfo Get(string key) => key switch
{
"easy" => easy,
"normal" => normal,
"hard" => hard,
"expert" => expert,
_ => null
};
}
[Serializable]
public class DifficultyInfo
{
public string mapFile;
public long mapSize;
public int noteCount;
}