* good commit * Revert "good commit" This reverts commit 2559a9ad8b642827446e151adc90057d667be60d. * EVEN BETTER PR * even more better
54 lines
1.5 KiB
C#
54 lines
1.5 KiB
C#
using Robust.Shared.Serialization;
|
|
using Robust.Shared.Audio;
|
|
|
|
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]
|
|
public partial struct StampDisplayInfo
|
|
{
|
|
StampDisplayInfo(string s)
|
|
{
|
|
StampedName = s;
|
|
}
|
|
|
|
[DataField("stampedName")]
|
|
public string StampedName;
|
|
|
|
[DataField("stampedColor")]
|
|
public Color StampedColor;
|
|
};
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class StampComponent : Component
|
|
{
|
|
/// <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";
|
|
|
|
/// <summary>
|
|
/// Tne sprite state of the stamp to display on the paper from paper Sprite path.
|
|
/// </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
|
|
|
|
/// <summary>
|
|
/// The sound when stamp stamped
|
|
/// </summary>
|
|
[DataField("sound")]
|
|
public SoundSpecifier? Sound = null;
|
|
}
|