Пример #1
0
 /// <summary>
 /// The constructor with parameters.
 /// </summary>
 /// <param name="chart">The associated chart.</param>
 /// <param name="eventLine">The current event line.</param>
 public Section(Chart chart, EventLine eventLine)
 {
     _chart      = chart;
     _synchTrack = chart.FindCurrentSynch(eventLine.Tick);
     _guid       = Guid.NewGuid();
     _eventLine  = eventLine;
 }
Пример #2
0
 /// <summary>
 /// The constructor with parameters.
 /// </summary>
 /// <param name="chart">The parent chart.</param>
 /// <param name="eventLine">The associated event line.</param>
 /// <param name="keyParent">The key aprent associated to this event.</param>
 public NoteEvent(Chart chart, EventLine eventLine, string keyParent)
 {
     _chart         = chart;
     _keyParent     = keyParent;
     _synchTrack    = chart.FindCurrentSynch(eventLine.Tick);
     _eventLine     = eventLine;
     _highestFret   = eventLine.Index;
     _buttonIndexes = new bool[5];
     CheckNoteIndex();
     _guid = Guid.NewGuid();
 }
Пример #3
0
        /// <inheritdoc />
        public void AppendFret(EventLine eventLine)
        {
            // Set new highest index
            if (eventLine.Index > HighestFret && eventLine.Index < 5)
            {
                HighestFret = eventLine.Index;
            }

            if (eventLine.Index >= 0 && eventLine.Index < 5)
            {
                ButtonIndexes[eventLine.Index] = true;
            }

            if (eventLine.Index == 5)
            {
                _forcedSolid = true;
            }
            else if (eventLine.Index == 6)
            {
                _isHOPO = true;
            }
        }
Пример #4
0
        /// <summary>
        /// Processes all events.
        /// </summary>
        internal static Section[] ProcessEvents(IEnumerator enumerator, Chart chart)
        {
            Section[] sections;
            Section   r_section;
            string    currentLine;
            EventLine eventLine;

            List <Section> sectionsList = new List <Section>();


            while ((enumerator.MoveNext()) && (enumerator.Current != null))
            {
                currentLine = string.Empty;

                currentLine = enumerator.Current as string;

                if (!currentLine.Equals(string.Empty))
                {
                    if (currentLine.Contains("}"))
                    {
                        break;
                    }
                    else if (!currentLine.Contains("{"))
                    {
                        eventLine = new EventLine(currentLine);

                        r_section = new Section(chart, eventLine);

                        sectionsList.Add(r_section);
                    }
                }
            }

            sections = new Section[sectionsList.Count];
            sectionsList.CopyTo(sections);

            return(sections);
        }
Пример #5
0
 /// <summary>
 /// Constructor with parameters.
 /// </summary>
 /// <param name="chart">Requires the associated chart.</param>
 /// <param name="eventLine">Requires the associated event line.</param>
 /// <param name="keyParent">The key of the current difficulty.</param>
 public Note(Chart chart, EventLine eventLine, string keyParent)
     : base(chart, eventLine, keyParent)
 {
     /* TO DO
      */
 }
Пример #6
0
 /// <summary>
 /// Constructor with parameters.
 /// </summary>
 /// <param name="chart">Requires the associated chart.</param>
 /// <param name="eventLine">Requires the associated event line.</param>
 /// <param name="keyParent">Requires the associated key parent.</param>
 public StarPower(Chart chart, EventLine eventLine, string keyParent)
     : base(chart, eventLine, keyParent)
 {
     /* TO DO
      */ 
 }