1
0

ChameleonDisguisedComponent.cs 801 B

12345678910111213141516171819202122232425
  1. using Content.Shared.Polymorph.Systems;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.Polymorph.Components;
  4. /// <summary>
  5. /// Added to a player when they use a chameleon projector.
  6. /// Handles making them invisible and revealing when damaged enough or switching hands.
  7. /// </summary>
  8. [RegisterComponent, NetworkedComponent, Access(typeof(SharedChameleonProjectorSystem))]
  9. [AutoGenerateComponentState]
  10. public sealed partial class ChameleonDisguisedComponent : Component
  11. {
  12. /// <summary>
  13. /// The disguise entity parented to the player.
  14. /// </summary>
  15. [DataField, AutoNetworkedField]
  16. public EntityUid Disguise;
  17. /// <summary>
  18. /// For client, whether the user's sprite was previously visible or not.
  19. /// </summary>
  20. [DataField]
  21. public bool WasVisible;
  22. }