Package com.prineside.tdi2.systems
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 Summary
FieldsModifier and TypeFieldDescriptionboolean
If true and category contains a single ability, it will be installed automatically.int
ID of the category, defined in TowerSystem.towerAbilityCategoryRulesTower XP levels required to make it possible to select an ability. -
Constructor Summary
ConstructorsConstructorDescriptionTowerAbilityCategoryRule
(int id, int[] requiredLevels, boolean autoInstallSingleVariant) -
Method Summary
-
Field Details
-
categoryId
public int categoryIdID of the category, defined in TowerSystem.towerAbilityCategoryRules -
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 autoInstallSingleVariantIf 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
-
write
- Specified by:
write
in interfaceKryoSerializable
-
read
- Specified by:
read
in interfaceKryoSerializable
-