mirror of
https://github.com/MonsterDruide1/OdysseyDecomp.git
synced 2024-11-23 13:29:49 +00:00
byaml/writer: Add ByamlWriterInt
This commit is contained in:
parent
5c5179b90c
commit
8259bef72f
@ -65137,14 +65137,10 @@ Address,Quality,Size,Name
|
||||
0x0000007100a32848,U,000008,_ZNK2al17ByamlWriterString11getTypeCodeEv
|
||||
0x0000007100a32850,U,000044,_ZNK2al17ByamlWriterString5writeEPN4sead11WriteStreamE
|
||||
0x0000007100a3287c,U,000004,_ZNK2al17ByamlWriterString5printEi
|
||||
0x0000007100a32880,U,000024,_ZN2al14ByamlWriterIntC2Ei
|
||||
0x0000007100a32898,U,000008,_ZNK2al14ByamlWriterInt11getTypeCodeEv
|
||||
0x0000007100a328a0,U,000016,_ZNK2al14ByamlWriterInt5writeEPN4sead11WriteStreamE
|
||||
0x0000007100a328b0,U,000004,_ZNK2al14ByamlWriterInt5printEi
|
||||
0x0000007100a328b4,U,000024,_ZN2al15ByamlWriterUIntC2Ej
|
||||
0x0000007100a328cc,U,000008,_ZNK2al15ByamlWriterUInt11getTypeCodeEv
|
||||
0x0000007100a328d4,U,000016,_ZNK2al15ByamlWriterUInt5writeEPN4sead11WriteStreamE
|
||||
0x0000007100a328e4,U,000004,_ZNK2al15ByamlWriterUInt5printEi
|
||||
0x0000007100a32880,O,000024,_ZN2al14ByamlWriterIntC2Ei
|
||||
0x0000007100a32898,O,000008,_ZNK2al14ByamlWriterInt11getTypeCodeEv
|
||||
0x0000007100a328a0,O,000016,_ZNK2al14ByamlWriterInt5writeEPN4sead11WriteStreamE
|
||||
0x0000007100a328b0,O,000004,_ZNK2al14ByamlWriterInt5printEi
|
||||
0x0000007100a328e8,O,000024,_ZN2al16ByamlWriterFloatC2Ef
|
||||
0x0000007100a32900,O,000008,_ZNK2al16ByamlWriterFloat11getTypeCodeEv
|
||||
0x0000007100a32908,O,000012,_ZNK2al16ByamlWriterFloat5writeEPN4sead11WriteStreamE
|
||||
@ -65205,8 +65201,7 @@ Address,Quality,Size,Name
|
||||
0x0000007100a32b74,O,000008,_ZNK2al20ByamlWriterContainer6isHashEv
|
||||
0x0000007100a32b7c,U,000008,_ZNK2al16ByamlWriterArray7isArrayEv
|
||||
0x0000007100a32b84,U,000004,_ZN2al17ByamlWriterStringD0Ev
|
||||
0x0000007100a32b88,U,000004,_ZN2al14ByamlWriterIntD0Ev
|
||||
0x0000007100a32b8c,U,000004,_ZN2al15ByamlWriterUIntD0Ev
|
||||
0x0000007100a32b88,O,000004,_ZN2al14ByamlWriterIntD0Ev
|
||||
0x0000007100a32b90,O,000004,_ZN2al16ByamlWriterFloatD0Ev
|
||||
0x0000007100a32b94,U,000004,_ZN2al16ByamlWriterInt64D0Ev
|
||||
0x0000007100a32b98,O,000004,_ZN2al15ByamlWriterDataD2Ev
|
||||
|
Can't render this file because it is too large.
|
@ -30,6 +30,16 @@ private:
|
||||
bool mValue;
|
||||
};
|
||||
|
||||
class ByamlWriterInt : public ByamlWriterData {
|
||||
public:
|
||||
ByamlWriterInt(int);
|
||||
u8 getTypeCode() const override;
|
||||
void write(sead::WriteStream*) const override;
|
||||
void print(int) const override;
|
||||
private:
|
||||
int mValue;
|
||||
};
|
||||
|
||||
class ByamlWriterFloat : public ByamlWriterData {
|
||||
public:
|
||||
ByamlWriterFloat(float);
|
||||
|
@ -18,6 +18,11 @@ u8 ByamlWriterBool::getTypeCode() const {return 0xD0;}
|
||||
void ByamlWriterBool::print(int) const {}
|
||||
void ByamlWriterBool::write(sead::WriteStream* stream) const {stream->writeU32(mValue);}
|
||||
|
||||
ByamlWriterInt::ByamlWriterInt(int value) : mValue(value) {}
|
||||
u8 ByamlWriterInt::getTypeCode() const {return 0xD1;}
|
||||
void ByamlWriterInt::print(int) const {}
|
||||
void ByamlWriterInt::write(sead::WriteStream* stream) const {stream->writeS32(mValue);}
|
||||
|
||||
ByamlWriterFloat::ByamlWriterFloat(float value) : mValue(value) {}
|
||||
u8 ByamlWriterFloat::getTypeCode() const {return 0xD2;}
|
||||
void ByamlWriterFloat::print(int) const {}
|
||||
|
Loading…
Reference in New Issue
Block a user