ICharacterProfile.cs 825 B

1234567891011121314151617181920212223242526
  1. using Content.Shared.Humanoid;
  2. using Robust.Shared.Configuration;
  3. using Robust.Shared.Player;
  4. using Robust.Shared.Prototypes;
  5. namespace Content.Shared.Preferences
  6. {
  7. public interface ICharacterProfile
  8. {
  9. string Name { get; }
  10. ICharacterAppearance CharacterAppearance { get; }
  11. bool MemberwiseEquals(ICharacterProfile other);
  12. /// <summary>
  13. /// Makes this profile valid so there's no bad data like negative ages.
  14. /// </summary>
  15. void EnsureValid(ICommonSession session, IDependencyCollection collection);
  16. /// <summary>
  17. /// Gets a copy of this profile that has <see cref="EnsureValid"/> applied, i.e. no invalid data.
  18. /// </summary>
  19. ICharacterProfile Validated(ICommonSession session, IDependencyCollection collection);
  20. }
  21. }