Ejemplo n.º 1
0
void Category::pack(OutputFrame::Ptr frame) const{
  frame->setType(ft03_Category);
  frame->packInt(id);
  frame->packInt64(getModTime()); //timestamp
  frame->packString(name);
  frame->packString(desc);
}
Ejemplo n.º 2
0
void Player::pack(OutputFrame::Ptr frame) const {
    frame->setType(ft03_Player);
    frame->packInt(id);
    frame->packString(name);
    frame->packString("Human");
    frame->packInt64(getModTime());
}
Ejemplo n.º 3
0
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);
}
Ejemplo n.º 4
0
void Wormhole::packExtraData(OutputFrame::Ptr frame) {
   Vector3d end = getEndB();
   frame->packInt64(end.getX());
   frame->packInt64(end.getY());
   frame->packInt64(end.getZ());
}
Ejemplo n.º 5
0
void Board::pack(OutputFrame::Ptr frame) const {
  ProtocolObject::pack( frame );
  frame->packInt(message_count);
  frame->packInt64(getModTime());
}