Esempio n. 1
0
        public override void LoadExcelSheet(DataRow rowData)
        {
            fmDataMaze data = m_fmData as fmDataMaze;

            data.m_nCode             = GetInt(rowData, "nCode");
            data.m_nFloor            = GetInt(rowData, "nFloor");
            data.m_nArrAppearMon     = GetIntArray(rowData, "nArrAppearMon");
            data.m_nArrAppearRateMon = GetIntArray(rowData, "nArrAppearRateMon");
        }
Esempio n. 2
0
        public override bool IsValid()
        {
            fmDataMaze data = m_fmData as fmDataMaze;

            if (data.m_nArrAppearMon.Length != data.m_nArrAppearRateMon.Length)
            {
                return(false);
            }

            return(true);
        }
Esempio n. 3
0
        public void Add(fmDataMaze data)
        {
            int cnt = data.m_nArrAppearRateMon.Length;

            for (int i = 0; i < cnt; ++i)
            {
                int roll = data.m_nArrAppearRateMon[i] * m_nRate;

                fmGochaNode node = new fmGochaNode();
                node.m_fmData = null;

                node.m_nGochaValue = data.m_nArrAppearMon[i];

                node.m_nBegin = m_nMaxVal;
                node.m_nEnd   = m_nMaxVal + roll;

                m_listBoard.Add(node);

                m_nMaxVal += roll;
            }
        }
Esempio n. 4
0
 public LoaderMaze()
 {
     m_fmData = new fmDataMaze();
 }