public void AddSection(int nSectionNumber) { if (m_dicSection.ContainsKey(nSectionNumber) == true) { return; } BMSSection cSection = new BMSSection(m_compBMSPlayer); cSection.m_fSectionHeight = Global.MAX_NOTEFIELD_HEIGHT; cSection.m_cCurrentBMSSectionList = this; cSection.m_nSectionNumber = nSectionNumber; m_dicSection.Add(nSectionNumber, cSection); }
public void CreateAllNotes() { for (int i = 0; i < m_dicSection.Count; i++) { BMSSection cSection = m_dicSection[i]; cSection.m_fSectionStartPos = m_fSectionHeightTotal; cSection.AddNodeLine(); m_fSectionHeightTotal += cSection.m_fSectionHeight; cSection.CreateAllNotes(); m_compBMSPlayer.iLoadingPercentage += 1; } }