public class DefaultResources extends AbstractResources<GameObject,MapArchObject,Archetype>
Constructor and Description |
---|
DefaultResources(GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser,
ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet,
AbstractArchetypeParser<GameObject,MapArchObject,Archetype,?> archetypeParser,
FaceObjects faceObjects,
AnimationObjects animationObjects,
ArchFaceProvider archFaceProvider,
FaceObjectProviders faceObjectProviders)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<GameObject> |
readCollectedInt(ProjectSettings projectSettings,
ErrorView errorView)
Reads the resources from a collection.
|
protected void |
readFilesInt(ProjectSettings projectSettings,
ErrorView errorView,
java.util.List<GameObject> invObjects)
Reads the resources from individual files.
|
protected void |
writeCollectedInt(net.sf.japi.swing.misc.Progress progress,
java.io.File collectedDirectory)
Writes the resources in collected form.
|
canWriteCollected, readCollected, readFiles, writeCollected
public DefaultResources(@NotNull GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser, @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet, @NotNull AbstractArchetypeParser<GameObject,MapArchObject,Archetype,?> archetypeParser, @NotNull FaceObjects faceObjects, @NotNull AnimationObjects animationObjects, @NotNull ArchFaceProvider archFaceProvider, @NotNull FaceObjectProviders faceObjectProviders)
gameObjectParser
- the game object parser to usearchetypeSet
- the archetype set to updatearchetypeParser
- the archetype parser to usefaceObjects
- the face objects instanceanimationObjects
- the animation objects instancearchFaceProvider
- the arch face provider to usefaceObjectProviders
- the face object providers for looking up
facesprotected void readFilesInt(@NotNull ProjectSettings projectSettings, @NotNull ErrorView errorView, @NotNull java.util.List<GameObject> invObjects)
readFilesInt
in class AbstractResources<GameObject,MapArchObject,Archetype>
projectSettings
- the project settings to read fromerrorView
- the error view for reporting problemsinvObjects
- all read archetypes@NotNull protected java.util.List<GameObject> readCollectedInt(@NotNull ProjectSettings projectSettings, @NotNull ErrorView errorView)
readCollectedInt
in class AbstractResources<GameObject,MapArchObject,Archetype>
projectSettings
- the project settings to read fromerrorView
- the error view for reporting problemsprotected void writeCollectedInt(@NotNull net.sf.japi.swing.misc.Progress progress, @NotNull java.io.File collectedDirectory) throws java.io.IOException
writeCollectedInt
in class AbstractResources<GameObject,MapArchObject,Archetype>
progress
- the progress to usecollectedDirectory
- the collected directory to write tojava.io.IOException
- if collection fails