Class TowerSystem.TowerAbilityCategoryRule

java.lang.Object
com.prineside.tdi2.systems.TowerSystem.TowerAbilityCategoryRule
All Implemented Interfaces:
KryoSerializable
Enclosing class:
TowerSystem

public static final class TowerSystem.TowerAbilityCategoryRule extends Object implements KryoSerializable
  • Field Details

    • categoryId

      public int categoryId
      ID of the category, defined in TowerSystem.towerAbilityCategoryRules
    • requiredXpLevels

      public IntArray requiredXpLevels
      Tower XP levels required to make it possible to select an ability. If multiple levels defined here, the same amount of abilities from the same category can be selected. Array must be sorted in ascending order.
    • autoInstallSingleVariant

      public boolean autoInstallSingleVariant
      If true and category contains a single ability, it will be installed automatically. Setting this field to true will not allow the player to install the ability manually. If true, requiredXpLevels must contain exactly one value.
  • Constructor Details

    • TowerAbilityCategoryRule

      public TowerAbilityCategoryRule(int id, int[] requiredLevels, boolean autoInstallSingleVariant)
  • Method Details