Powered light ECS (#5028)

* Brrrr ECS

* Create lit on powered system

* Light bulb ECS

* Finishing porting to ECS

* Minor touches

* Removed events

* Removed old comments

* Fixed test

* To popup system
This commit is contained in:
Alex Evgrashin
2021-10-27 04:24:22 +03:00
committed by GitHub
parent 60b3ff59cf
commit 6e00104260
9 changed files with 502 additions and 405 deletions

View File

@@ -1,9 +1,13 @@
# TODO: Add description (1)
# TODO: Add description (1)
- type: entity
parent: BaseItem
id: BaseLightbulb
abstract: true
components:
- type: Sprite
netsync: false
sprite: Objects/Power/light_bulb.rsi
state: normal
- type: LightBulb
- type: Damageable
damageContainer: Inorganic
@@ -40,6 +44,9 @@
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Appearance
visuals:
- type: LightBulbVisualizer
# Lighting color values gathered from
# https://andi-siess.de/rgb-to-color-temperature/