Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
46 lines
1.3 KiB
C#
46 lines
1.3 KiB
C#
using Content.Shared.Chemistry.Reagent;
|
|
using Content.Shared.FixedPoint;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Glue;
|
|
|
|
/// <summary>
|
|
/// This component indicates that an item is glue and can be used as such.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
[Access(typeof(GlueSystem))]
|
|
public sealed partial class GlueComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Noise made when glue applied.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public SoundSpecifier Squeeze = new SoundPathSpecifier("/Audio/Items/squeezebottle.ogg");
|
|
|
|
/// <summary>
|
|
/// Solution on the entity that contains the glue.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public string Solution = "drink";
|
|
|
|
/// <summary>
|
|
/// Reagent that will be used as glue.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public ProtoId<ReagentPrototype> Reagent = "SpaceGlue";
|
|
|
|
/// <summary>
|
|
/// Reagent consumption per use.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public FixedPoint2 ConsumptionUnit = FixedPoint2.New(5);
|
|
|
|
/// <summary>
|
|
/// Duration per unit
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public TimeSpan DurationPerUnit = TimeSpan.FromSeconds(6);
|
|
}
|