1
0

FitsInDispenserComponent.cs 901 B

123456789101112131415161718192021
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Chemistry.Components;
  3. /// <summary>
  4. /// Allows the entity with this component to be placed in a <c>SharedReagentDispenserComponent</c>.
  5. /// <para>Otherwise it's considered to be too large or the improper shape to fit.</para>
  6. /// <para>Allows us to have obscenely large containers that are harder to abuse in chem dispensers
  7. /// since they can't be placed directly in them.</para>
  8. /// <see cref="Dispenser.SharedReagentDispenserComponent"/>
  9. /// </summary>
  10. [RegisterComponent]
  11. [NetworkedComponent] // only needed for white-lists. Client doesn't actually need Solution data;
  12. public sealed partial class FitsInDispenserComponent : Component
  13. {
  14. /// <summary>
  15. /// Solution name that will interact with ReagentDispenserComponent.
  16. /// </summary>
  17. [DataField, ViewVariables(VVAccess.ReadWrite)]
  18. public string Solution = "default";
  19. }