Пример #1
0
 public CNote(CNote note)
 {
     _StartBeat = note._StartBeat;
     _Duration = note._Duration;
     _Tone = note._Tone;
     _NoteType = note._NoteType;
     _Text = note._Text;
     _Hit = note._Hit;
     _Perfect = note._Perfect;
 }
Пример #2
0
 public CNote(int StartBeat, int Duration, int Tone, string Text, bool Hit, ENoteType NoteType)
     : this(StartBeat, Duration, Tone, Text)
 {
     this.NoteType = NoteType;
     this.Hit = Hit;
 }
Пример #3
0
        private void ParseNote(int Player, ENoteType NoteType, int Start, int Length, int Tone, string Text)
        {
            CNote note = new CNote(Start, Length, Tone, Text, NoteType);
            CLines lines = this.Notes.GetLines(Player);

            if (lines.LineCount == 0)
            {
                CLine line = new CLine();
                line.AddNote(note);
                lines.AddLine(line);
            }
            else
            {
                lines.AddNote(note, lines.LineCount - 1);
            }
        }
Пример #4
0
 public void ExecuteAndNotify(IReadOnlyCollection <Note> selectedNotes, ENoteType type)
 {
     Execute(selectedNotes, type);
     songMetaChangeEventStream.OnNext(new NoteTypeChangeEvent());
 }
Пример #5
0
 public bool CanExecute(IReadOnlyCollection <Note> selectedNotes, ENoteType type)
 {
     return(selectedNotes.AnyMatch(note => note.Type != type));
 }
Пример #6
0
 public CSongNote(int startBeat, int duration, int tone, string text, ENoteType noteType)
     : base(startBeat, duration, tone)
 {
     Type = noteType;
     Text = text;
 }
Пример #7
0
 public NoteBase(float in_time, int in_line, ENoteType in_type)
 {
     time      = in_time;
     line      = in_line;
     note_type = in_type;
 }