Follower fixes (#15348)

This commit is contained in:
metalgearsloth
2023-04-23 20:01:15 +10:00
committed by GitHub
parent 06d99b4cb7
commit 7e886dc95a
5 changed files with 36 additions and 11 deletions

View File

@@ -7,8 +7,9 @@ namespace Content.Shared.Follower.Components;
/// Attached to entities that are currently being followed by a ghost.
/// </summary>
[RegisterComponent, Access(typeof(FollowerSystem))]
[NetworkedComponent]
public sealed class FollowedComponent : Component
[NetworkedComponent, AutoGenerateComponentState]
public sealed partial class FollowedComponent : Component
{
[AutoNetworkedField(true), DataField("following")]
public HashSet<EntityUid> Following = new();
}