Skip to content

PoweredAttribute

namespace Griff.Scenes;
public sealed class PoweredAttribute : Attribute

Marks a component’s true-or-false property as what a Switch (or a wire into Power) turns on and off, e.g. a mover’s Running or a particle emitter’s Emitting. With Inverted, on sets it false: a door’s Locked. An entity with none of these appears and disappears instead. A script component’s property counts too.

public bool Inverted { get; init; }

Powered on sets it false, and off true: a door is unlocked while it’s on.