Package mindustry.entities.part
Class DrawPart
java.lang.Object
mindustry.entities.part.DrawPart
- Direct Known Subclasses:
FlarePart
,HaloPart
,HoverPart
,RegionPart
,ShapePart
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
static class
Parameters for drawing a part in draw().static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DrawPart.PartParams
int
Which recoil counter to use.boolean
If true, turret shading is used.boolean
If true, the layer is overridden to be under the weapon/turret itself.int
For units, this is the index of the weapon this part gets its progress for. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
draw
(DrawPart.PartParams params) void
getOutlines
(Seq<TextureRegion> out) abstract 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
-