2023-08-13 19:28:10 +01:00
|
|
|
using Robust.Shared.Serialization;
|
2023-07-07 05:53:38 +03:00
|
|
|
using Robust.Shared.Audio;
|
|
|
|
|
|
2023-08-13 19:28:10 +01:00
|
|
|
namespace Content.Shared.Paper;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Set of required information to draw a stamp in UIs, where
|
|
|
|
|
/// representing the state of the stamp at the point in time
|
|
|
|
|
/// when it was applied to a paper. These fields mirror the
|
|
|
|
|
/// equivalent in the component.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataDefinition, Serializable, NetSerializable]
|
2023-08-22 18:14:33 -07:00
|
|
|
public partial struct StampDisplayInfo
|
2022-04-08 17:37:22 -06:00
|
|
|
{
|
2023-08-13 19:28:10 +01:00
|
|
|
StampDisplayInfo(string s)
|
2022-04-08 17:37:22 -06:00
|
|
|
{
|
2023-08-13 19:28:10 +01:00
|
|
|
StampedName = s;
|
2022-04-08 17:37:22 -06:00
|
|
|
}
|
2023-08-13 19:28:10 +01:00
|
|
|
|
|
|
|
|
[DataField("stampedName")]
|
|
|
|
|
public string StampedName;
|
|
|
|
|
|
|
|
|
|
[DataField("stampedColor")]
|
|
|
|
|
public Color StampedColor;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class StampComponent : Component
|
2023-08-13 19:28:10 +01:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The loc string name that will be stamped to the piece of paper on examine.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("stampedName")]
|
|
|
|
|
public string StampedName { get; set; } = "stamp-component-stamped-name-default";
|
2023-12-27 23:46:30 +01:00
|
|
|
|
2023-08-13 19:28:10 +01:00
|
|
|
/// <summary>
|
2024-06-19 18:15:26 +02:00
|
|
|
/// The sprite state of the stamp to display on the paper from paper Sprite path.
|
2023-08-13 19:28:10 +01:00
|
|
|
/// </summary>
|
|
|
|
|
[DataField("stampState")]
|
|
|
|
|
public string StampState { get; set; } = "paper_stamp-generic";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The color of the ink used by the stamp in UIs
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("stampedColor")]
|
|
|
|
|
public Color StampedColor = Color.FromHex("#BB3232"); // StyleNano.DangerousRedFore
|
|
|
|
|
|
2023-12-27 23:46:30 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// The sound when stamp stamped
|
|
|
|
|
/// </summary>
|
2023-08-13 19:28:10 +01:00
|
|
|
[DataField("sound")]
|
2023-12-31 00:15:02 +01:00
|
|
|
public SoundSpecifier? Sound = null;
|
2022-04-08 17:37:22 -06:00
|
|
|
}
|