示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#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;
 }
示例#4
0
文件: CraftImpl.cs 项目: xxy1991/cozy
        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;
        }
示例#5
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);
        }
示例#6
0
文件: CraftImpl.cs 项目: sgww/cozy
        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);
        }