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(java.io.File archDirectory,
ArchetypeSet<G,A,R> archetypeSet,
AbstractArchetypeParser<G,A,R,?> archetypeParser,
ArchFaceProvider archFaceProvider,
java.io.File collectedDirectory,
java.lang.String imageSet,
AnimationObjects animationObjects,
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.
|
FaceProvider |
read(ErrorView errorView,
java.util.List<G> invObjects)
Reads the resources.
|
addPNGFace, loadAnimationsFromCollect, loadAnimTree
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)
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 FaceProvider read(@NotNull ErrorView errorView, @NotNull java.util.List<G> invObjects)
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