void InfoMessageCmd::serializeto(BitStream &bs) const { bs.StorePackedBits(1,type()-MapEventTypes::evFirstServerToClient); bs.StorePackedBits(2,uint8_t(m_channel_type)); bs.StoreString(m_msg); }
void GameEntryError::serializeto( BitStream &tgt ) const { tgt.StorePackedBits(1, 3); //opcode tgt.StoreString(m_error); }