Exemple #1
0
    public ST_NoteInfo GetNoteInfo(int id)
    {
        ST_NoteInfo outValue = null;

        if (m_dicNoteInfo.TryGetValue(id, out outValue))
        {
        }
        return(outValue);
    }
Exemple #2
0
    public void LoadNoteInfo(CTBLLoader loader)
    {
        for (int i = 0; i < loader.GetLineCount(); i++)
        {
            loader.GotoLineByIndex(i);

            ST_NoteInfo pInfo = new ST_NoteInfo();
            pInfo.nID   = loader.GetIntByName("id");
            pInfo.fTime = loader.GetFloatByName("Time");
            pInfo.nNum  = loader.GetIntByName("Number");
            pInfo.nSide = loader.GetIntByName("Side");

            string[] strArray = loader.GetStringByName("Dir").Split('|');
            for (int j = 0; j < strArray.Length; j++)
            {
                pInfo.listDir.Add(int.Parse(strArray[j]));
            }

            m_dicNoteInfo.Add(pInfo.nID, pInfo);
        }
    }