Refactor ghost boo to ECS (#4511)

* Moved ghost boo to ecs

* Fixed small light exception

* No need to inject EM

* Moved cooldown and time to fields

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Alex Evgrashin
2021-08-31 11:33:55 +03:00
committed by GitHub
parent 4b4c8a41d7
commit 4c873e53f2
6 changed files with 82 additions and 69 deletions

View File

@@ -0,0 +1,9 @@
using Robust.Shared.GameObjects;
namespace Content.Server.Ghost
{
public class GhostBooEvent : HandledEntityEventArgs
{
}
}

View File

@@ -1,18 +0,0 @@
using Content.Shared.Actions.Behaviors;
namespace Content.Server.Ghost
{
/// <summary>
/// Allow ghost to interact with object by boo action
/// </summary>
public interface IGhostBooAffected
{
/// <summary>
/// Invokes when ghost used boo action near entity.
/// Use it to blink lights or make something spooky.
/// </summary>
/// <param name="args">Boo action details</param>
/// <returns>Returns true if object was affected</returns>
bool AffectedByGhostBoo(InstantActionEventArgs args);
}
}