public void CloseSpecialItemMenu() { if (Settings.Paradise) { // NOTE: No possibility to undo yet. _paraSpecialItemInterface = null; } else { editor.AddToUndoHistory(); _physicalMapLogic.OverrideGridData(editor.MapGrid); _physicalMapLogic = null; _specialItemInterface = null; } }
public void ChangeSpecialItemLocation(Point?newLocation) { // Note: Can only be a bonus _physicalMapLogic = new PhysicalMapLogic(editor.MapGrid); if (newLocation.HasValue) { _physicalMapLogic.Bonus = new PhysicalMapLogic.BonusInfo(_lastBonusId, newLocation.Value.X, newLocation.Value.Y); } else { _physicalMapLogic.Bonus = null; } editor.AddToUndoHistory(); _physicalMapLogic.OverrideGridData(editor.MapGrid); _physicalMapLogic = null; }