using Content.Shared._White.Cult; using Robust.Client.GameObjects; namespace Content.Client._White.Cult.Structures; public sealed class CultCraftStructureVisualizerSystem : VisualizerSystem { protected override void OnAppearanceChange(EntityUid uid, CultCraftStructureVisualsComponent component, ref AppearanceChangeEvent args) { base.OnAppearanceChange(uid, component, ref args); if (args.Sprite == null || !AppearanceSystem.TryGetData(uid, CultCraftStructureVisuals.Activated, out var activated)) return; args.Sprite.LayerSetState(CultCraftStructureVisualsLayers.Activated, activated ? component.StateOn : component.StateOff); } } public enum CultCraftStructureVisualsLayers : byte { Activated }