| 123456789101112131415161718192021222324 |
- using Content.Server.Atmos.Piping.EntitySystems;
- using JetBrains.Annotations;
- namespace Content.Server.Atmos.Piping.Components;
- [RegisterComponent]
- public sealed partial class AtmosPipeColorComponent : Component
- {
- [DataField]
- public Color Color { get; set; } = Color.White;
- [ViewVariables(VVAccess.ReadWrite), UsedImplicitly]
- public Color ColorVV
- {
- get => Color;
- set => IoCManager.Resolve<IEntityManager>().System<AtmosPipeColorSystem>().SetColor(Owner, this, value);
- }
- }
- [ByRefEvent]
- public record struct AtmosPipeColorChangedEvent(Color color)
- {
- public Color Color = color;
- }
|