More unit progress

This commit is contained in:
Anuken
2022-01-31 14:05:50 -05:00
parent 7c22478618
commit c6cfaa5ce5
17 changed files with 155 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
package mindustry.entities.units;
import arc.graphics.*;
import arc.graphics.g2d.*;
import mindustry.graphics.*;
/** A sprite drawn in addition to the base unit sprites. */
@@ -12,6 +13,8 @@ public class UnitDecal{
public Blending blending = Blending.normal;
public Color color = Color.white;
public TextureRegion loadedRegion;
public UnitDecal(String region, float x, float y, float rotation, float layer, Color color){
this.region = region;
this.x = x;
@@ -21,6 +24,12 @@ public class UnitDecal{
this.color = color;
}
public UnitDecal(String region, Color color, Blending blending){
this.region = region;
this.color = color;
this.blending = blending;
}
public UnitDecal(){
}
}