Add notify debug command.

This commit is contained in:
Pieter-Jan Briers
2019-03-21 18:03:05 +01:00
parent 45b803ce41
commit 4ba8848383

View File

@@ -1,3 +1,4 @@
using Content.Client.Interfaces;
using Content.Shared.GameObjects.Components.Markers; using Content.Shared.GameObjects.Components.Markers;
using SS14.Client.Interfaces.Console; using SS14.Client.Interfaces.Console;
using SS14.Client.Interfaces.GameObjects.Components; using SS14.Client.Interfaces.GameObjects.Components;
@@ -36,4 +37,21 @@ namespace Content.Client.Commands
return false; return false;
} }
} }
internal sealed class NotifyCommand : IConsoleCommand
{
public string Command => "notify";
public string Description => "Send a notify client side.";
public string Help => "notify <message>";
public bool Execute(IDebugConsole console, params string[] args)
{
var message = args[0];
var notifyManager = IoCManager.Resolve<IClientNotifyManager>();
notifyManager.PopupMessage(message);
return false;
}
}
} }