2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 16:31:21 +00:00
2016-03-04 13:04:53 -10:00

28 lines
719 B
C++

#ifndef __COMMON_STRG_HPP__
#define __COMMON_STRG_HPP__
#include <string>
#include <fstream>
#include <hecl/hecl.hpp>
#include <hecl/Database.hpp>
#include <athena/FileWriter.hpp>
#include "DNACommon.hpp"
namespace DataSpec
{
struct ISTRG : BigYAML
{
virtual ~ISTRG() {}
virtual size_t count() const=0;
virtual std::string getUTF8(const FourCC& lang, size_t idx) const=0;
virtual std::wstring getUTF16(const FourCC& lang, size_t idx) const=0;
virtual hecl::SystemString getSystemString(const FourCC& lang, size_t idx) const=0;
virtual int32_t lookupIdx(const std::string& name) const=0;
};
std::unique_ptr<ISTRG> LoadSTRG(athena::io::IStreamReader& reader);
}
#endif // __COMMON_STRG_HPP__