private void HandleClick() { Room r = MapEditor.Instance.State.SelectedRoom; switch (ToolManager.SelectedLayer) { case ToolLayer.Background: Action = new TileBrushAction(r, ToolLayer.Background, ToolManager.BGTileset, MapEditor.Instance.State.TilePointer); break; case ToolLayer.Foreground: Action = new TileBrushAction(r, ToolLayer.Foreground, ToolManager.FGTileset, MapEditor.Instance.State.TilePointer); break; } MapEditor.Instance.State.Apply(Action); }
private void HandleUnclick() { Action = null; }