Class BaseProjectileTrailTracker

java.lang.Object
org.boxutil.base.BaseProjectileTrailTracker
All Implemented Interfaces:
StaticTrailTracker

public class BaseProjectileTrailTracker extends Object implements StaticTrailTracker
The standard trail tracker for all the projectiles that BoxUtil built-in autogen static trail system will use it.
  • Field Details

    • projectile

      protected final com.fs.starfarer.api.combat.DamagingProjectileAPI projectile
    • trailData

      protected final StaticTrailData trailData
  • Constructor Details

    • BaseProjectileTrailTracker

      public BaseProjectileTrailTracker(@NotNull com.fs.starfarer.api.combat.DamagingProjectileAPI projectile, @NotNull StaticTrailData trailData)
  • Method Details

    • advance

      public void advance(float amount, float elapsedTime, StaticTrailTracker.Result callback)
      Description copied from interface: StaticTrailTracker
      Will not record any nodes when game paused.
      Specified by:
      advance in interface StaticTrailTracker
      Parameters:
      amount - frame time since last advance call, exclude paused.
      elapsedTime - exclude paused.
      callback - use it for adjust the current trail node.