Follower fixes (#15348)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -4,8 +4,9 @@ namespace Content.Shared.Follower.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Access(typeof(FollowerSystem))]
|
||||
[NetworkedComponent]
|
||||
public sealed class FollowerComponent : Component
|
||||
[NetworkedComponent, AutoGenerateComponentState]
|
||||
public sealed partial class FollowerComponent : Component
|
||||
{
|
||||
[AutoNetworkedField, DataField("following")]
|
||||
public EntityUid Following;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user