コード例 #1
0
 /// <summary>
 /// Send a console log message to the target NetworkUser.
 /// </summary>
 /// <param name="user">The NetworkUser to send a console message to.</param>
 /// <param name="msg">The content of the sent message.</param>
 /// <param name="severity">The severity of the sent message.</param>
 public static void SendConMsg(NetworkUser user, string msg, LogLevel severity = LogLevel.Message)
 {
     if (user == null || user.hasAuthority)
     {
         ConMsg(msg, severity);
     }
     else
     {
         NetConfig.EnsureOrchestrator();
         instance.TargetConMsg(user.connectionToClient, msg, (int)severity);
     }
 }
コード例 #2
0
 public static void ServerSendGlobalChatMsg(string msg)
 {
     NetConfig.EnsureOrchestrator();
     instance.RpcGlobalChatMsg(msg);
 }