Class CollectedResourcesReader
- java.lang.Object
-
- net.sf.gridarta.model.resource.AbstractResourcesReader<G>
-
- net.sf.gridarta.model.resource.AbstractCollectedResourcesReader<GameObject,MapArchObject,Archetype>
-
- net.sf.gridarta.var.daimonin.resource.CollectedResourcesReader
-
public class CollectedResourcesReader extends AbstractCollectedResourcesReader<GameObject,MapArchObject,Archetype>
Loads all resources from collected files.
-
-
Constructor Summary
Constructors Constructor Description CollectedResourcesReader(@NotNull java.io.File collectedDirectory, @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet, @NotNull AbstractArchetypeParser<GameObject,MapArchObject,Archetype,?> archetypeParser, @NotNull FaceObjects faceObjects, @NotNull AnimationObjects animationObjects, @NotNull DaimoninAnimationObjectsReader animationObjectsReader)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull FaceProviderread(@NotNull ErrorView errorView, @NotNull java.util.List<GameObject> invObjects)Reads the resources.-
Methods inherited from class net.sf.gridarta.model.resource.AbstractCollectedResourcesReader
loadAnimations, loadArchetypes, loadFacesCollection
-
Methods inherited from class net.sf.gridarta.model.resource.AbstractResourcesReader
addPNGFace, loadAnimationsFromCollect, loadAnimTree
-
-
-
-
Constructor Detail
-
CollectedResourcesReader
public CollectedResourcesReader(@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 DaimoninAnimationObjectsReader animationObjectsReader)Creates a new instance.- Parameters:
collectedDirectory- the collected directoryarchetypeSet- the archetype set to updatearchetypeParser- the archetype parser to usefaceObjects- the face objects instanceanimationObjects- the animation objects instanceanimationObjectsReader- 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:AbstractResourcesReaderReads the resources.- Specified by:
readin classAbstractResourcesReader<GameObject>- Parameters:
errorView- the error view for reporting problemsinvObjects- all read archetypes are added to this list- Returns:
- the face provider for accessing the read faces
-
-