1
0

FollowedComponent.cs 531 B

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