Files
wagic/projects/mtg/src/DeckDataWrapper.cpp
T
techdragon.nguyen@gmail.com 28d3b9b9a9 fixes ai deck saving bug pointed out by Zethfox.
TODO: fix text to the right of the box when saving ai deck.
2010-10-27 03:00:39 +00:00

26 lines
534 B
C++

#include "PrecompiledHeader.h"
#include "DeckDataWrapper.h"
#include "MTGDeck.h"
#include "PriceList.h"
#include "WDataSrc.h"
DeckDataWrapper::DeckDataWrapper(MTGDeck * deck){
parent = deck;
loadMatches(deck);
}
void DeckDataWrapper::save(){
if(parent){
Rebuild(parent);
parent->save();
}
}
void DeckDataWrapper::save(string filepath, bool useExpandedCardNames, string &deckTitle, string &deckDesc){
if(parent){
Rebuild(parent);
parent->save(filepath, useExpandedCardNames, deckTitle, deckDesc);
}
}