ItemRecallComponent.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.ItemRecall;
  3. /// <summary>
  4. /// Component for the ItemRecall action.
  5. /// Used for marking a held item and recalling it back into your hand with second action use.
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(SharedItemRecallSystem))]
  8. public sealed partial class ItemRecallComponent : Component
  9. {
  10. /// <summary>
  11. /// The name the action should have while an entity is marked.
  12. /// </summary>
  13. [DataField]
  14. public LocId? WhileMarkedName = "item-recall-marked-name";
  15. /// <summary>
  16. /// The description the action should have while an entity is marked.
  17. /// </summary>
  18. [DataField]
  19. public LocId? WhileMarkedDescription = "item-recall-marked-description";
  20. /// <summary>
  21. /// The name the action starts with.
  22. /// This shouldn't be set in yaml.
  23. /// </summary>
  24. [DataField]
  25. public string? InitialName;
  26. /// <summary>
  27. /// The description the action starts with.
  28. /// This shouldn't be set in yaml.
  29. /// </summary>
  30. [DataField]
  31. public string? InitialDescription;
  32. /// <summary>
  33. /// The entity currently marked to be recalled by this action.
  34. /// </summary>
  35. [DataField, AutoNetworkedField]
  36. public EntityUid? MarkedEntity;
  37. }