GibActionComponent.cs 879 B

123456789101112131415161718192021222324252627282930
  1. using Content.Shared.Mobs;
  2. using Robust.Shared.Prototypes;
  3. using Robust.Shared.GameStates;
  4. namespace Content.Shared.Species.Components;
  5. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  6. public sealed partial class GibActionComponent : Component
  7. {
  8. /// <summary>
  9. /// The action to use.
  10. /// </summary>
  11. [DataField("actionPrototype", required: true)]
  12. public EntProtoId ActionPrototype;
  13. [DataField, AutoNetworkedField]
  14. public EntityUid? ActionEntity;
  15. /// <summary>
  16. /// What mob states the action will appear in
  17. /// </summary>
  18. [DataField("allowedStates"), ViewVariables(VVAccess.ReadWrite)]
  19. public List<MobState> AllowedStates = new();
  20. /// <summary>
  21. /// The text that appears when attempting to split.
  22. /// </summary>
  23. [DataField("popupText")]
  24. public string PopupText = "diona-gib-action-use";
  25. }