Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #3
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;
        }
Beispiel #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);
        }