Turbine generator tweaks
This commit is contained in:
@@ -170,6 +170,7 @@ public class EntityProcess extends BaseProcessor{
|
||||
}else if(round == 2){ //round 2: get component classes and generate interfaces for them
|
||||
|
||||
//parse groups
|
||||
//this needs to be done before the entity interfaces are generated, as the entity classes need to know which groups to add themselves to
|
||||
for(Selement<?> group : allGroups){
|
||||
GroupDef an = group.annotation(GroupDef.class);
|
||||
Seq<Stype> types = types(an, GroupDef::value).map(this::interfaceToComp);
|
||||
|
||||
@@ -60,7 +60,6 @@ public class Selement<T extends Element>{
|
||||
}
|
||||
|
||||
public <A extends Annotation> A annotation(Class<A> annotation){
|
||||
if(true) return e.getAnnotation(annotation);
|
||||
try{
|
||||
Method m = com.sun.tools.javac.code.AnnoConstruct.class.getDeclaredMethod("getAttribute", Class.class);
|
||||
m.setAccessible(true);
|
||||
|
||||
Reference in New Issue
Block a user