Interface PrefabLoader
-
- All Known Implementing Classes:
PrefabLoaderImpl
public interface PrefabLoaderAPrefabLoaderImplis responsible for loadingPrefabfrom a single source (local directory or remote system).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidloadPrefab(java.io.File jarFile)LoadsPrefabfrom the given jar file.voidloadPrefabs()Loads all prefabs.
-
-
-
Method Detail
-
loadPrefabs
void loadPrefabs()
Loads all prefabs. This involves reading the source files/streams and creating their equivalentPrefabs. PossibleRuntimeExceptions should be logged and not thrown to the caller.
-
loadPrefab
void loadPrefab(java.io.File jarFile) throws java.lang.ExceptionLoadsPrefabfrom the given jar file.- Parameters:
jarFile- prefab jar file- Throws:
java.lang.Exception- if the jar file is invalid
-
-