Some work on the mess that is this power code.

Jesus.

Tons of fixes, refactors and other things.
The powernet's code is still awful though.
This commit is contained in:
Pieter-Jan Briers
2018-05-27 16:44:50 +02:00
parent f1ec10e3e1
commit 147aad5064
24 changed files with 444 additions and 172 deletions

View File

@@ -57,6 +57,7 @@
- type: PowerProvider
Range: 5
Priority: Provider
Load: 0
- type: entity
parent: WPPnobattery

View File

@@ -0,0 +1,17 @@
- type: entity
name: Light
id: poweredlight
parent: __engine_wall_light
components:
# So we can click on it for deletion.
- type: BoundingBox
- type: Sprite
texture: Objects/wall_light_off.png
- type: PowerDevice
load: 1
priority: Low
- type: PoweredLight
- type: PointLight
state: Off

View File

@@ -81,3 +81,4 @@
texture: Objects/multitool.png
- type: Icon
texture: Objects/multitool.png
- type: PowerDebugTool