Power switchable refactor (#20419)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2023-10-25 13:57:23 +01:00
committed by GitHub
parent 9025ccaa9d
commit b6a8f5e780
11 changed files with 332 additions and 230 deletions

View File

@@ -96,19 +96,26 @@
parent: PortableGeneratorBase
id: PortableGeneratorSwitchableBase
components:
- type: PowerSwitchableGenerator
switchSound:
path: /Audio/Machines/button.ogg
- type: NodeContainer
examinable: true
nodes:
output_hv:
!type:CableDeviceNode
nodeGroupID: HVPower
output_mv:
!type:CableDeviceNode
nodeGroupID: MVPower
enabled: false
- type: PowerSwitchable
examineText: power-switchable-generator-examine
switchText: power-switchable-generator-switched
cables:
- voltage: HV
node: output_hv
- voltage: MV
node: output_mv
- type: UseDelay
delay: 1
- type: NodeContainer
examinable: true
nodes:
output_hv:
!type:CableDeviceNode
nodeGroupID: HVPower
output_mv:
!type:CableDeviceNode
nodeGroupID: MVPower
enabled: false
- type: entity
name: P.A.C.M.A.N.-type portable generator