public override void DoUndo() { CurrentArea = Area; if (!RedoGenerated) { HistoryAreaChange.GenerateRedo(Undo.Current.Prefabs.AreaChange).Register(); } RedoGenerated = true; DoRedo(); }
public void RegisterAreaChange(MapLua.SaveLua.Areas Area) { HistoryAreaChange.CurrentArea = Area; HistoryAreaChange.GenerateUndo(Prefabs.AreaChange).Register(); }