Beispiel #1
0
        void InsertLink(NotePosition position)
        {
            if (EditData.Notes.ContainsKey(note.prev))
            {
                EditData.Notes[note.prev].note.next = position;
            }

            if (EditData.Notes.ContainsKey(note.next))
            {
                EditData.Notes[note.next].note.prev = position;
            }
        }
        public NotePosition GetSelectedNextLongNote(NotePosition current, Func<NoteObject, NotePosition> accessor)
        {
            while (EditData.Notes.ContainsKey(current))
            {
                if (selectedNoteObjects.ContainsKey(current))
                    return current;

                current = accessor(EditData.Notes[current]);
            }

            return NotePosition.None;
        }
Beispiel #3
0
        public override bool Equals(object obj)
        {
            if (!(obj is NotePosition))
            {
                return(false);
            }

            NotePosition target = (NotePosition)obj;

            return(
                Mathf.Approximately((float)num / LPB, (float)target.num / target.LPB) &&
                block == target.block);
        }
Beispiel #4
0
        void InsertLink(NotePosition position)
        {
            if (EditData.Notes.ContainsKey(note.prev))
                EditData.Notes[note.prev].note.next = position;

            if (EditData.Notes.ContainsKey(note.next))
                EditData.Notes[note.next].note.prev = position;
        }