-
Notifications
You must be signed in to change notification settings - Fork 79
Finding your Cyclops Charger
Because of the public members on the Cyclops Charger, you may want to reuse this data somewhere else in your mod.
One common example is linking a Cyclops Charger to a Cyclops Upgrade and displaying the info from the PDA Icon Overlay.
Finding your Cyclops Charger is made simple through MCUServices
.
// Will return the requested Charger, by type, in the Cyclops SubRoot instance passed to it.
MyCharger charger = MCUServices.Find.CyclopsCharger<MyCharger>(subroot);
From here you can do all sorts of things with the data.
For sample code, check out the PDA Overlay system of the Cyclops Simple Solar Charger.
CbItem Patching.dll
Text Pack Patching.txt
The Cyclops Upgrade Cycle
Single UpgradeHandlers
Grouped UpgradeHandlers
Registering UpgradeHandlers
Finding UpgradeHandlers
Creating Icon Overlays
Registering Icon Overlays
The Cyclops Charge Cycle
Creating Cyclops Chargers
Registering Cyclops Chargers
Finding Cyclops Chargers
Origin Story
Cyclops Manager Promises
Creating Your Manager
Registering Your Managers
Finding Auxiliary Managers