1
0

AmeShieldComponent.cs 846 B

1234567891011121314151617181920212223242526
  1. using Content.Server.Ame.EntitySystems;
  2. using Content.Shared.Ame.Components;
  3. namespace Content.Server.Ame.Components;
  4. /// <summary>
  5. /// The component used to make an entity part of the bulk machinery of an AntiMatter Engine.
  6. /// Connects to adjacent entities with this component or <see cref="AmeControllerComponent"/> to make an AME.
  7. /// </summary>
  8. [Access(typeof(AmeShieldingSystem), typeof(AmeNodeGroup))]
  9. [RegisterComponent]
  10. public sealed partial class AmeShieldComponent : SharedAmeShieldComponent
  11. {
  12. /// <summary>
  13. /// Whether or not this AME shield counts as a core for the AME or not.
  14. /// </summary>
  15. [ViewVariables]
  16. public bool IsCore = false;
  17. /// <summary>
  18. /// The current integrity of the AME shield.
  19. /// </summary>
  20. [DataField("integrity")]
  21. [ViewVariables]
  22. public int CoreIntegrity = 100;
  23. }