public class DefaultResources extends AbstractResources<GameObject,MapArchObject,Archetype>
| Constructor and Description |
|---|
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)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected @NotNull java.util.List<GameObject> |
readCollectedInt(@NotNull ProjectSettings projectSettings,
@NotNull ErrorView errorView)
Reads the resources from a collection.
|
protected void |
readFilesInt(@NotNull ProjectSettings projectSettings,
@NotNull ErrorView errorView,
@NotNull java.util.List<GameObject> invObjects)
Reads the resources from individual files.
|
protected void |
writeCollectedInt(@NotNull net.sf.japi.swing.misc.Progress progress,
@NotNull java.io.File collectedDirectory)
Writes the resources in collected form.
|
canWriteCollected, readCollected, readFiles, writeCollectedpublic DefaultResources(@NotNull
@NotNull GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser,
@NotNull
@NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet,
@NotNull
@NotNull AbstractArchetypeParser<GameObject,MapArchObject,Archetype,?> archetypeParser,
@NotNull
@NotNull FaceObjects faceObjects,
@NotNull
@NotNull AnimationObjects animationObjects,
@NotNull
@NotNull ArchFaceProvider archFaceProvider,
@NotNull
@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
@NotNull ProjectSettings projectSettings,
@NotNull
@NotNull ErrorView errorView,
@NotNull
@NotNull java.util.List<GameObject> invObjects)
AbstractResourcesreadFilesInt in class AbstractResources<GameObject,MapArchObject,Archetype>projectSettings - the project settings to read fromerrorView - the error view for reporting problemsinvObjects - all read archetypes@NotNull protected @NotNull java.util.List<GameObject> readCollectedInt(@NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull ErrorView errorView)
AbstractResourcesreadCollectedInt in class AbstractResources<GameObject,MapArchObject,Archetype>projectSettings - the project settings to read fromerrorView - the error view for reporting problemsprotected void writeCollectedInt(@NotNull
@NotNull net.sf.japi.swing.misc.Progress progress,
@NotNull
@NotNull java.io.File collectedDirectory)
throws java.io.IOException
AbstractResourceswriteCollectedInt in class AbstractResources<GameObject,MapArchObject,Archetype>progress - the progress to usecollectedDirectory - the collected directory to write tojava.io.IOException - if collection fails