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

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)

View File

@ -141,6 +141,7 @@ E(OP_ZoneEntry)
E(OP_ZonePlayerToBind)
E(OP_ZoneServerInfo)
E(OP_ZoneSpawns)
E(OP_CrystalCountUpdate)
// Begin RoF Decodes
D(OP_AdventureMerchantSell)
D(OP_AltCurrencySell)

View File

@ -5081,6 +5081,15 @@ struct MercenaryMerchantResponse_Struct {
/*0004*/
};
// Sent by Server to update character crystals.
struct CrystalCountUpdate_Struct
{
/*000*/ uint32 CurrentRadiantCrystals;
/*004*/ uint32 CareerRadiantCrystals;
/*008*/ uint32 CurrentEbonCrystals;
/*012*/ uint32 CareerEbonCrystals;
};
}; /*structs*/
}; /*RoF2*/