Esempio n. 1
0
 public void LoadBattleData(string path)
 {
     try
     {
         _BattleData = Battle.BattleData.LoadBattleData(path);
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error loading BattleData : " + ex.Message);
         _BattleData = new Battle.BattleData();
     }
 }
Esempio n. 2
0
 public Editor()
 {
     _BattleData     = new Battle.BattleData();
     Brushes         = new Dictionary <string, ImageBrush>();
     Tiles           = new Dictionary <Point3D, Rectangle>();
     TileHistory     = new List <Dictionary <Point3D, Rectangle> >();
     Entities        = new Dictionary <Point3D, Tuple <Entity, Rectangle> >();
     HistoryProgress = -1;
     Width           = 0;
     Height          = 0;
     TileSize        = 64;
     PopulateBrushes();
     ResetTiles();
 }