コード例 #1
0
ファイル: GLGame.cs プロジェクト: gl-game/glgame
 public void LoadGame(String json)
 {
     game     = null;
     gameData = null;
     gameData = JsonConvert.DeserializeObject <GLData>(json, _jsonSettings);
     gameData.time.minuteChange += ExternalMinuteChange;
     gameData.time.hourChange   += ExternalHourChange;
     gameData.time.dayChange    += ExternalDayChange;
     gameData.LoadEvents();
     Actor.CurrentTime = gameData.time;
     game                = new GLScene(gameData);
     game.sc             = new SceneDTO();
     game.sc.Description = "";
 }
コード例 #2
0
ファイル: GLGame.cs プロジェクト: gl-game/glgame
        public void NewGame()
        {
            gameData = null;
            gameData = new GLData();
            gameData.LoadDynamicData();
            gameData.time.minuteChange += ExternalMinuteChange;
            gameData.time.hourChange   += ExternalHourChange;
            gameData.time.dayChange    += ExternalDayChange;
            gameData.LoadEvents();
            game                = new GLScene(gameData);
            game.sc             = new SceneDTO();
            game.sc.Description = "";

            /*if (Debug == 0)
             * {
             *  PreLoadAssembliesFromPath("C:/http/assembles/");
             * }
             */
        }