Exemple #1
0
        public List <AreaChange> Clear()
        {
            var newArea = new GameArea(area.Fields.GetLength(0));
            var diffs   = GameAreaHelper.FindDiffs(area, newArea);

            area = newArea;
            return(diffs);
        }
Exemple #2
0
        public List <AreaChange> LoadGame(string file)
        {
            var loadedArea = LoadArea(file);

            if (loadedArea == null)
            {
                return(null);
            }
            var result = GameAreaHelper.FindDiffs(area, loadedArea);

            area = loadedArea;
            return(result);
        }
Exemple #3
0
 public bool IsDifference()
 {
     return(GameAreaHelper.FindDiffs(orgArea, area).Count > 0);
 }