Files
OldThink/Content.Server/Wieldable/Components/WieldableComponent.cs

35 lines
1.0 KiB
C#
Raw Normal View History

2022-07-29 14:13:12 +12:00
using Robust.Shared.Audio;
namespace Content.Server.Wieldable.Components
{
/// <summary>
/// Used for objects that can be wielded in two or more hands,
/// </summary>
[RegisterComponent, Access(typeof(WieldableSystem))]
public sealed class WieldableComponent : Component
{
[DataField("wieldSound")]
public SoundSpecifier? WieldSound = new SoundPathSpecifier("/Audio/Effects/thudswoosh.ogg");
[DataField("unwieldSound")]
2022-08-11 18:53:35 -04:00
public SoundSpecifier? UnwieldSound;
/// <summary>
/// Number of free hands required (excluding the item itself) required
/// to wield it
/// </summary>
[DataField("freeHandsRequired")]
public int FreeHandsRequired = 1;
public bool Wielded = false;
2022-08-11 18:53:35 -04:00
[DataField("wieldedInhandPrefix")]
public string WieldedInhandPrefix = "wielded";
public string? OldInhandPrefix = null;
[DataField("wieldTime")]
public float WieldTime = 1.5f;
}
}