PettableFriendComponent.cs 778 B

123456789101112131415161718192021222324
  1. using Content.Shared.Friends.Systems;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.Friends.Components;
  4. /// <summary>
  5. /// Pet something to become friends with it (use in hand, press Z)
  6. /// Requires this entity to have FactionExceptionComponent to work.
  7. /// </summary>
  8. [RegisterComponent, NetworkedComponent, Access(typeof(PettableFriendSystem))]
  9. public sealed partial class PettableFriendComponent : Component
  10. {
  11. /// <summary>
  12. /// Localized popup sent when petting for the first time
  13. /// </summary>
  14. [DataField(required: true)]
  15. public LocId SuccessString = string.Empty;
  16. /// <summary>
  17. /// Localized popup sent when petting multiple times
  18. /// </summary>
  19. [DataField(required: true)]
  20. public LocId FailureString = string.Empty;
  21. }