public class FilesResourcesReader extends AbstractFilesResourcesReader<GameObject,MapArchObject,Archetype>
Constructor and Description |
---|
FilesResourcesReader(java.io.File archDirectory,
java.io.File collectedDirectory,
ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet,
AbstractArchetypeParser<GameObject,MapArchObject,Archetype,?> archetypeParser,
FaceObjects faceObjects,
AnimationObjects animationObjects,
ArchFaceProvider archFaceProvider)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isValidEntry(int folderLevel,
java.lang.String name)
Returns whether a file name should be processed.
|
FaceProvider |
read(ErrorView errorView,
java.util.List<GameObject> invObjects)
Reads the resources.
|
addPNGFace, loadAnimationsFromCollect, loadAnimTree
public FilesResourcesReader(@NotNull java.io.File archDirectory, @NotNull java.io.File collectedDirectory, @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet, @NotNull AbstractArchetypeParser<GameObject,MapArchObject,Archetype,?> archetypeParser, @NotNull FaceObjects faceObjects, @NotNull AnimationObjects animationObjects, @NotNull ArchFaceProvider archFaceProvider)
archDirectory
- the "arch" directory to readcollectedDirectory
- the collected directoryarchetypeSet
- the archetype set to updatearchetypeParser
- the archetype parser to usefaceObjects
- the face objects instanceanimationObjects
- the animation objects instancearchFaceProvider
- the arch face provider to use@NotNull public FaceProvider read(@NotNull ErrorView errorView, @NotNull java.util.List<GameObject> invObjects)
read
in class AbstractFilesResourcesReader<GameObject,MapArchObject,Archetype>
errorView
- the error view for reporting problemsinvObjects
- all read archetypes are added to this listprotected boolean isValidEntry(int folderLevel, java.lang.String name)
isValidEntry
in class AbstractFilesResourcesReader<GameObject,MapArchObject,Archetype>
folderLevel
- the folder levelname
- the base name of the file name