Fix follower recursion
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
using Robust.Shared.Analyzers;
|
||||
using Robust.Shared.GameObjects;
|
||||
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, Friend(typeof(FollowerSystem))]
|
||||
[NetworkedComponent]
|
||||
public sealed class FollowedComponent : Component
|
||||
{
|
||||
public HashSet<EntityUid> Following = new();
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
using Robust.Shared.Analyzers;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared.Follower.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(FollowerSystem))]
|
||||
[NetworkedComponent]
|
||||
public sealed class FollowerComponent : Component
|
||||
{
|
||||
public EntityUid Following;
|
||||
|
||||
Reference in New Issue
Block a user