2022-02-19 16:55:29 -07:00
|
|
|
using Robust.Shared.GameStates;
|
2022-01-09 22:47:37 -07:00
|
|
|
|
|
|
|
|
namespace Content.Shared.Follower.Components;
|
|
|
|
|
|
2022-02-19 16:55:29 -07:00
|
|
|
// TODO properly network this and followercomp.
|
2022-01-09 22:47:37 -07:00
|
|
|
/// <summary>
|
|
|
|
|
/// Attached to entities that are currently being followed by a ghost.
|
|
|
|
|
/// </summary>
|
2023-09-28 16:20:29 -07:00
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
|
|
|
[Access(typeof(FollowerSystem))]
|
2023-04-23 20:01:15 +10:00
|
|
|
public sealed partial class FollowedComponent : Component
|
2022-01-09 22:47:37 -07:00
|
|
|
{
|
2024-08-11 12:26:32 +10:00
|
|
|
public override bool SessionSpecific => true;
|
|
|
|
|
|
2023-09-28 16:20:29 -07:00
|
|
|
[DataField, AutoNetworkedField]
|
2022-01-09 22:47:37 -07:00
|
|
|
public HashSet<EntityUid> Following = new();
|
|
|
|
|
}
|