Example #1
0
 public static void Sign(this Extension E, PlayerSignEventArgs e)
 {
     E.Contractor.SendToServer(HMessage.Construct(Data.Default.HostSign, (int)e.Sign));
 }
Example #2
0
 private void OnPlayerSign(HMessage obj)
 {
     try
     {
         PlayerSignEventArgs args = new PlayerSignEventArgs(obj);
         if (MSignChckbx.Checked)
             if (CurPlayer.PlayerIndex == args.PlayerIndex)
                 E.Sign(args);
     }
     catch (Exception error)
     {
         MessageBox.Show(error.ToString());
     }
 }