RandomIconSmoothComponent.cs 501 B

12345678910111213141516
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.IconSmoothing;
  3. /// <summary>
  4. /// Allow randomize StateBase of IconSmoothComponent for random visual variation
  5. /// </summary>
  6. [RegisterComponent, NetworkedComponent]
  7. public sealed partial class RandomIconSmoothComponent : Component
  8. {
  9. /// <summary>
  10. /// StateBase will be randomly selected from this list. Allows to randomize the visual.
  11. /// </summary>
  12. [DataField(required: true)]
  13. public List<string> RandomStates = new();
  14. }