public class FilesConfigSource extends AbstractConfigSource
AbstractConfigSource
that reads individual files from Crossfire's
arch directory.Constructor and Description |
---|
FilesConfigSource() |
Modifier and Type | Method and Description |
---|---|
@NotNull java.lang.String |
getName()
Returns the internal name.
|
boolean |
isArchDirectoryInputFieldEnabled()
Whether the "archetype directory" input field in the settings dialog
should be enabled.
|
<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> |
read(@NotNull ProjectSettings projectSettings,
@NotNull AbstractResources<G,A,R> resources,
@NotNull ErrorView errorView)
Reads config files.
|
getFile, toString
@NotNull public @NotNull java.lang.String getName()
ConfigSource
public <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> void read(@NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull AbstractResources<G,A,R> resources, @NotNull @NotNull ErrorView errorView)
ConfigSource
projectSettings
- the project settings to useresources
- the resources to updateerrorView
- the error view for reporting errorspublic boolean isArchDirectoryInputFieldEnabled()
ConfigSource