Class LightBulbComponent
Component that represents a light bulb. Can be broken, or burned, which turns them mostly useless. TODO: Breaking and burning should probably be moved to another component eventually.
Inheritance
Namespace: Content.Shared.Light.Components
Assembly: Content.Shared.dll
Syntax
public sealed class LightBulbComponent : Component
Fields
| Improve this Doc View SourceBreakSound
The sound produced when the lightbulb breaks.
Declaration
public SoundSpecifier BreakSound
Field Value
Type | Description |
---|---|
Robust.Shared.Audio.SoundSpecifier |
BrokenSpriteState
The sprite state used when the lightbulb is broken.
Declaration
public string BrokenSpriteState
Field Value
Type | Description |
---|---|
System.String |
BurnedSpriteState
The sprite state used when the lightbulb is burned.
Declaration
public string BurnedSpriteState
Field Value
Type | Description |
---|---|
System.String |
BurningTemperature
The temperature the air around the lightbulb is exposed to when the lightbulb burns out.
Declaration
public int BurningTemperature
Field Value
Type | Description |
---|---|
System.Int32 |
Color
The color of the lightbulb and the light it produces.
Declaration
public Color Color
Field Value
Type | Description |
---|---|
Color |
LightEnergy
Relates to how bright the light produced by the lightbulb is.
Declaration
public float LightEnergy
Field Value
Type | Description |
---|---|
System.Single |
LightRadius
The maximum radius of the point light source this light produces.
Declaration
public float LightRadius
Field Value
Type | Description |
---|---|
System.Single |
LightSoftness
Relates to the falloff constant of the light produced by the lightbulb.
Declaration
public float LightSoftness
Field Value
Type | Description |
---|---|
System.Single |
NormalSpriteState
The sprite state used when the lightbulb is intact.
Declaration
public string NormalSpriteState
Field Value
Type | Description |
---|---|
System.String |
PowerUse
The amount of power used by the lightbulb when it's active.
Declaration
public int PowerUse
Field Value
Type | Description |
---|---|
System.Int32 |
State
The initial state of the lightbulb.
Declaration
public LightBulbState State
Field Value
Type | Description |
---|---|
LightBulbState |
Type
The type of lightbulb. Tube/bulb/etc...
Declaration
public LightBulbType Type
Field Value
Type | Description |
---|---|
LightBulbType |