public Editor() { InitializeComponent(); _instance = this; _changeMade = false; _curGame = new Game(); _newGame = new NewGame(); _IO = new IO(); _newMap = new NewMap(); _globalFont = new SFML.Graphics.Font("Georgia.ttf"); _block = new Texture("block.png"); _projectDirectory = new ProjectDirectory(); _mapViewFormList = new List<MapViewerForm>(); _actorManager = new ActorManagerForm(); _gameRunner = new GameRunner(_curGame); _viewSwitch = new ViewSwitch(); _viewVariable = new ViewVariable(); DisableTool(); }
public GameRunner(Game game) { _instance = this; _curGame = game; //Initalization(); //Run(); }
Game _curGame; // The game that will be run #endregion Fields #region Constructors public GameRunner() { _instance = this; _curGame = null; }
private void debugToolStripMenuItem_Click(object sender, EventArgs e) { _gameRunner = new GameRunner(_curGame); _gameRunner.Run(); }