UpgradesManager handles island upgrades, including registering custom upgrades and upgrade cost loaders.
Methods
getUpgrade (By Name)
The name of the upgrade
The upgrade instance or null if not found
getUpgrade (By Slot)
The slot of the upgrade
The upgrade instance or null if not found
addUpgrade
The upgrade to add
getDefaultUpgrade
The default upgrade configuration
isUpgrade
The name to check
True if the upgrade exists, false otherwise
getUpgrades
Collection of all upgrades
Upgrade Cost Loaders
registerUpgradeCostLoader
The id of the loader
The loader you’re registering
getUpgradesCostLoaders
Collection of all registered cost loaders
getUpgradeCostLoader
The id of the cost loader
The cost loader or null if not found