Show / Hide Table of Contents

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 Source

Holder

User that is holding or wearing this entity

Declaration
public EntityUid? Holder
Field Value
Type Description
System.Nullable<EntityUid>
| Improve this Doc View Source

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

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

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

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 Source

CycleRate

Declaration
public float CycleRate { get; set; }
Property Value
Type Description
System.Single
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾