mirror of
https://gitea.tendokyu.moe/beerpsi/sinmai-mods.git
synced 2024-11-24 07:40:16 +01:00
27 lines
907 B
C#
27 lines
907 B
C#
|
using System.Runtime.CompilerServices;
|
|||
|
using Manager;
|
|||
|
using MoreChartFormats.Simai.Structures;
|
|||
|
|
|||
|
namespace MoreChartFormats.MaiSxt.Structures;
|
|||
|
|
|||
|
public struct SxtRow
|
|||
|
{
|
|||
|
public float Bar;
|
|||
|
public float Grid;
|
|||
|
public float HoldDuration;
|
|||
|
public int Position;
|
|||
|
public int NoteType;
|
|||
|
public int SlideId;
|
|||
|
public int SlidePattern;
|
|||
|
// public int SlideCount;
|
|||
|
public float? SlideDelay;
|
|||
|
|
|||
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|||
|
public readonly NotesTime NotesTime(NotesReader nr) => new NotesTime((int)Bar, (int)(Grid * nr.getResolution()), nr);
|
|||
|
|
|||
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|||
|
public readonly NotesTime SlideDelayNotesTime(NotesReferences refs) => SlideDelay.HasValue
|
|||
|
? ParserUtilities.NotesTimeFromBars(refs, SlideDelay.Value)
|
|||
|
: new NotesTime(0, refs.Header._resolutionTime / 4, refs.Reader);
|
|||
|
}
|