shadowmage45 / SSTULabs

Dev repository for testing/unfinished KSP parts/plugins/etc.
Other
62 stars 41 forks source link

SSTUSolarPanelDeployable - SSTUResourceBoiloff - Public Accessible 'EC In/Out' methods #787

Closed shadowmage45 closed 5 years ago

shadowmage45 commented 5 years ago

Allow for external mods to query for the resource costs/generation from these part-modules.

Returned values should reflect the maximum (nominal) values for the current part configuration in cases where parts can be modified.

Modules that need hooks:

shadowmage45 commented 5 years ago

Implemented for ModularPart in dev -- https://github.com/shadowmage45/SSTULabs/blob/175dbc7dd5d7e429e64378a6af9213564c46ad53/Plugin/SSTUTools/SSTUTools/Module/SSTUModularPart.cs#L426-L432

shadowmage45 commented 5 years ago

Implemented in SolarPanelDeployable -- https://github.com/shadowmage45/SSTULabs/blob/58f059040c4a649545a8263c9bdfe2dc5a683d8b/Plugin/SSTUTools/SSTUTools/Module/SSTUSolarPanelDeployable.cs#L65-L71

shadowmage45 commented 5 years ago

Already implemented in SolarPanelStatic https://github.com/shadowmage45/SSTULabs/blob/58f059040c4a649545a8263c9bdfe2dc5a683d8b/Plugin/SSTUTools/SSTUTools/Module/SSTUSolarPanelStatic.cs#L21-L22

shadowmage45 commented 5 years ago

Implemented for ResourceBoiloff: https://github.com/shadowmage45/SSTULabs/blob/0bf5aa4f00232a5d1c4c0482c117c8f844a7fd18/Plugin/SSTUTools/SSTUTools/Module/SSTUResourceBoiloff.cs#L39-L44