[Tablegen] Specify characters separately from the settings
This commit is contained in:
parent
9da2940746
commit
a0b221f103
4 changed files with 19 additions and 15 deletions
|
@ -4,7 +4,6 @@
|
|||
#include <Common/RGB.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace Tablegen
|
||||
{
|
||||
|
@ -49,7 +48,6 @@ namespace Tablegen
|
|||
std::size_t CharactersPerRow;
|
||||
std::string ImageFormat;
|
||||
std::string AnimationFormat;
|
||||
std::vector<CharacterInfo> Characters;
|
||||
|
||||
static Settings Default();
|
||||
};
|
||||
|
|
|
@ -8,17 +8,21 @@
|
|||
#endif
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace Tablegen
|
||||
{
|
||||
std::string GeneratePage(const Settings& settings = Settings::Default());
|
||||
std::string GeneratePage(std::vector<CharacterInfo> characters,
|
||||
const Settings& settings = Settings::Default());
|
||||
|
||||
void GeneratePage(const std::string& path, const Settings& settings = Settings::Default());
|
||||
void GeneratePage(const std::string& path, std::vector<CharacterInfo> characters,
|
||||
const Settings& settings = Settings::Default());
|
||||
|
||||
# ifdef TABLEGEN_EXPOSE_XML
|
||||
void GenerateAsChild(pugi::xml_node& node, const Settings& settings = Settings::Default());
|
||||
void GenerateAsChild(pugi::xml_node& node, std::vector<CharacterInfo> characters,
|
||||
const Settings& settings = Settings::Default());
|
||||
|
||||
pugi::xml_document GenerateDocument(const Settings& settings = Settings::Default());
|
||||
pugi::xml_document GenerateDocument(std::vector<CharacterInfo> characters, const Settings& settings = Settings::Default());
|
||||
# endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue