Predict tile-prying (#21167)
This commit is contained in:
26
Content.Shared/Tools/Components/TilePryingComponent.cs
Normal file
26
Content.Shared/Tools/Components/TilePryingComponent.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Shared.Tools.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Allows prying tiles up on a grid.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
public sealed partial class TilePryingComponent : Component
|
||||
{
|
||||
[DataField("toolComponentNeeded"), AutoNetworkedField]
|
||||
public bool ToolComponentNeeded = true;
|
||||
|
||||
[DataField("qualityNeeded", customTypeSerializer:typeof(PrototypeIdSerializer<ToolQualityPrototype>)), AutoNetworkedField]
|
||||
public string QualityNeeded = "Prying";
|
||||
|
||||
/// <summary>
|
||||
/// Whether this tool can pry tiles with CanAxe.
|
||||
/// </summary>
|
||||
[DataField("advanced"), AutoNetworkedField]
|
||||
public bool Advanced = false;
|
||||
|
||||
[DataField("delay"), AutoNetworkedField]
|
||||
public float Delay = 1f;
|
||||
}
|
||||
Reference in New Issue
Block a user