Popup message notifications. (#125)
* Popup message system v1 * Networking for the popup notifications. Ship it.
This commit is contained in:
committed by
GitHub
parent
b0f212bad5
commit
f91488fa27
20
Content.Shared/Interfaces/ISharedNotifyManager.cs
Normal file
20
Content.Shared/Interfaces/ISharedNotifyManager.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using SS14.Shared.Interfaces.GameObjects;
|
||||
using SS14.Shared.IoC;
|
||||
using SS14.Shared.Map;
|
||||
|
||||
namespace Content.Shared.Interfaces
|
||||
{
|
||||
public interface ISharedNotifyManager
|
||||
{
|
||||
void PopupMessage(IEntity source, IEntity viewer, string message);
|
||||
void PopupMessage(GridLocalCoordinates coordinates, IEntity viewer, string message);
|
||||
}
|
||||
|
||||
public static class NotifyManagerExt
|
||||
{
|
||||
public static void PopupMessage(this IEntity source, IEntity viewer, string message)
|
||||
{
|
||||
IoCManager.Resolve<ISharedNotifyManager>().PopupMessage(source, viewer, message);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user