public class AttachTiledMaps<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
Constructor and Description |
---|
AttachTiledMaps(@NotNull MapManager<G,A,R> mapManager,
@NotNull TileLink[] tileLinks)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
attachTiledMaps(@NotNull MapModel<G,A,R> mapModel,
@NotNull java.lang.String[] tilePaths,
@NotNull java.io.File mapsDirectory,
boolean performAction)
Updates tile paths of a map.
|
public AttachTiledMaps(@NotNull @NotNull MapManager<G,A,R> mapManager, @NotNull @NotNull TileLink[] tileLinks)
mapManager
- the map manager to usetileLinks
- the tile links to usepublic void attachTiledMaps(@NotNull @NotNull MapModel<G,A,R> mapModel, @NotNull @NotNull java.lang.String[] tilePaths, @NotNull @NotNull java.io.File mapsDirectory, boolean performAction) throws CannotLoadMapFileException, CannotSaveMapFileException, MapSizeMismatchException, UnsavedMapException
mapModel
- the map model to updatetilePaths
- the new tile paths; empty slots will be filled inmapsDirectory
- the maps directoryperformAction
- whether the action should be performedCannotLoadMapFileException
- if a map file cannot be loadedCannotSaveMapFileException
- if a map file cannot be savedMapSizeMismatchException
- if adjacent map sizes do not matchUnsavedMapException
- if a map file is not saved