340 buffer <<
int32(dispellData.SpellID);
341 buffer.
WriteBit(dispellData.Harmful);
342 buffer.
WriteBit(dispellData.Rolled.is_initialized());
343 buffer.
WriteBit(dispellData.Needed.is_initialized());
344 if (dispellData.Rolled.is_initialized())
345 buffer <<
int32(*dispellData.Rolled);
346 if (dispellData.Needed.is_initialized())
347 buffer <<
int32(*dispellData.Needed);
void FlushBits()
Definition: ByteBuffer.h:150
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
int32_t int32
Definition: g3dmath.h:167