Implemented RoF2 encoder for OP_CrystalCountUpdate (0x467f)

This commit is contained in:
Drajor
2016-06-11 20:24:36 +10:00
parent 73e91be281
commit 3e25a3df5c
3 changed files with 23 additions and 0 deletions
+13
View File
@@ -4389,6 +4389,19 @@ namespace RoF2
delete in;
}
ENCODE(OP_CrystalCountUpdate)
{
ENCODE_LENGTH_EXACT(CrystalCountUpdate_Struct);
SETUP_DIRECT_ENCODE(CrystalCountUpdate_Struct, structs::CrystalCountUpdate_Struct);
OUT(CurrentRadiantCrystals);
OUT(CareerRadiantCrystals);
OUT(CurrentEbonCrystals);
OUT(CareerEbonCrystals);
FINISH_ENCODE();
}
// DECODE methods
DECODE(OP_AdventureMerchantSell)