Package VASSAL.tools
Class SavedGameUpdater
java.lang.Object
VASSAL.tools.SavedGameUpdater
public class SavedGameUpdater extends Object
-
Constructor Summary
Constructors Constructor Description SavedGameUpdater() -
Method Summary
Modifier and Type Method Description protected voidfindPieceSlots(List<Configurable> l, Properties p)PropertiesgetPieceSlotsMap()Returns a mapping of GamePiece type to the id of a PieceSlot in the module This information is exported from an old module version, then imported into a new module version to update saved gamesvoidupdateSavedGame(Properties pieceSlot, File savedGame)
-
Constructor Details
-
SavedGameUpdater
public SavedGameUpdater()
-
-
Method Details
-
getPieceSlotsMap
Returns a mapping of GamePiece type to the id of a PieceSlot in the module This information is exported from an old module version, then imported into a new module version to update saved games- Returns:
-
updateSavedGame
- Parameters:
pieceSlot- the imported piece-slot map from an earlier version of the modulesavedGame- the save game to update. The file gets overwritten.- Throws:
IOException
-
findPieceSlots
-