Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com> Co-authored-by: PJB3005 <pieterjan.briers+git@gmail.com>
25 lines
803 B
C#
25 lines
803 B
C#
using Content.Shared.Tag;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Shared.Weapons.Melee.Balloon;
|
|
|
|
/// <summary>
|
|
/// This is used for weapons that pop balloons on attack.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class BalloonPopperComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The tag that marks something as a balloon.
|
|
/// </summary>
|
|
[DataField("balloonTag", customTypeSerializer: typeof(PrototypeIdSerializer<TagPrototype>))]
|
|
public string BalloonTag = "Balloon";
|
|
|
|
/// <summary>
|
|
/// The sound played when a balloon is popped.
|
|
/// </summary>
|
|
[DataField("popSound")]
|
|
public SoundSpecifier PopSound = new SoundPathSpecifier("/Audio/Effects/balloon-pop.ogg");
|
|
}
|