Class SavedGameUpdater
java.lang.Object
VASSAL.tools.SavedGameUpdater
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
findPieceSlots
(List<Configurable> l, Properties p) 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 gamesvoid
updateSavedGame
(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:
- Returns a mapping of GamePiece type to the id of a PieceSlot in the module
-
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
- oops
-
findPieceSlots
-