WireLamp
namespace Griff.Modules.Contraptions;
public sealed class WireLamp : ComponentA lamp to wire up: its input “On” lights it from 0 (dark) to 1 (full), tinting its sprite from OffColor to OnColor and turning up a Light on it.
This is a component: its saved properties are on its component page.
Properties
Section titled “Properties”Brightness
Section titled “Brightness”public float Brightness { get; set; }How brightly it’s lit, from 0 to 1. Wire something to its “On”, or set it.
OffColor
Section titled “OffColor”public Color OffColor { get; set; }Its color when off; it blends to OnColor as it brightens.
OnColor
Section titled “OnColor”public Color OnColor { get; set; }Its color fully lit.