Follow verb for ghosts (#6016)

* Follow verb for ghosts

* oop

* Use parenting instead

* Update Content.Shared/Follower/FollowerSystem.cs

Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>

* mfw

* parent fixes

* figs

* oop

* porbis

Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
This commit is contained in:
mirrorcult
2022-01-09 22:47:37 -07:00
committed by GitHub
parent b46c1d4779
commit 74457787c2
4 changed files with 132 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
using System.Collections.Generic;
using Robust.Shared.Analyzers;
using Robust.Shared.GameObjects;
namespace Content.Shared.Follower.Components;
/// <summary>
/// Attached to entities that are currently being followed by a ghost.
/// </summary>
[RegisterComponent, ComponentProtoName("Followed"), Friend(typeof(FollowerSystem))]
public class FollowedComponent : Component
{
public HashSet<EntityUid> Following = new();
}

View File

@@ -0,0 +1,11 @@
using Robust.Shared.Analyzers;
using Robust.Shared.GameObjects;
namespace Content.Shared.Follower.Components;
[RegisterComponent, ComponentProtoName("Follower")]
[Friend(typeof(FollowerSystem))]
public class FollowerComponent : Component
{
public EntityUid Following;
}