using Robust.Shared.Audio;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Shared._NF.Pirate.Components;
[RegisterComponent]
public sealed partial class PirateBountyConsoleComponent : Component
{
///
/// The id of the label entity spawned by the print label button.
///
[DataField(customTypeSerializer: typeof(PrototypeIdSerializer))]
public string BountyLabelId = "PaperPirateBountyManifest"; // TODO: make some paper
///
/// The id of the label entity spawned by the print label button.
///
[DataField(customTypeSerializer: typeof(PrototypeIdSerializer))]
public string BountyCrateId = "CratePirateBounty"; // TODO: make some paper
///
/// The time at which the console will be able to print a label again.
///
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
public TimeSpan NextPrintTime = TimeSpan.Zero;
///
/// The time between prints.
///
[DataField]
public TimeSpan PrintDelay = TimeSpan.FromSeconds(5);
///
/// The sound made when printing occurs
///
[DataField]
public SoundSpecifier PrintSound = new SoundPathSpecifier("/Audio/Machines/printer.ogg");
///
/// The sound made when bounty skipping is denied due to lacking access.
///
[DataField]
public SoundSpecifier SpawnChestSound = new SoundPathSpecifier("/Audio/Effects/Lightning/lightningbolt.ogg");
///
/// The sound made when the bounty is skipped.
///
[DataField]
public SoundSpecifier SkipSound = new SoundPathSpecifier("/Audio/Effects/Cargo/ping.ogg");
///
/// The sound made when bounty skipping is denied due to lacking access.
///
[DataField]
public SoundSpecifier DenySound = new SoundPathSpecifier("/Audio/Effects/Cargo/buzz_two.ogg");
}
[NetSerializable, Serializable]
public sealed class PirateBountyConsoleState : BoundUserInterfaceState
{
public List Bounties;
public TimeSpan UntilNextSkip;
public PirateBountyConsoleState(List bounties, TimeSpan untilNextSkip)
{
Bounties = bounties;
UntilNextSkip = untilNextSkip;
}
}
//TODO: inherit this from the base message
[Serializable, NetSerializable]
public sealed class PirateBountyAcceptMessage : BoundUserInterfaceMessage
{
public string BountyId;
public PirateBountyAcceptMessage(string bountyId)
{
BountyId = bountyId;
}
}
[Serializable, NetSerializable]
public sealed class PirateBountySkipMessage : BoundUserInterfaceMessage
{
public string BountyId;
public PirateBountySkipMessage(string bountyId)
{
BountyId = bountyId;
}
}