コード例 #1
0
ファイル: Section.cs プロジェクト: GoldenCar/tap_project
 /// <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();
 }