Exemple #1
0
 public bool Init(ICozyGodEngine engine)
 {
     bool bRet = false;
     do
     {
         m_engine = engine;
         mCL = engine.GetCardLibrary();
         if (mCL == null)
         {
             break;
         }
         LoadRaffleProbabilityArray();
         if (m_raffleProbabilityArray == null)
         {
             break;
         }
         bRet = true;
     } while (false);
     return bRet;
 }
Exemple #2
0
        public bool Init(ICozyGodEngine engine)
        {
            mEngine = engine;
            mCL     = engine.GetCardLibrary();

            string contentPath;
            if(!engine.GetConfig().TryGetStringConfig(StringConfigEnum.ContentPath, out contentPath))
            {
                return false;
            }

            mFilePath = contentPath  + @"\Data\CraftTableConfig.txt";
            bool bRet = true;
            LoadCraftTable();
            if (m_CraftTableList==null)
            {
                bRet = false;
            }

            return bRet;
        }
Exemple #3
0
        public bool Init(ICozyGodEngine engine)
        {
            bool bRet = false;

            do
            {
                m_engine = engine;
                mCL      = engine.GetCardLibrary();
                if (mCL == null)
                {
                    break;
                }
                LoadRaffleProbabilityArray();
                if (m_raffleProbabilityArray == null)
                {
                    break;
                }
                bRet = true;
            } while (false);
            return(bRet);
        }
Exemple #4
0
        public bool Init(ICozyGodEngine engine)
        {
            mEngine = engine;
            mCL     = engine.GetCardLibrary();

            string contentPath;

            if (!engine.GetConfig().TryGetStringConfig(StringConfigEnum.ContentPath, out contentPath))
            {
                return(false);
            }

            mFilePath = contentPath + @"\Data\CraftTableConfig.txt";
            bool bRet = true;

            LoadCraftTable();
            if (m_CraftTableList == null)
            {
                bRet = false;
            }

            return(bRet);
        }