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:
@@ -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
|
||||
BIN
Resources/textures/Objects/generator.png
Normal file
BIN
Resources/textures/Objects/generator.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 452 B |
BIN
Resources/textures/Objects/provider.png
Normal file
BIN
Resources/textures/Objects/provider.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 195 B |
BIN
Resources/textures/Objects/storage.png
Normal file
BIN
Resources/textures/Objects/storage.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 869 B |
BIN
Resources/textures/Objects/wiredmachine.png
Normal file
BIN
Resources/textures/Objects/wiredmachine.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 742 B |
BIN
Resources/textures/Objects/wirelessmachine.png
Normal file
BIN
Resources/textures/Objects/wirelessmachine.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 324 B |
Reference in New Issue
Block a user