Exemplo n.º 1
0
void Merchant::save(VariantMap& stream) const
{
  Object::save( stream );

  VARIANT_SAVE_CLASS_D( stream, _d, sells )
  VARIANT_SAVE_CLASS_D( stream, _d, buys )
  VARIANT_SAVE_ANY_D( stream, _d, step )
  VARIANT_SAVE_STR_D( stream, _d, baseCity )
  VARIANT_SAVE_STR_D( stream, _d, destCity )

  stream[ "steps" ] = _d->steps.save();
}
Exemplo n.º 2
0
void Player::save( VariantMap& stream ) const
{
  VARIANT_SAVE_ANY_D( stream, _d, funds );
  VARIANT_SAVE_STR_D( stream, _d, name );
  VARIANT_SAVE_ANY_D( stream, _d, salary );
  VARIANT_SAVE_ANY_D( stream, _d, color );
  VARIANT_SAVE_ANY_D( stream, _d, rank );
}
Exemplo n.º 3
0
VariantMap VictoryConditions::save() const
{
  VariantMap ret;
  ret[ "maxHouseLevel" ] = Variant( HouseSpecHelper::instance().getSpec( _d->maxHouseLevel ).internalName() );
  VARIANT_SAVE_ANY_D( ret, _d, success )
  VARIANT_SAVE_ANY_D( ret, _d, culture )
  VARIANT_SAVE_ANY_D( ret, _d, population )
  VARIANT_SAVE_ANY_D( ret, _d, prosperity )
  VARIANT_SAVE_ANY_D( ret, _d, favour )
  VARIANT_SAVE_ANY_D( ret, _d, peace )
  VARIANT_SAVE_STR_D( ret, _d, overview )
  VARIANT_SAVE_ANY_D( ret, _d, finishDate )
  VARIANT_SAVE_ANY_D( ret, _d, reignYears )
  ret[ "short"      ] = Variant( _d->shortDesc );
  VARIANT_SAVE_STR_D( ret, _d, win.text );
  VARIANT_SAVE_STR_D( ret, _d, caption )
  VARIANT_SAVE_STR_D( ret, _d, name )
  VARIANT_SAVE_ANY_D( ret, _d, sound.overview )
  VARIANT_SAVE_ANY_D( ret, _d, sound.win )
  VARIANT_SAVE_STR_D( ret, _d, may_continue )
  VARIANT_SAVE_STR_D( ret, _d, next )
  VARIANT_SAVE_STR_D( ret, _d, title )
  return ret;
}