public interface ConfigSource
| Modifier and Type | Method and Description |
|---|---|
@Nullable java.io.File |
getFile(@NotNull ProjectSettings projectSettings,
@NotNull java.lang.String type,
int index)
Returns a config file.
|
@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.
|
@NotNull java.lang.String |
toString() |
@NotNull @NotNull java.lang.String getName()
@NotNull @NotNull java.lang.String toString()
toString in class java.lang.Object<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)
projectSettings - the project settings to useresources - the resources to updateerrorView - the error view for reporting errorsboolean isArchDirectoryInputFieldEnabled()
@Nullable
@Nullable java.io.File getFile(@NotNull
@NotNull ProjectSettings projectSettings,
@NotNull
@NotNull java.lang.String type,
int index)
throws java.io.IOException
projectSettings - the project settings to usetype - the file typeindex - the file index, starting with 0null if no more files are availablejava.io.IOException - if an error occurs