Power System (Complete) (#25)

* Power Commit 1

* Commit 2

* Powernet Part2, All components essentially complete

* Commit 4

* Commit 5

* Commit 6

Creates prototypes

* Finishes powernet code alpha

Adds prototypes and logic for powernet updating and regeneration

* Adds onremove functionality to all components

Without these bits of logic nothing makes any sense!

* And this

* Fixes a lot of bugs

* Fix powernet thinking devices are duplicates

* Fix bug and add comments

* woop woop thats the sound of the police
This commit is contained in:
clusterfack
2018-02-03 22:35:42 -06:00
committed by Silver
parent 2eb30c9ba9
commit 1f22f8ab6a
17 changed files with 1642 additions and 32 deletions

View File

@@ -4,14 +4,15 @@
components:
- type: Transform
- type: Clickable
- type: BoundingBox
- type: Sprite
drawdepth: FloorPlaceable
color: Red
sprites:
- eightdirwire
- type: Icon
icon: eightdirwire
- type: PowerTransfer
snap:
- Wire
@@ -22,4 +23,104 @@
name: BlueWire
components:
- type: Sprite
color: Blue
color: Blue
- type: entity
id: Generator
name: Generator
components:
- type: Transform
- type: Clickable
- type: BoundingBox
- type: Sprite
drawdepth: FloorPlaceable
sprites:
- generator
- type: Icon
icon: generator
- type: PowerGenerator
- type: entity
id: WPPnobattery
name: WPPnobattery
components:
- type: Transform
- type: Clickable
- type: BoundingBox
- type: Sprite
drawdepth: FloorPlaceable
sprites:
- provider
- type: Icon
icon: provider
- type: PowerProvider
Range: 5
Priority: Provider
- type: entity
parent: WPPnobattery
id: WPP
name: WPP
components:
- type: PowerStorage
Capacity: 1000
Charge: 1000
ChargeRate: 200
ChargePowernet: false
- type: entity
id: SMES
name: SMES
components:
- type: Transform
- type: Clickable
- type: BoundingBox
- type: Sprite
drawdepth: FloorPlaceable
sprites:
- storage
- type: Icon
icon: storage
- type: PowerStorage
Capacity: 3000
Charge: 1000
ChargeRate: 200
DistributionRate: 400
ChargePowernet: true
- type: entity
id: WiredMachine
name: WiredMachine
components:
- type: Transform
- type: Clickable
- type: BoundingBox
- type: Sprite
drawdepth: FloorPlaceable
sprites:
- wiredmachine
- type: Icon
icon: wiredmachine
- type: PowerDevice
Drawtype: Node
Load: 100
Priority: High
- type: entity
id: WirelessMachine
name: WirelessMachine
components:
- type: Transform
- type: Clickable
- type: BoundingBox
- type: Sprite
drawdepth: FloorPlaceable
sprites:
- wirelessmachine
- type: Icon
icon: wirelessmachine
- type: PowerDevice
Drawtype: Both
Load: 200
Priority: Low

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 869 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B