public CozyGodGame() { CozyDirector.Instance.ContentInstance = new CozyContentManager(Services); GameEngine = new CozyGodEngine(); GameEngine.Init(); string ContentPath = null; GameEngine.GetConfig().TryGetStringConfig(StringConfigEnum.ContentPath, out ContentPath); Content.RootDirectory = ContentPath; CozyDirector.Instance.ContentInstance.RootDirectory = ContentPath; WindowSize = new Point(960, 640); }
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) { 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); }