public void Load() { string[] newLevel = FilerView.Load(); string filename = newLevel[0]; string rawLevel = newLevel[1]; Filer.SetString(rawLevel); string level = Filer.Load(filename); Designer.Load(level); }
public void LoadGame() { try { string[] newLevel = FilerView.Load(); string rawLevel = newLevel[1]; Filer.SetString(rawLevel); string level = Filer.Load(); Game.Load(level); int rows = GameFileable.GetRowCount(); int cols = GameFileable.GetColumnCount(); BuildGameLevel(cols, rows); } catch (ArgumentException e) { GameView.Display(e.Message); } }
public void LoadDesign() { try { string[] newLevel = FilerView.Load(); string rawLevel = newLevel[1]; Filer.SetString(rawLevel); string level = Filer.Load(); //DesignerView.Display(level); Designer.Load(level); int rows = DesignerFileable.GetRowCount(); int cols = DesignerFileable.GetColumnCount(); BuildLevel(cols, rows, "Edit"); DesignerView.UpdateLevel(); } catch (ArgumentException e) { DesignerView.Display(e.Message); } }
public void Load() { string[] newLevel = FilerView.Load(); string filename = newLevel[0]; string rawLevel = newLevel[1]; Filer.SetString(rawLevel); string level = Filer.Load(filename); try { Game.Load(level); BuildView(); //UpdateView(); GameView.LevelName(filename); } catch (ArgumentOutOfRangeException e) { FilerView.Display(e); } }