void Category::pack(OutputFrame::Ptr frame) const{ frame->setType(ft03_Category); frame->packInt(id); frame->packInt64(getModTime()); //timestamp frame->packString(name); frame->packString(desc); }
void Player::pack(OutputFrame::Ptr frame) const { frame->setType(ft03_Player); frame->packInt(id); frame->packString(name); frame->packString("Human"); frame->packInt64(getModTime()); }
void Order::describeOrder(OutputFrame::Ptr f) const { f->setType(ft02_OrderDesc); f->packInt(type); f->packString(name); f->packString(description); f->packInt(parameters.size()); std::for_each( parameters.begin(), parameters.end(), boost::bind( &OrderParameter::packOrderDescFrame, _1, f ) ); f->packInt64(descmodtime); }
void Wormhole::packExtraData(OutputFrame::Ptr frame) { Vector3d end = getEndB(); frame->packInt64(end.getX()); frame->packInt64(end.getY()); frame->packInt64(end.getZ()); }
void Board::pack(OutputFrame::Ptr frame) const { ProtocolObject::pack( frame ); frame->packInt(message_count); frame->packInt64(getModTime()); }