2015-02-09 22:40:43 +08:00
|
|
|
// Aseprite Document Library
|
2024-06-26 09:42:42 +08:00
|
|
|
// Copyright (c) 2024 Igara Studio S.A.
|
2015-02-09 22:40:43 +08:00
|
|
|
// Copyright (c) 2001-2015 David Capello
|
|
|
|
|
//
|
|
|
|
|
// This file is released under the terms of the MIT license.
|
|
|
|
|
// Read LICENSE.txt for more information.
|
|
|
|
|
|
|
|
|
|
#ifndef DOC_CEL_DATA_IO_H_INCLUDED
|
|
|
|
|
#define DOC_CEL_DATA_IO_H_INCLUDED
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2024-06-26 09:42:42 +08:00
|
|
|
#include "doc/serial_format.h"
|
2023-03-14 04:08:18 +08:00
|
|
|
|
2015-02-09 22:40:43 +08:00
|
|
|
#include <iosfwd>
|
|
|
|
|
|
|
|
|
|
namespace doc {
|
|
|
|
|
|
|
|
|
|
class CelData;
|
|
|
|
|
class SubObjectsIO;
|
|
|
|
|
|
2024-06-26 09:42:42 +08:00
|
|
|
void write_celdata(std::ostream& os, const CelData* cel);
|
|
|
|
|
|
|
|
|
|
CelData* read_celdata(std::istream& is,
|
|
|
|
|
SubObjectsIO* subObjects,
|
|
|
|
|
bool setId = true,
|
|
|
|
|
SerialFormat serial = SerialFormat::LastVer);
|
2015-02-09 22:40:43 +08:00
|
|
|
|
|
|
|
|
} // namespace doc
|
|
|
|
|
|
|
|
|
|
#endif
|