21 lines
440 B
C++
21 lines
440 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <tinyxml2/tinyxml2.h>
|
|
|
|
namespace anm2ed::anm2
|
|
{
|
|
class Layer
|
|
{
|
|
public:
|
|
std::string name{};
|
|
int spritesheetID{};
|
|
|
|
Layer() = default;
|
|
Layer(tinyxml2::XMLElement*, int&);
|
|
tinyxml2::XMLElement* to_element(tinyxml2::XMLDocument&, int);
|
|
void serialize(tinyxml2::XMLDocument&, tinyxml2::XMLElement*, int);
|
|
std::string to_string(int);
|
|
bool is_spritesheet_valid();
|
|
};
|
|
} |