using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
using Robust.Shared.Utility;
namespace Content.Shared._EstacaoPirata.Cards.Card;
///
/// This is used for...
///
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class CardComponent : Component
{
///
/// The back of the card
///
[DataField(readOnly: true)]
public List BackSprite = [];
///
/// The front of the card
///
[DataField(readOnly: true)]
public List FrontSprite = [];
///
/// If it is currently flipped. This is used to update sprite and name.
///
[DataField(readOnly: true), AutoNetworkedField]
public bool Flipped = false;
///
/// The name of the card.
///
[DataField(readOnly: true), AutoNetworkedField]
public string Name = "";
}
[Serializable, NetSerializable]
public sealed class CardFlipUpdatedEvent(NetEntity card) : EntityEventArgs
{
public NetEntity Card = card;
}