1 | // Aseprite |
---|---|
2 | // Copyright (C) 2019 Igara Studio S.A. |
3 | // |
4 | // This program is distributed under the terms of |
5 | // the End-User License Agreement for Aseprite. |
6 | |
7 | #ifdef HAVE_CONFIG_H |
8 | #include "config.h" |
9 | #endif |
10 | |
11 | #include "app/cmd/remove_tile.h" |
12 | |
13 | #include "doc/cel.h" |
14 | #include "doc/layer.h" |
15 | |
16 | namespace app { |
17 | namespace cmd { |
18 | |
19 | using namespace doc; |
20 | |
21 | RemoveTile::RemoveTile(Tileset* tileset, const tile_index ti) |
22 | : AddTile(tileset, ti) |
23 | { |
24 | } |
25 | |
26 | void RemoveTile::onExecute() |
27 | { |
28 | AddTile::onUndo(); |
29 | } |
30 | |
31 | void RemoveTile::onUndo() |
32 | { |
33 | AddTile::onRedo(); |
34 | } |
35 | |
36 | void RemoveTile::onRedo() |
37 | { |
38 | AddTile::onUndo(); |
39 | } |
40 | |
41 | } // namespace cmd |
42 | } // namespace app |
43 |