SharedAnomaly.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. using Robust.Shared.Serialization;
  2. using Robust.Shared.Utility;
  3. namespace Content.Shared.Anomaly;
  4. [Serializable, NetSerializable]
  5. public enum AnomalyVisuals : byte
  6. {
  7. IsPulsing,
  8. Supercritical
  9. }
  10. [Serializable, NetSerializable]
  11. public enum AnomalyVisualLayers : byte
  12. {
  13. Base,
  14. Animated
  15. }
  16. /// <summary>
  17. /// The types of anomalous particles used
  18. /// for interfacing with anomalies.
  19. /// </summary>
  20. /// <remarks>
  21. /// The only thought behind these names is that
  22. /// they're a continuation of radioactive particles.
  23. /// Yes i know detla+ waves exist, but they're not
  24. /// common enough for me to care.
  25. /// </remarks>
  26. [Serializable, NetSerializable]
  27. public enum AnomalousParticleType : byte
  28. {
  29. Delta,
  30. Epsilon,
  31. Zeta,
  32. Sigma,
  33. Default
  34. }
  35. [Serializable, NetSerializable]
  36. public enum AnomalyVesselVisuals : byte
  37. {
  38. HasAnomaly,
  39. AnomalyState
  40. }
  41. [Serializable, NetSerializable]
  42. public enum AnomalyVesselVisualLayers : byte
  43. {
  44. Base
  45. }
  46. [Serializable, NetSerializable]
  47. public enum AnomalyGeneratorVisuals : byte
  48. {
  49. Generating
  50. }
  51. [Serializable, NetSerializable]
  52. public enum AnomalyGeneratorVisualLayers : byte
  53. {
  54. Base
  55. }
  56. [Serializable, NetSerializable]
  57. public enum AnomalyScannerUiKey : byte
  58. {
  59. Key
  60. }
  61. [Serializable, NetSerializable]
  62. public sealed class AnomalyScannerUserInterfaceState : BoundUserInterfaceState
  63. {
  64. public FormattedMessage Message;
  65. public TimeSpan? NextPulseTime;
  66. public AnomalyScannerUserInterfaceState(FormattedMessage message, TimeSpan? nextPulseTime)
  67. {
  68. Message = message;
  69. NextPulseTime = nextPulseTime;
  70. }
  71. }
  72. [Serializable, NetSerializable]
  73. public enum AnomalyGeneratorUiKey : byte
  74. {
  75. Key
  76. }
  77. [Serializable, NetSerializable]
  78. public sealed class AnomalyGeneratorUserInterfaceState : BoundUserInterfaceState
  79. {
  80. public TimeSpan CooldownEndTime;
  81. public int FuelAmount;
  82. public int FuelCost;
  83. public AnomalyGeneratorUserInterfaceState(TimeSpan cooldownEndTime, int fuelAmount, int fuelCost)
  84. {
  85. CooldownEndTime = cooldownEndTime;
  86. FuelAmount = fuelAmount;
  87. FuelCost = fuelCost;
  88. }
  89. }
  90. [Serializable, NetSerializable]
  91. public sealed class AnomalyGeneratorGenerateButtonPressedEvent : BoundUserInterfaceMessage
  92. {
  93. }