Decal cleanup

This commit is contained in:
Anuken
2020-02-04 09:39:12 -05:00
parent a07e275e11
commit 006004fd70
9 changed files with 31 additions and 141 deletions
@@ -801,6 +801,18 @@ public class EntityComps{
}
}
@Component
abstract class DecalComp implements Drawc, Timedc, Rotc, Posc{
Color color = new Color(1, 1, 1, 1);
TextureRegion region;
public void draw(){
Draw.color(color);
Draw.rect(region, getX(), getY(), getRotation());
Draw.color();
}
}
@Component
abstract class DrawLightComp implements Drawc{
void drawLight(){}
@@ -13,4 +13,7 @@ class EntityDefs{
@EntityDef({EffectComp.class})
class EffectDef{}
@EntityDef({DecalComp.class})
class DecalDef{}
}