using Content.Shared.Polymorph;
using Content.Shared.Polymorph.Systems;
using Content.Shared.Whitelist;
using Robust.Shared.Prototypes;
namespace Content.Shared.Polymorph.Components;
///
/// 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.
///
[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.
///
[DataField(required: true)]
public EntityWhitelist? Blacklist;
///
/// Polymorph configuration for the disguise entity.
///
[DataField(required: true)]
public PolymorphConfiguration Polymorph = new();
///
/// Action for disabling your disguise's rotation.
///
[DataField]
public EntProtoId NoRotAction = "ActionDisguiseNoRot";
///
/// Action for anchoring your disguise in place.
///
[DataField]
public EntProtoId AnchorAction = "ActionDisguiseAnchor";
///
/// Minimum health to give the disguise.
///
[DataField]
public float MinHealth = 1f;
///
/// Maximum health to give the disguise, health scales with mass.
///
[DataField]
public float MaxHealth = 100f;
///
/// Popup shown to the user when they try to disguise as an invalid entity.
///
[DataField]
public LocId InvalidPopup = "chameleon-projector-invalid";
///
/// Popup shown to the user when they disguise as a valid entity.
///
[DataField]
public LocId SuccessPopup = "chameleon-projector-success";
}