nw::Gff

struct Gff

Public Functions

Gff() = default
explicit Gff(const std::filesystem::path &file, nw::LanguageID lang = nw::LanguageID::english)
explicit Gff(ResourceData data, nw::LanguageID lang = nw::LanguageID::english)
GffStruct toplevel() const

Get the toplevel struct.

inline StringView type() const

Get Gff type.

bool valid() const

Get if Gff file successfully parsed.

inline StringView version() const

Get the Gff Version.

Public Members

GffHeader *head_ = nullptr
GffLabel *labels_ = nullptr
GffStructEntry *structs_ = nullptr
GffFieldEntry *fields_ = nullptr
uint32_t *field_indices_ = nullptr
uint32_t *list_indices_ = nullptr