void Merchant::load(const VariantMap& stream) { Object::load( stream ); VARIANT_LOAD_CLASS_D( _d, sells, stream ) VARIANT_LOAD_CLASS_D( _d, buys, stream ) VARIANT_LOAD_ANY_D( _d, step, stream ) VARIANT_LOAD_STR_D( _d, baseCity, stream ) VARIANT_LOAD_STR_D( _d, destCity, stream ) _d->steps.load( stream.get( "steps" ).toList() ); }
void Player::load( const VariantMap& stream ) { VARIANT_LOAD_ANY_D( _d, funds, stream ); VARIANT_LOAD_STR_D( _d, name, stream ); VARIANT_LOAD_ANY_D( _d, salary, stream ); VARIANT_LOAD_ANY_D( _d, color, stream ); VARIANT_LOAD_ANY_D( _d, rank, stream ); }