Class EffectSpawnerPart

java.lang.Object
mindustry.entities.part.DrawPart
mindustry.entities.part.EffectSpawnerPart

public class EffectSpawnerPart extends DrawPart
Spawns effects in a rectangle centered on x and y.
  • Field Details

    • x

      public float x
    • y

      public float y
    • width

      public float width
    • height

      public float height
    • rotation

      public float rotation
    • mirror

      public boolean mirror
    • effectRot

      public float effectRot
    • effectRandRot

      public float effectRandRot
    • effectInterval

      public float effectInterval
      If >0, the interval, in ticks, between effect spawns.
    • effectIntervalFrom

      public float effectIntervalFrom
      If >0, this is the interval at 0 progress. useProgress is ignored.
    • effectChance

      public float effectChance
    • effect

      public Effect effect
    • effectColor

      public arc.graphics.Color effectColor
    • useProgress

      public boolean useProgress
      If true, effectChance will be scaled by progress.
    • progress

      public DrawPart.PartProgress progress
    • debugDraw

      public boolean debugDraw
      Shows the spawn rectangles in red.
    • effectIntervalState

      protected float effectIntervalState
  • Constructor Details

    • EffectSpawnerPart

      public EffectSpawnerPart()
  • Method Details