public abstract class AbstractFilesResourcesReader<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractResourcesReader<G>
AbstractResourcesReaders
that read from individual files.Modifier | Constructor and Description |
---|---|
protected |
AbstractFilesResourcesReader(@NotNull java.io.File archDirectory,
@NotNull ArchetypeSet<G,A,R> archetypeSet,
@NotNull AbstractArchetypeParser<G,A,R,?> archetypeParser,
@NotNull ArchFaceProvider archFaceProvider,
@NotNull java.io.File collectedDirectory,
@Nullable java.lang.String imageSet,
@NotNull AnimationObjects animationObjects,
@NotNull FaceObjects faceObjects)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
isValidEntry(int folderLevel,
java.lang.String name)
Returns whether a file name should be processed.
|
@NotNull FaceProvider |
read(@NotNull ErrorView errorView,
@NotNull java.util.List<G> invObjects)
Reads the resources.
|
addPNGFace, loadAnimationsFromCollect, loadAnimTree
protected AbstractFilesResourcesReader(@NotNull @NotNull java.io.File archDirectory, @NotNull @NotNull ArchetypeSet<G,A,R> archetypeSet, @NotNull @NotNull AbstractArchetypeParser<G,A,R,?> archetypeParser, @NotNull @NotNull ArchFaceProvider archFaceProvider, @NotNull @NotNull java.io.File collectedDirectory, @Nullable @Nullable java.lang.String imageSet, @NotNull @NotNull AnimationObjects animationObjects, @NotNull @NotNull FaceObjects faceObjects)
archDirectory
- the "arch" directory to readarchetypeSet
- the archetype set to updatearchetypeParser
- the archetype parser to usearchFaceProvider
- the arch face provider to usecollectedDirectory
- the collected directoryimageSet
- the active image set or null
animationObjects
- the animation objects instancefaceObjects
- the face objects instance@NotNull public @NotNull FaceProvider read(@NotNull @NotNull ErrorView errorView, @NotNull @NotNull java.util.List<G> invObjects)
AbstractResourcesReader
read
in class AbstractResourcesReader<G extends GameObject<G,A,R>>
errorView
- the error view for reporting problemsinvObjects
- all read archetypes are added to this listprotected abstract boolean isValidEntry(int folderLevel, java.lang.String name)
folderLevel
- the folder levelname
- the base name of the file name