Class SavedGameUpdater

java.lang.Object
VASSAL.tools.SavedGameUpdater

public class SavedGameUpdater extends Object
  • Constructor Details

    • SavedGameUpdater

      public SavedGameUpdater()
  • Method Details

    • getPieceSlotsMap

      public Properties 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

      public void updateSavedGame(Properties pieceSlot, File savedGame) throws IOException
      Parameters:
      pieceSlot - the imported piece-slot map from an earlier version of the module
      savedGame - the save game to update. The file gets overwritten.
      Throws:
      IOException - oops
    • findPieceSlots

      protected void findPieceSlots(List<Configurable> l, Properties p)