Пример #1
0
 public override void DoUndo()
 {
     CurrentArea = Area;
     if (!RedoGenerated)
     {
         HistoryAreaChange.GenerateRedo(Undo.Current.Prefabs.AreaChange).Register();
     }
     RedoGenerated = true;
     DoRedo();
 }
Пример #2
0
 public void RegisterAreaChange(MapLua.SaveLua.Areas Area)
 {
     HistoryAreaChange.CurrentArea = Area;
     HistoryAreaChange.GenerateUndo(Prefabs.AreaChange).Register();
 }