using SS14.Shared.GameObjects; using SS14.Shared.Utility; using YamlDotNet.RepresentationModel; namespace Content.Server.GameObjects.Components.Interactable.Tools { public abstract class ToolComponent : Component { /// /// For tool interactions that have a delay before action this will modify the rate, time to wait is divided by this value /// public float SpeedModifier { get; set; } = 1; public override void LoadParameters(YamlMappingNode mapping) { if (mapping.TryGetNode("Speed", out YamlNode node)) { SpeedModifier = node.AsFloat(); } } /// /// Status modifier which determines whether or not we can act as a tool at this time /// /// public virtual bool CanUse() { return true; } } }