A new attribute is set in the XML maxCardID="".
This contains the maximum card number. This number is stored in the CardSet class.
For the time being a new cardID was set by scanning for existing ones. Now it seems more desirable to not destroy existing card numbers and prefer gaps in the card set (for future merging and comparison).
A card id deleted is therefore never given out again.
When during the loading of the XML the attribute is missing, it is set to -1.
When the first time CardSet.getNewID() is called and it is -1 then a scanning through the tree of flash nodes is used to get the maximum value.When saving the attribute is set normally.
Wenn beim Laden das Attribut fehlt, wird -1 gesetzt. => beim ersten Mal wird dann die höchste Nummer eruiert und diese gesetzt.
Damit werden alte wegkonvertiert.
Primär muss auch CardSet.getNewID() umgeschrieben werden.