// new world with the editor private World(PlayMode playMode) { this.PlayMode = playMode; this.viewport = new GamePoint(0, 0); if (playMode == PlayMode.Editor) mainGameObject = new NullMGO(); }
// only called when starting the game public void Init(MainGameObject mainGameObject) { this.mainGameObject = mainGameObject; }