197 data <<
int32(itemInstance.ItemID);
198 data <<
int32(itemInstance.RandomPropertiesSeed);
199 data <<
int32(itemInstance.RandomPropertiesID);
201 data.
WriteBit(itemInstance.ItemBonus.is_initialized());
202 data.
WriteBit(itemInstance.Modifications.is_initialized());
205 if (itemInstance.ItemBonus)
206 data << *itemInstance.ItemBonus;
208 if (itemInstance.Modifications)
209 data << *itemInstance.Modifications;
void FlushBits()
Definition: ByteBuffer.h:150
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
int32_t int32
Definition: g3dmath.h:167