private bool LoadTomb(fmDataTable table) { Dictionary <int, fmDataDragonTomb> dicTomb = table.Find <fmDataDragonTomb>(eFmDataType.DTomb); if (null == dicTomb) { return(false); } m_gochaTomb.Clear(); foreach (var node in dicTomb) { fmGochaTombMonster gm = new fmGochaTombMonster(m_random); gm.Add(node.Value); m_gochaTomb.Add(node.Value.m_eLevel, gm); } return(true); }
//public int GetGoblinInMaze(out fmDataMonster data) //{ // data = null; // int dropKind = 0; // int monCode = 0; // if (true == m_mazeGoblin.Gocha(out dropKind, out monCode)) // { // if (true == m_dicMonster.ContainsKey(monCode)) // { // data = m_dicMonster[monCode]; // } // } // return dropKind; //} //public int GetGoblinInExplore(Random lordRandom, int maxRound, out fmDataMonster data, out int intoRound) //{ // data = null; // intoRound = 0; // int dropKind = 0; // int monCode = 0; // if (null == lordRandom) // return 0; // intoRound = lordRandom.Next(1, maxRound); // Logger.Debug("GetGoblinInExplore intoRound: {0}", intoRound); // if (true == m_exploreGoblin.Gocha(out dropKind, out monCode)) // { // //Console.WriteLine("monCode: "+ monCode); // if (true == m_dicMonster.ContainsKey(monCode)) // { // data = m_dicMonster[monCode]; // //if (null == data) // //{ // // Console.WriteLine("data: null"); // //} // } // } // return dropKind; //} private fmDataMonster GetMonInDTomb(eLevel eLevel) { if (false == m_gochaTomb.ContainsKey(eLevel)) { return(null); } fmGochaTombMonster gm = m_gochaTomb[eLevel]; int monCode = gm.Gocha(); if (false == m_dicMonster.ContainsKey(monCode)) { return(null); } return(m_dicMonster[monCode]); }