mud diagnostics and user info

This commit is contained in:
Michael 2017-03-09 10:33:44 -05:00
parent 02fd7a883b
commit ea430ac9df

View file

@ -354,6 +354,35 @@ end");
}
}
[Exposed("mud")]
public class MUDFunctions
{
public void sendDiagnostic(string src, string cat, object val)
{
ServerManager.SendMessage("diag_log", $"[{src}] <{cat}>: {val}");
}
}
[Exposed("userinfo")]
public class UserInfoFunctions
{
public string getUsername()
{
return SaveSystem.CurrentSave.Username;
}
public string getSysname()
{
return SaveSystem.CurrentSave.SystemName;
}
public string getEmail()
{
return getUsername() + "@" + getSysname();
}
}
[Exposed("infobox")]
public class InfoboxFunctions
{