Class CombatEntityIlluminantData

java.lang.Object
org.boxutil.units.standard.attribute.CombatEntityIlluminantData

public class CombatEntityIlluminantData extends Object
For how to use custom illuminant data for any combat entity(only for ship and projectile):
 
 CombatEntityIlluminantData flag = new CombatEntityIlluminantData();
 // *here any setting for flag*
 combatEntity.setCustomData(CombatEntityIlluminantData.KEY, flag);
 
 
------------

For block the illuminant autogen or none illuminant, add to tags in ship_data.csv:

ogl_NoneIlluminant

dweller (for vanilla compatible)

See BoxDatabase.NONE_ILLUMINANT_FLAG

If any ship have the tags, will not autogen illuminant for each ship engine.

If any weapon have the tags, will not autogen illuminant for *beam* or projectile that spawn by the weapon.

If any weapon have the tags, and it is *beam* weapon: you might have to making an illuminant entity, and add to rendering manager by manual.

  • Field Details

    • KEY

      public static final String KEY
    • noneIlluminant

      public boolean noneIlluminant
      For all.
    • SHIP_engineColor

      public Color SHIP_engineColor
      The value null for no illuminant spawn this frame.

      The alpha for strength scale.

    • SHIP_MUL_MODE

      public boolean SHIP_MUL_MODE
      The value true for mix this color to original color, not overwrite it.
    • SHIP_engineRadius

      public float SHIP_engineRadius
      The value less than or equals 0.0f for no illuminant spawn this frame.
    • PROJ_spawnColor

      public Color PROJ_spawnColor
      The value null for no illuminant spawn when the projectile spawn.

      The alpha for strength scale.

    • PROJ_spawnRadius

      public float PROJ_spawnRadius
      The value less than or equals 0.0f for no illuminant spawn when the projectile spawn.
    • PROJ_spawnDuration

      public float PROJ_spawnDuration
      The value less than or equals 0.0f for no illuminant spawn when the projectile spawn.
    • PROJ_bodyColor

      public Color PROJ_bodyColor
      The value null for no illuminant spawn this frame.

      The alpha for strength scale.

    • PROJ_bodyRadius

      public float PROJ_bodyRadius
      The value less than or equals 0.0f for no illuminant spawn this frame.
    • PROJ_hitColor

      public Color PROJ_hitColor
      The value null for no illuminant spawn when the projectile did damage.

      The alpha for strength scale.

    • PROJ_hitRadius

      public float PROJ_hitRadius
      The value less than or equals 0.0f for no illuminant spawn when the projectile did damage.
    • PROJ_hitDuration

      public float PROJ_hitDuration
      The value less than or equals 0.0f for no illuminant spawn when the projectile did damage.
  • Constructor Details

    • CombatEntityIlluminantData

      public CombatEntityIlluminantData()