18 lines
343 B
C#
18 lines
343 B
C#
|
|
namespace Needle.Engine.Server
|
|
{
|
|
public static class Actions
|
|
{
|
|
public static bool IsConnected => Connection.Instance.IsConnected;
|
|
|
|
public static bool RequestSoftServerRestart()
|
|
{
|
|
if (Connection.Instance.IsConnected)
|
|
{
|
|
Connection.Instance.SendRaw("needle:editor:restart");
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
} |