mirror of https://github.com/AxioDL/metaforce.git
Merge pull request #36 from jackoalan/dnafourcc-reader-overload
Add IStreamReader overloaded constructor to DNAFourCC
This commit is contained in:
commit
a441a3e7a0
|
@ -59,10 +59,11 @@ using BigDNA = athena::io::DNA<athena::Endian::Big>;
|
|||
/** FourCC with DNA read/write */
|
||||
class DNAFourCC final : public BigDNA, public FourCC {
|
||||
public:
|
||||
constexpr DNAFourCC() : FourCC() {}
|
||||
constexpr DNAFourCC(const FourCC& other) : FourCC() { num = other.toUint32(); }
|
||||
constexpr DNAFourCC(const char* name) : FourCC(name) {}
|
||||
constexpr DNAFourCC(uint32_t n) : FourCC(n) {}
|
||||
constexpr DNAFourCC() noexcept : FourCC() {}
|
||||
constexpr DNAFourCC(const FourCC& other) noexcept : FourCC(other) {}
|
||||
constexpr DNAFourCC(const char* name) noexcept : FourCC(name) {}
|
||||
constexpr DNAFourCC(uint32_t n) noexcept : FourCC(n) {}
|
||||
constexpr DNAFourCC(athena::io::IStreamReader& r) { read(r); }
|
||||
AT_DECL_EXPLICIT_DNA_YAML
|
||||
};
|
||||
template <>
|
||||
|
|
Loading…
Reference in New Issue