Entity groups
This commit is contained in:
@@ -1242,6 +1242,10 @@ public class EntityComps{
|
||||
public void update(){
|
||||
//TODO fix effects, make everything poolable
|
||||
}
|
||||
|
||||
public float clipSize(){
|
||||
return effect.size;
|
||||
}
|
||||
}
|
||||
|
||||
@Component
|
||||
|
||||
@@ -10,4 +10,7 @@ class EntityDefs{
|
||||
|
||||
@EntityDef({TileComp.class})
|
||||
class TileDef{}
|
||||
|
||||
@EntityDef({EffectComp.class})
|
||||
class EffectDef{}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,22 @@
|
||||
package mindustry.entities.def;
|
||||
|
||||
import mindustry.annotations.Annotations.*;
|
||||
import mindustry.entities.def.EntityComps.*;
|
||||
|
||||
public class EntityGroupDefs{
|
||||
|
||||
@GroupDef(UnitComp.class)
|
||||
void unit(){
|
||||
|
||||
}
|
||||
|
||||
@GroupDef(TileComp.class)
|
||||
void tile(){
|
||||
|
||||
}
|
||||
|
||||
@GroupDef(DrawComp.class)
|
||||
void drawers(){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user