public class DefaultMapWriter<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements MapWriter<G,A,R>
MapWriter
.Constructor and Description |
---|
DefaultMapWriter(@NotNull MapArchObjectParserFactory<A> mapArchObjectParserFactory,
@NotNull GameObjectParser<G,A,R> gameObjectParser)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
encodeMapFile(@NotNull MapModel<G,A,R> mapModel,
@NotNull java.io.Writer writer)
Write the whole map-data into a file.
|
public DefaultMapWriter(@NotNull @NotNull MapArchObjectParserFactory<A> mapArchObjectParserFactory, @NotNull @NotNull GameObjectParser<G,A,R> gameObjectParser)
mapArchObjectParserFactory
- the map arch object parser factory to
usegameObjectParser
- the game object parser to usepublic void encodeMapFile(@NotNull @NotNull MapModel<G,A,R> mapModel, @NotNull @NotNull java.io.Writer writer) throws java.io.IOException
MapWriter
encodeMapFile
in interface MapWriter<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
mapModel
- the MapModel to encodewriter
- the writer to write tojava.io.IOException
- In case of I/O problems when writing the map file.