public interface ArchetypeParser<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
START_ARCH_NAME
Name of the system-archetype containing path of starting map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
parseArchetypeFromStream(java.io.BufferedReader in,
R prototype,
java.lang.String line,
java.lang.String archName,
java.lang.String panelName,
java.lang.String folderName,
java.lang.String archPath,
java.util.List<G> invObjects,
ErrorViewCollector errorViewCollector)
Here we read an Archetype from a
BufferedReader, parse the data
and put the result in the ArchetypeSet in CMainControl. |
static final java.lang.String START_ARCH_NAME
void parseArchetypeFromStream(@NotNull
java.io.BufferedReader in,
@Nullable
R prototype,
@Nullable
java.lang.String line,
@Nullable
java.lang.String archName,
@NotNull
java.lang.String panelName,
@NotNull
java.lang.String folderName,
@NotNull
java.lang.String archPath,
@NotNull
java.util.List<G> invObjects,
@NotNull
ErrorViewCollector errorViewCollector)
throws java.io.IOException
BufferedReader, parse the data
and put the result in the ArchetypeSet in CMainControl.in - BufferedReader file stream of archetype dataprototype - Prototype Archetype (only for artifacts)line - first line, pre-parsed (only for artifacts)archName - archetype-object name (only for artifacts)panelName - the panel name to add the archetype tofolderName - the folder name to add the archetype toarchPath - the archetype pathinvObjects - collects all inventory objectserrorViewCollector - the error view collector to usejava.io.IOException - in case of I/O problemsjava.io.EOFException - in case an incomplete object was found