예제 #1
0
파일: GLGame.cs 프로젝트: gl-game/glgame
 public void Load(GLData gData)
 {
     gameData            = gData;
     game                = new GLScene(gameData);
     game.sc             = new SceneDTO();
     game.sc.Description = "";
 }
예제 #2
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 = "";
 }
예제 #3
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/");
             * }
             */
        }