示例#1
0
 public static void SendMessage(this Extension E, PlayerSendMessageEventArgs e)
 {
     E.Contractor.SendToServer(HMessage.Construct(Data.Default.HostSendMessage, e.PlayerID, e.Message));
 }
示例#2
0
 private void OnPlayerMessage(HMessage obj)
 {
     try
     {
         var args = new PlayerSendMessageEventArgs(obj);
         if (MPmChckBx.Checked)
             E.SendMessage(args);
     }
     catch (Exception error)
     {
         MessageBox.Show(error.ToString());
     }
 }