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:
9
Content.Server/Ghost/GhostBooEvent.cs
Normal file
9
Content.Server/Ghost/GhostBooEvent.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Server.Ghost
|
||||
{
|
||||
public class GhostBooEvent : HandledEntityEventArgs
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user