| 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/with_tileset.h" |
| 12 | |
| 13 | #include "doc/tileset.h" |
| 14 | |
| 15 | namespace app { |
| 16 | namespace cmd { |
| 17 | |
| 18 | using namespace doc; |
| 19 | |
| 20 | WithTileset::WithTileset(Tileset* tileset) |
| 21 | : m_tilesetId(tileset->id()) |
| 22 | { |
| 23 | } |
| 24 | |
| 25 | Tileset* WithTileset::tileset() |
| 26 | { |
| 27 | return get<Tileset>(m_tilesetId); |
| 28 | } |
| 29 | |
| 30 | } // namespace cmd |
| 31 | } // namespace app |
| 32 |