static void Main() { var form = new FrmMain(); form.Show(); var game = new MonsterGame.Editor.Game.EditorGame(form.GetSurfaceHandle()); form.SetSettings(game); game.Run(); }
public Texture2D LoadTexture(EditorGame game) { _tilesets = game.Content.LoadContent<Texture2D>("Tilesets"); foreach (var tileset in _tilesets) { lBoxTilesets.Items.Add(tileset.Key); } if (_tilesets.Count > 0) { pBoxPreview.Image = _tilesets.First().Value.ToBitmap(); } ShowDialog(); return lBoxTilesets.SelectedIndex != -1 ? _tilesets[lBoxTilesets.SelectedItem.ToString()] : null; }
static void Main() { var game = new MonsterGame.Editor.Game.EditorGame(); game.Run(); }
public void SetSettings(EditorGame game) { _game = game; }