PaintableAirlockComponent.cs 945 B

123456789101112131415161718192021222324
  1. using Content.Shared.Roles;
  2. using Content.Shared.SprayPainter.Prototypes;
  3. using Robust.Shared.GameStates;
  4. using Robust.Shared.Prototypes;
  5. namespace Content.Shared.SprayPainter.Components;
  6. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  7. public sealed partial class PaintableAirlockComponent : Component
  8. {
  9. /// <summary>
  10. /// Group of styles this airlock can be painted with, e.g. glass, standard or external.
  11. /// </summary>
  12. [DataField(required: true), AutoNetworkedField]
  13. public ProtoId<AirlockGroupPrototype> Group = string.Empty;
  14. /// <summary>
  15. /// Department this airlock is painted as, or none.
  16. /// Must be specified in prototypes for turf war to work.
  17. /// To better catch any mistakes, you need to explicitly state a non-styled airlock has a null department.
  18. /// </summary>
  19. [DataField(required: true), AutoNetworkedField]
  20. public ProtoId<DepartmentPrototype>? Department;
  21. }