Ejemplo n.º 1
0
void MsgItem::MergeFrom(const MsgItem& from) {
  GOOGLE_CHECK_NE(&from, this);
  item_.MergeFrom(from.item_);
  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    if (from._has_bit(0)) {
      set_sku(from.sku());
    }
    if (from._has_bit(1)) {
      set_position(from.position());
    }
    if (from._has_bit(3)) {
      set_sequence(from.sequence());
    }
    if (from._has_bit(4)) {
      set_counter(from.counter());
    }
    if (from._has_bit(5)) {
      set_quantity(from.quantity());
    }
    if (from._has_bit(6)) {
      set_timeleft(from.timeleft());
    }
  }
  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
Ejemplo n.º 2
0
create() {
   ::create();
/* OBJEDIT { */
   set_edible( 1 );
   set_food_value( 10 );
   set_drink_value( 2 ); // Per 1000 units
   set_weight( 1500 );
   set_bulk( 1000 );
   set_value( 0 );
   set_distant( "dough" );
   set_specific( "the dough" );
   set_look( "A pale brown glob of raw dough." );
   set_plural( "dough" );
   set_name( "dough" );
   set_use_msg( "~Name ~verbgulp down some raw dough." );
   set_quantity( 250 );
   set_solid( 1 );
   set_gettable( 1 );
   set_droppable( 1 );
/* } OBJEDIT */
   call_out( "rise", 60 );
   state = 0; // Unraised
   cooked = 0;
}
Ejemplo n.º 3
0
void create() {
   ::create();
   set_quantity( 250 );
}
Ejemplo n.º 4
0
void create() {
   ::create();
   set_quantity( 1 );
}