Package mindustry.entities.part
Class DrawPart
java.lang.Object
mindustry.entities.part.DrawPart
- Direct Known Subclasses:
EffectSpawnerPart,FlarePart,HaloPart,HoverPart,RegionPart,ShapePart
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic classstatic classParameters for drawing a part in draw().static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DrawPart.PartParamsintWhich recoil counter to use.booleanIf true, turret shading is used.booleanIf true, the layer is overridden to be under the weapon/turret itself.intFor units, this is the index of the weapon this part gets its progress for. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddraw(DrawPart.PartParams params) voidgetOutlines(arc.struct.Seq<arc.graphics.g2d.TextureRegion> out) void
-
Field Details
-
params
-
turretShading
public boolean turretShadingIf true, turret shading is used. Don't touch this, it is set up in unit/block init()! -
under
public boolean underIf true, the layer is overridden to be under the weapon/turret itself. -
weaponIndex
public int weaponIndexFor units, this is the index of the weapon this part gets its progress for. -
recoilIndex
public int recoilIndexWhich recoil counter to use. < 0 to use base recoil.
-
-
Constructor Details
-
DrawPart
public DrawPart()
-
-
Method Details
-
draw
-
load
-
getOutlines
public void getOutlines(arc.struct.Seq<arc.graphics.g2d.TextureRegion> out)
-