Class AbstractFilesResourcesReader<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Constructor Detail

      • AbstractFilesResourcesReader

        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,
                                               @NotNull
                                               @NotNull AbstractAnimationObjectsReader animationObjectsReader)
        Creates a new instance.
        Parameters:
        archDirectory - the "arch" directory to read
        archetypeSet - the archetype set to update
        archetypeParser - the archetype parser to use
        archFaceProvider - the arch face provider to use
        collectedDirectory - the collected directory
        imageSet - the active image set or null
        animationObjects - the animation objects instance
        faceObjects - the face objects instance
        animationObjectsReader - the animation objects reader instance to use
    • Method Detail

      • read

        @NotNull
        public @NotNull FaceProvider read​(@NotNull
                                          @NotNull ErrorView errorView,
                                          @NotNull
                                          @NotNull java.util.List<G> invObjects)
        Description copied from class: AbstractResourcesReader
        Reads the resources.
        Specified by:
        read in class AbstractResourcesReader<G extends GameObject<G,​A,​R>>
        Parameters:
        errorView - the error view for reporting problems
        invObjects - all read archetypes are added to this list
        Returns:
        the face provider for accessing the read faces
      • isValidEntry

        protected abstract boolean isValidEntry​(int folderLevel,
                                                java.lang.String name)
        Returns whether a file name should be processed.
        Parameters:
        folderLevel - the folder level
        name - the base name of the file name
        Returns:
        whether the entry is valid and should be processed