BarricadeComponent.cs 701 B

1234567891011121314151617181920212223242526
  1. using Robust.Shared.GameObjects;
  2. using Robust.Shared.Prototypes;
  3. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
  4. using System.Collections.Generic;
  5. using Content.Shared.Tag;
  6. namespace Content.Shared.Barricade;
  7. [RegisterComponent]
  8. public sealed partial class BarricadeComponent : Component
  9. {
  10. /// <summary>
  11. /// % chance of blocking a projectile passing overhead
  12. /// </summary>
  13. [DataField("blocking")]
  14. public int Blocking = 66;
  15. /// <summary>
  16. /// Can it be used bidirectionally (e.g. sandbags) or only from behind (e.g. crenelated walls)?
  17. /// </summary>
  18. [DataField("bidirectional")]
  19. public bool Bidirectional = true;
  20. }