Re: Encapsulate Quest Opponents in Deck Files
The file structure is good enough.Doublestrike wrote:OK, so the structureis now acceptable?
- Code: Select all
[metadata]
[main]
[sideboard]
[ai_extra_cards]
[human_extra_cards]
DeckManager should read only [main], [side] and four fields from [metadata], so it does now.Doublestrike wrote:And, those fields are retrieved by the deck manager class?
All others sections are better to be retrieved in QuestUtil or a class like that.
Yes, at any of your newly added sections.Doublestrike wrote:And, may "illegal" tokens be stored there with the pattern I described? (as long as they are processed by a non-deck class, like QuestUtil)
And the code that is going to read that tokens and cards that Wizards never printed - it should store them into CardList classes, not CardPools. Quest_Assignment class is the 1st candidate to become a model to store that data.
It's just to avoid having a bad design.Doublestrike wrote:Not sure what you mean by this? It was sounding like the flexible meta was a positive thing?Max mtg wrote:where Deck has fixed fields instead of too flexible metadata map