public class MultiLinkCheckAll extends Component { @EntityId @LinkPolicy(CHECK_SOURCE_AND_TARGETS) public IntBag other = new IntBag(); }
/** * @author Daan van Yperen */ @Fluid(swallowGettersWithParameters = true) public class ParaGetter extends Component { public String custom( String a ) { return a; } }
/** * Set {@code @Wire} annotation value for cached class. */ private void setWireAnnotation(CachedClass cachedClass, Wire wireAnnotation) { cachedClass.wireType = WireType.WIRE; cachedClass.wireAnnotation = wireAnnotation; cachedClass.failOnNull = wireAnnotation.failOnNull(); cachedClass.injectInherited = wireAnnotation.injectInherited(); }
@PooledWeaver(forceWeaving=true) @SuppressWarnings("unused") public class PooledAllFields extends Component { private boolean _boolean = true; private char _char = 'a'; private short _short = 1; private int _int = 1; private long _long = 1; private float _float = 1; private double _double = 1; private String _string = "hej"; }
@PreserveProcessVisiblity public class IntOptimizedSystemSafe extends IteratingSystem { public IntOptimizedSystemSafe() { super(null); } @Override protected void process(int e) {} }
@Profile(enabled=true, using=SimpleProfiler.class) public class ProfiledSystem extends EntityProcessingSystem { public ProfiledSystem() { super(Aspect.all()); } @Override protected void process(Entity e) { } }
/** * @author Daan van Yperen */ @Fluid(name = "rename2") public class Rename extends Component { }
@PooledWeaver public class PolyConstructor extends Component { public float diameter; public PolyConstructor() { this(0); } public PolyConstructor(float diameter) { this.diameter = diameter; } }
@PreserveProcessVisiblity public class OptimizedSystemSafe extends EntityProcessingSystem { public OptimizedSystemSafe() { super(null); } @Override protected void process(Entity e) {} }
@Profile(enabled=true, using=SimpleProfiler.class) public class IntProfiledSystem extends IteratingSystem { public IntProfiledSystem() { super(Aspect.all()); } @Override protected void process(int e) { } }
/** * @author Daan van Yperen */ @Fluid(exclude = true) public class Excluded extends Component { }
public class EntityLink extends Component { @EntityId public int otherId; public int nothingHere; }
@PooledWeaver public class PooledString extends Component { public String s; }