@Retention(value=RUNTIME) @Target(value={FIELD,METHOD,TYPE}) @Documented @UnstableApi public @interface All
Auto-configures fields or systems pertaining to aspects.
On fields, this annotation works similar to Wire
; fields are configured
during BaseSystem.initialize()
, or explicitly via World.inject(Object)
.
On BaseEntitySystem subclasses, this annotation configures the aspects for the system,
replacing the need to use constructor parameters.>/p>
The annotated field must be one the following types: Archetype
, Aspect
, Aspect.Builder
,
EntitySubscription
, EntityTransmuter
.
This annotation can be combined with One
and Exclude
,
but will be ignored if AspectDescriptor
is present.
value()
corresponds to create.
One
,
Exclude
,
AspectDescriptor
,
Wire
Copyright © 2019. All rights reserved.