Class RgbLightControllerComponent
Makes the color of lights on an entity fluctuate. Will update point-light color and modulate some or all of the sprite layers. Will also modulate the color of any unshaded layers that this entity contributes to a wearer or holder.
Inheritance
System.Object
RgbLightControllerComponent
Namespace: Content.Shared.Light.Components
Assembly: Content.Shared.dll
Syntax
public sealed class RgbLightControllerComponent : Component
Remarks
Networked solely for admemes for completely legitimate reasons, like hacked energy swords.
Fields
| Improve this Doc View SourceHolder
User that is holding or wearing this entity
Declaration
public EntityUid? Holder
Field Value
Type | Description |
---|---|
System.Nullable<EntityUid> |
HolderLayers
List of unshaded layers on the holder/wearer that are being modulated.
Declaration
public List<string>? HolderLayers
Field Value
Type | Description |
---|---|
System.Nullable<List<System.String>> |
Layers
What layers of the sprite to modulate? If null, will affect only unshaded layers.
Declaration
public List<int>? Layers
Field Value
Type | Description |
---|---|
System.Nullable<List<System.Int32>> |
OriginalLayerColors
Original colors of the sprite layersfrom before the rgb was added. Used to revert colors when removed.
Declaration
public Dictionary<int, Color>? OriginalLayerColors
Field Value
Type | Description |
---|---|
System.Nullable<Dictionary<System.Int32, Color>> |
OriginalLightColor
Original light color from befor the rgb was aded. Used to revert colors when removed.
Declaration
public Color OriginalLightColor
Field Value
Type | Description |
---|---|
Color |
Properties
| Improve this Doc View SourceCycleRate
Declaration
public float CycleRate { get; set; }
Property Value
Type | Description |
---|---|
System.Single |