mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user