1// Aseprite
2// Copyright (C) 2019 Igara Studio S.A.
3// Copyright (C) 2001-2015 David Capello
4//
5// This program is distributed under the terms of
6// the End-User License Agreement for Aseprite.
7
8#ifdef HAVE_CONFIG_H
9#include "config.h"
10#endif
11
12#include "app/cmd/with_sprite.h"
13
14#include "doc/sprite.h"
15
16namespace app {
17namespace cmd {
18
19WithSprite::WithSprite(doc::Sprite* sprite)
20 : m_spriteId(sprite->id())
21{
22}
23
24doc::Sprite* WithSprite::sprite()
25{
26 return doc::get<doc::Sprite>(m_spriteId);
27}
28
29} // namespace cmd
30} // namespace app
31