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 SourceInitialize()
Declaration
public override void Initialize()
PlayBreakSound(EntityUid, LightBulbComponent)
Declaration
public void PlayBreakSound(EntityUid uid, LightBulbComponent bulb = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
LightBulbComponent | bulb |
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 |
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 |