2026-03-20 11:12:07 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <optional>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <unordered_map>
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
namespace wowee::addons {
|
|
|
|
|
|
|
|
|
|
struct TocFile {
|
|
|
|
|
std::string addonName;
|
|
|
|
|
std::string basePath;
|
|
|
|
|
|
|
|
|
|
std::unordered_map<std::string, std::string> directives;
|
|
|
|
|
std::vector<std::string> files;
|
|
|
|
|
|
|
|
|
|
std::string getTitle() const;
|
|
|
|
|
std::string getInterface() const;
|
|
|
|
|
bool isLoadOnDemand() const;
|
2026-03-20 12:22:50 -07:00
|
|
|
std::vector<std::string> getSavedVariables() const;
|
2026-03-21 02:46:21 -07:00
|
|
|
std::vector<std::string> getSavedVariablesPerCharacter() const;
|
2026-03-20 11:12:07 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
std::optional<TocFile> parseTocFile(const std::string& tocPath);
|
|
|
|
|
|
|
|
|
|
} // namespace wowee::addons
|