RunicEnergyCost
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Static Methods
Returns: An empty RunicEnergyCost with no requirements.
Return Type: RunicEnergyCost
Methods
Returns: A copy of the internal RunicEnergyTypes and the necessary amount needed for each one.
Return Type: float?[RunicEnergyType]
Sets a certain RunicEnergyType to the passed in amount.
Ideally, it should be used in chain, just like a builder, to manage the final object you want.
customEnergyCost
is now usable as a variable in an InfuserManager
Returns: The modified RunicEnergyCost.
Return Type: RunicEnergyCost
Parameter | Type | Description |
---|---|---|
Parameter type | Type RunicEnergyType | Description The type to set |
Parameter amount | Type int | Description The amount to set the type to |
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name types | Type float?[RunicEnergyType] | Has Getter true | Has Setter false | Description |