1 | // Aseprite Document Library |
2 | // Copyright (C) 2019-2020 Igara Studio S.A. |
3 | // |
4 | // This file is released under the terms of the MIT license. |
5 | // Read LICENSE.txt for more information. |
6 | |
7 | #ifndef DOC_TILESET_IO_H_INCLUDED |
8 | #define DOC_TILESET_IO_H_INCLUDED |
9 | #pragma once |
10 | |
11 | #include <iosfwd> |
12 | |
13 | namespace doc { |
14 | |
15 | class CancelIO; |
16 | class Sprite; |
17 | class Tileset; |
18 | |
19 | bool write_tileset(std::ostream& os, |
20 | const Tileset* tileset, |
21 | CancelIO* cancel = nullptr); |
22 | |
23 | Tileset* read_tileset(std::istream& is, |
24 | Sprite* sprite, |
25 | bool setId = true, |
26 | bool* isOldVersion = nullptr); |
27 | |
28 | } // namespace doc |
29 | |
30 | #endif |
31 | |