Class CollectedResourcesReader

    • Constructor Detail

      • CollectedResourcesReader

        public CollectedResourcesReader​(@NotNull
                                        @NotNull java.io.File configurationDirectory,
                                        @NotNull
                                        @NotNull java.io.File collectedDirectory,
                                        @NotNull
                                        @NotNull ArchetypeSet<GameObject,​MapArchObject,​Archetype> archetypeSet,
                                        @NotNull
                                        @NotNull AbstractArchetypeParser<GameObject,​MapArchObject,​Archetype,​?> archetypeParser,
                                        @NotNull
                                        @NotNull FaceObjects faceObjects,
                                        @NotNull
                                        @NotNull AnimationObjects animationObjects,
                                        @NotNull
                                        @NotNull SmoothFaces smoothFaces,
                                        @NotNull
                                        @NotNull CrossfireAnimationObjectsReader animationObjectsReader)
        Creates a new instance.
        Parameters:
        configurationDirectory - the configuration directory to read from
        collectedDirectory - the collected directory
        archetypeSet - the archetype set to update
        archetypeParser - the archetype parser to use
        faceObjects - the face objects instance
        animationObjects - the animation objects instance
        smoothFaces - the smooth faces to update
        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<GameObject> invObjects)
        Description copied from class: AbstractResourcesReader
        Reads the resources.
        Specified by:
        read in class AbstractResourcesReader<GameObject>
        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