Example #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);
     }
 }
Example #2
0
 public static bool IsNotePassed(RuntimeNote note, double now, NoteTimePoints timePoints)
 {
     return(GetOnStageStatusOf(note, now, timePoints) == OnStageStatus.Passed);
 }
Example #3
0
 public static bool IsNoteVisible(RuntimeNote note, double now, NoteTimePoints timePoints)
 {
     return(GetOnStageStatusOf(note, now, timePoints) == OnStageStatus.Visible);
 }
Example #4
0
 public static bool IsNoteIncoming(RuntimeNote note, double now, NoteTimePoints timePoints)
 {
     return(GetOnStageStatusOf(note, now, timePoints) == OnStageStatus.Incoming);
 }