예제 #1
0
 public static Hit FromSingle(BSMap map, JsonNote note)
 {
     return(new(
                note.Position() + .5f + note.Rotation() * -.5f,
                note.Position() + .5f + note.Rotation() * .5f,
                note.Time,
                map.BeatTimeToRealTime(note.Time),
                new List <JsonNote> {
         note
     }
                ));
 }
예제 #2
0
 // https://github.com/Kylemc1413/MappingExtensions#precision-note-placement
 public static Vector2 Position(this JsonNote note)
 => new (ExtendedPositionToRealPosition(note.X), ExtendedPositionToRealPosition(note.Y));