2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2015-07-13 06:29:12 +00:00
|
|
|
|
2019-08-23 23:24:04 +00:00
|
|
|
#include <cstddef>
|
|
|
|
#include <cstdint>
|
|
|
|
#include <memory>
|
2015-07-13 06:29:12 +00:00
|
|
|
#include <string>
|
2019-08-23 23:24:04 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "DataSpec/DNACommon/DNACommon.hpp"
|
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
#include <hecl/hecl.hpp>
|
2019-08-23 23:24:04 +00:00
|
|
|
|
|
|
|
namespace athena::io {
|
|
|
|
class IStreamReader;
|
|
|
|
}
|
2015-07-13 06:29:12 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace DataSpec {
|
|
|
|
struct ISTRG : BigDNAVYaml {
|
2019-08-10 02:32:48 +00:00
|
|
|
~ISTRG() override = default;
|
2015-07-16 01:57:34 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
virtual size_t count() const = 0;
|
|
|
|
virtual std::string getUTF8(const FourCC& lang, size_t idx) const = 0;
|
|
|
|
virtual std::u16string getUTF16(const FourCC& lang, size_t idx) const = 0;
|
|
|
|
virtual int32_t lookupIdx(std::string_view name) const = 0;
|
2016-10-02 22:41:36 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
virtual void gatherDependencies(std::vector<hecl::ProjectPath>& pathsOut) const;
|
2015-07-13 06:29:12 +00:00
|
|
|
};
|
2016-03-04 23:04:53 +00:00
|
|
|
std::unique_ptr<ISTRG> LoadSTRG(athena::io::IStreamReader& reader);
|
2015-07-16 01:57:34 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace DataSpec
|