28d3b9b9a9
TODO: fix text to the right of the box when saving ai deck.
26 lines
534 B
C++
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);
|
|
}
|
|
}
|