using Content.Shared.Conveyor;
using Content.Shared.MachineLinking;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Conveyor
{
[RegisterComponent]
[Friend(typeof(ConveyorSystem))]
public sealed class ConveyorComponent : Component
{
///
/// The angle to move entities by in relation to the owner's rotation.
///
[ViewVariables(VVAccess.ReadWrite)]
[DataField("angle")]
public Angle Angle = Angle.Zero;
///
/// The amount of units to move the entity by per second.
///
[ViewVariables(VVAccess.ReadWrite)]
[DataField("speed")]
public float Speed = 2f;
///
/// The current state of this conveyor
///
[ViewVariables(VVAccess.ReadWrite)]
public ConveyorState State;
[DataField("forwardPort", customTypeSerializer: typeof(PrototypeIdSerializer))]
public string ForwardPort = "Forward";
[DataField("reversePort", customTypeSerializer: typeof(PrototypeIdSerializer))]
public string ReversePort = "Reverse";
[DataField("offPort", customTypeSerializer: typeof(PrototypeIdSerializer))]
public string OffPort = "Off";
}
}