RotIntoComponent.cs 918 B

1234567891011121314151617181920212223242526
  1. using Robust.Shared.GameStates;
  2. using Robust.Shared.Prototypes;
  3. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  4. namespace Content.Shared.Atmos.Rotting;
  5. /// <summary>
  6. /// Lets an entity rot into another entity.
  7. /// Used by raw meat to turn into rotten meat.
  8. /// </summary>
  9. [RegisterComponent, NetworkedComponent]
  10. public sealed partial class RotIntoComponent : Component
  11. {
  12. /// <summary>
  13. /// Entity to rot into.
  14. /// </summary>
  15. [DataField("entity", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>)), ViewVariables(VVAccess.ReadWrite)]
  16. public string Entity = string.Empty;
  17. /// <summary>
  18. /// Rotting stage to turn at, this is a multiplier of the total rot time.
  19. /// 0 = rotting, 1 = bloated, 2 = extremely bloated
  20. /// </summary>
  21. [DataField("stage"), ViewVariables(VVAccess.ReadWrite)]
  22. public int Stage;
  23. }