Exemple #1
0
 public static OnStageStatus GetOnStageStatusOf(RuntimeNote note, double now, NoteTimePoints timePoints)
 {
     if (now < timePoints.Enter)
     {
         return(OnStageStatus.Incoming);
     }
     else if (now > timePoints.Leave)
     {
         return(OnStageStatus.Passed);
     }
     else
     {
         return(OnStageStatus.Visible);
     }
 }
Exemple #2
0
 public static bool IsNotePassed(RuntimeNote note, double now, NoteTimePoints timePoints)
 {
     return(GetOnStageStatusOf(note, now, timePoints) == OnStageStatus.Passed);
 }
Exemple #3
0
 public static bool IsNoteVisible(RuntimeNote note, double now, NoteTimePoints timePoints)
 {
     return(GetOnStageStatusOf(note, now, timePoints) == OnStageStatus.Visible);
 }
Exemple #4
0
 public static bool IsNoteIncoming(RuntimeNote note, double now, NoteTimePoints timePoints)
 {
     return(GetOnStageStatusOf(note, now, timePoints) == OnStageStatus.Incoming);
 }