using Content.Shared.Polymorph.Systems;
using Content.Shared.Whitelist;
using Robust.Shared.Prototypes;
namespace Content.Shared.Polymorph.Components;
/// <summary>
/// A chameleon projector polymorphs you into a clicked entity, then polymorphs back when clicked on or destroyed.
/// This creates a new dummy polymorph entity and copies the appearance over.
/// </summary>
[RegisterComponent, Access(typeof(SharedChameleonProjectorSystem))]
public sealed partial class ChameleonProjectorComponent : Component
{
/// If non-null, whitelist for valid entities to disguise as.
[DataField(required: true)]
public EntityWhitelist? Whitelist;
/// If non-null, blacklist that prevents entities from being used even if they are in the whitelist.
public EntityWhitelist? Blacklist;
/// Disguise entity to spawn and use.
public EntProtoId DisguiseProto = string.Empty;
/// Action for disabling your disguise's rotation.
[DataField]
public EntProtoId NoRotAction = "ActionDisguiseNoRot";
public EntityUid? NoRotActionEntity;
/// Action for anchoring your disguise in place.
public EntProtoId AnchorAction = "ActionDisguiseAnchor";
public EntityUid? AnchorActionEntity;
/// Minimum health to give the disguise.
public float MinHealth = 1f;
/// Maximum health to give the disguise, health scales with mass.
public float MaxHealth = 100f;
/// Popup shown to the user when they try to disguise as an entity inside a container.
public LocId ContainerPopup = "chameleon-projector-inside-container";
/// Popup shown to the user when they try to disguise as an invalid entity.
public LocId InvalidPopup = "chameleon-projector-invalid";
/// Popup shown to the user when they disguise as a valid entity.
public LocId SuccessPopup = "chameleon-projector-success";
/// User currently disguised by this projector, if any
public EntityUid? Disguised;
}