3#include "absl/strings/str_format.h"
4#include "absl/strings/str_join.h"
16 for (
const std::string& key :
17 {std::to_string(sheet), absl::StrFormat(
"0x%02X", sheet)}) {
18 if (
auto it = type->second.find(key);
19 it != type->second.end() && !it->second.empty()) {
27 const std::string& label) {
29 labels.erase(absl::StrFormat(
"0x%02X", sheet));
31 labels.erase(std::to_string(sheet));
33 labels[std::to_string(sheet)] = label;
38 const std::string& csv_text,
bool overwrite) {
Which graphics sheets exist, which tables use them, and which 16x16 blocks are free.
Locates graphics sheets in the ROM and writes edited sheets back.
constexpr char kGraphicsSheetLabelType[]
void SetGraphicsSheetLabel(project::YazeProject &project, uint16_t sheet, const std::string &label)
int ImportSpritesetSheetLabels(project::YazeProject &project, const std::string &csv_text, bool overwrite)
std::string GetGraphicsSheetLabel(const project::YazeProject &project, uint16_t sheet)
constexpr uint16_t kSpriteSheetValueCount
constexpr uint16_t kSpriteSheetBase
std::map< uint8_t, std::set< std::string > > ParseSpritesetLabelCsv(const std::string &csv_text)
Modern project structure with comprehensive settings consolidation.
std::unordered_map< std::string, std::unordered_map< std::string, std::string > > resource_labels