45 lines
764 B
C++
45 lines
764 B
C++
#pragma once
|
|
|
|
#include <filesystem>
|
|
#include <glm/glm.hpp>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "anm2.hpp"
|
|
#include "save.hpp"
|
|
|
|
namespace game::resource::xml
|
|
{
|
|
class CharacterPreview
|
|
{
|
|
public:
|
|
struct Stage
|
|
{
|
|
float threshold{};
|
|
int dialoguePoolID{-1};
|
|
};
|
|
|
|
Anm2 anm2{};
|
|
Texture portrait{};
|
|
Texture render{};
|
|
Save save{};
|
|
glm::vec3 color{0.120f, 0.515f, 0.115f};
|
|
|
|
int stages{1};
|
|
|
|
std::string name{};
|
|
std::string credits{};
|
|
std::string description{};
|
|
std::filesystem::path path{};
|
|
float weight{50};
|
|
|
|
bool isValid{};
|
|
|
|
CharacterPreview() = default;
|
|
CharacterPreview(const std::filesystem::path&);
|
|
|
|
std::filesystem::path save_path_get();
|
|
bool is_valid() const;
|
|
};
|
|
}
|