Files
wwdpublic/Content.Shared/Follower/Components/FollowedComponent.cs
metalgearsloth c5fa970c58 Make followed session-specific (#30770)
* Make followed session-specific

* misimport

(cherry picked from commit 9be61bfaa5a4bee1ca4f3d5e5c40a69d66e4cc2a)
2025-07-20 15:08:31 +10:00

18 lines
531 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Follower.Components;
// TODO properly network this and followercomp.
/// <summary>
/// Attached to entities that are currently being followed by a ghost.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(FollowerSystem))]
public sealed partial class FollowedComponent : Component
{
public override bool SessionSpecific => true;
[DataField, AutoNetworkedField]
public HashSet<EntityUid> Following = new();
}