fish-station/Content.Shared/Follower/Components/FollowerComponent.cs
2024-10-03 03:06:21 +03:00

20 lines
688 B
C#

using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Shared.Follower.Components;
[RegisterComponent]
[Access(typeof(FollowerSystem))]
[NetworkedComponent, AutoGenerateComponentState]
public sealed partial class FollowerComponent : Component
{
[AutoNetworkedField, DataField("following")]
public EntityUid Following;
[DataField("stopFollowAction", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string StopFollowAction = "StopFollowAction";
[DataField, AutoNetworkedField]
public EntityUid? StopFollowActionEntity;
}