Package net.dermetfan.gdx.assets
Annotation Type AnnotationAssetManager.Asset
- Enclosing class:
- AnnotationAssetManager
@Documented
@Retention(RUNTIME)
@Target({FIELD,METHOD})
public static @interface AnnotationAssetManager.Asset
Provides information about assets that fields or methods represent.
The toString value of the value of the field or return value of the method annotated is used as path (except for
FileHandle
and AssetDescriptor
which get special treatment).
Methods annotated with this annotation must not return a primitive and have no parameters.-
Optional Element Summary
-
Element Details
-
load
boolean load- Returns:
- Whether this field or method should be loaded by
AnnotationAssetManager.load(Class, Object)
. Default istrue
.
- Default:
- true
-
value
java.lang.Class<?> value- Returns:
- the type of the asset this field or method represents
- Default:
- void.class
-
param
java.lang.String paramMethods referenced by this can either have no parameters or take aClass
,String
andObject
in this order. The Class is the type of the asset, the String is the path of the asset and the Object is the value of the field or return value of the method from which the asset is being loaded.- Returns:
- The fully qualified or simple name of a field or method providing AssetLoaderParameters. If the name is simple, the declaring class of this field or method is assumed to be the declaring class of the AssetLoaderParameters field or method as well.
- Default:
- ""
-