Show / Hide Table of Contents

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
System.Object
LightBulbComponent
Namespace: Content.Shared.Light.Components
Assembly: Content.Shared.dll
Syntax
public sealed class LightBulbComponent : Component

Fields

| Improve this Doc View Source

BreakSound

The sound produced when the lightbulb breaks.

Declaration
public SoundSpecifier BreakSound
Field Value
Type Description
Robust.Shared.Audio.SoundSpecifier
| Improve this Doc View Source

BrokenSpriteState

The sprite state used when the lightbulb is broken.

Declaration
public string BrokenSpriteState
Field Value
Type Description
System.String
| Improve this Doc View Source

BurnedSpriteState

The sprite state used when the lightbulb is burned.

Declaration
public string BurnedSpriteState
Field Value
Type Description
System.String
| Improve this Doc View Source

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
| Improve this Doc View Source

Color

The color of the lightbulb and the light it produces.

Declaration
public Color Color
Field Value
Type Description
Color
| Improve this Doc View Source

LightEnergy

Relates to how bright the light produced by the lightbulb is.

Declaration
public float LightEnergy
Field Value
Type Description
System.Single
| Improve this Doc View Source

LightRadius

The maximum radius of the point light source this light produces.

Declaration
public float LightRadius
Field Value
Type Description
System.Single
| Improve this Doc View Source

LightSoftness

Relates to the falloff constant of the light produced by the lightbulb.

Declaration
public float LightSoftness
Field Value
Type Description
System.Single
| Improve this Doc View Source

NormalSpriteState

The sprite state used when the lightbulb is intact.

Declaration
public string NormalSpriteState
Field Value
Type Description
System.String
| Improve this Doc View Source

PowerUse

The amount of power used by the lightbulb when it's active.

Declaration
public int PowerUse
Field Value
Type Description
System.Int32
| Improve this Doc View Source

State

The initial state of the lightbulb.

Declaration
public LightBulbState State
Field Value
Type Description
LightBulbState
| Improve this Doc View Source

Type

The type of lightbulb. Tube/bulb/etc...

Declaration
public LightBulbType Type
Field Value
Type Description
LightBulbType
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾