new deck format working now!

decks are in the res/decks folder, every deck is a file, booster decks are directories with 8 deck files in them. currently, if you run the new version, the decks folder is created automatically, but old decks are neither migrated nor overwritten. i'll commit an import program soon

major changes include
-Deck doesn't store the three boolean fields any more, but computes them
-DeckIO is now an interface, with OldDeckIO and NewDeckIO as its implementations. OldDeckIO will probably still be used for the deck migration tool.
This commit is contained in:
jendave
2011-08-06 02:44:55 +00:00
parent 3757bf5fe9
commit 8bd5c4a2c4
19 changed files with 798 additions and 438 deletions

View File

@@ -28,7 +28,7 @@ public class QuestData_State implements Serializable {
@SuppressWarnings("unchecked")
private Object readResolve() throws ObjectStreamException {
System.out.println("resolving obsolete QuestData_State");
// System.out.println("resolving obsolete QuestData_State");
//removing generic types to make cast between Deck and forge.Deck
//i'm using Deck in this class because it may be somewhere in the serialization stream
//it is irrelevant, because readResolve replaces Deck by forge.Deck, and since generics