SecretDataAnomalyComponent.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using Content.Server.Anomaly.Effects;
  2. namespace Content.Server.Anomaly.Components;
  3. /// <summary>
  4. /// Hides some information about the anomaly when scanning it
  5. /// </summary>
  6. [RegisterComponent, Access(typeof(SecretDataAnomalySystem), typeof(AnomalySystem))]
  7. public sealed partial class SecretDataAnomalyComponent : Component
  8. {
  9. /// <summary>
  10. /// Minimum hidden data elements on MapInit
  11. /// </summary>
  12. [DataField]
  13. public int RandomStartSecretMin = 0;
  14. /// <summary>
  15. /// Maximum hidden data elements on MapInit
  16. /// </summary>
  17. [DataField]
  18. public int RandomStartSecretMax = 0;
  19. /// <summary>
  20. /// Current secret data
  21. /// </summary>
  22. [DataField]
  23. public List<AnomalySecretData> Secret = new();
  24. }
  25. /// <summary>
  26. /// Enum with secret data field variants
  27. /// </summary>
  28. [Serializable]
  29. public enum AnomalySecretData : byte
  30. {
  31. Severity,
  32. Stability,
  33. OutputPoint,
  34. ParticleDanger,
  35. ParticleUnstable,
  36. ParticleContainment,
  37. ParticleTransformation,
  38. Behavior,
  39. Default
  40. }