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; }
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; }
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); }
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); }