/// <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; }
/// <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(); }
/// <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; } }
/// <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); }
/// <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 */ }
/// <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 */ }