Show / Hide Table of Contents

Class LightBulbSystem

Inheritance
System.Object
LightBulbSystem
Namespace: Content.Server.Light.EntitySystems
Assembly: Content.Server.dll
Syntax
public sealed class LightBulbSystem : EntitySystem

Methods

| Improve this Doc View Source

Initialize()

Declaration
public override void Initialize()
| Improve this Doc View Source

PlayBreakSound(EntityUid, LightBulbComponent)

Declaration
public void PlayBreakSound(EntityUid uid, LightBulbComponent bulb = null)
Parameters
Type Name Description
EntityUid uid
LightBulbComponent bulb
| Improve this Doc View Source

SetColor(EntityUid, Color, LightBulbComponent)

Set a new color for a light bulb and raise event about change

Declaration
public void SetColor(EntityUid uid, Color color, LightBulbComponent bulb = null)
Parameters
Type Name Description
EntityUid uid
Color color
LightBulbComponent bulb
| Improve this Doc View Source

SetState(EntityUid, LightBulbState, LightBulbComponent)

Set a new state for a light bulb (broken, burned) and raise event about change

Declaration
public void SetState(EntityUid uid, LightBulbState state, LightBulbComponent bulb = null)
Parameters
Type Name Description
EntityUid uid
LightBulbState state
LightBulbComponent bulb
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾