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_tileset.h"
12
13#include "doc/cel.h"
14#include "doc/layer.h"
15
16namespace app {
17namespace cmd {
18
19using namespace doc;
20
21RemoveTileset::RemoveTileset(Sprite* sprite,
22 const tileset_index si)
23 : AddTileset(sprite, si)
24{
25}
26
27void RemoveTileset::onExecute()
28{
29 AddTileset::onUndo();
30}
31
32void RemoveTileset::onUndo()
33{
34 AddTileset::onRedo();
35}
36
37void RemoveTileset::onRedo()
38{
39 AddTileset::onUndo();
40}
41
42} // namespace cmd
43} // namespace app
44