Inheritance: System.EventArgs
Exemplo n.º 1
0
        public static void PointUse(EPRPlayer player, int amount, PointUsage reason)
        {
            PointUseArgs e = new PointUseArgs();

            e.Handled = false;
            e.Player  = player;
            e.Amount  = amount;
            e.Reason  = reason;
            if (OnPointUse != null)
            {
                OnPointUse(e);
            }
        }
Exemplo n.º 2
0
 public void OnPointUse(PointUseArgs e)
 {
     if (!e.Handled)
     {
         string[] EPRLog = new string[1];
         EPRLog[0] = string.Format("{0}: {1} used by {2} Reason: {3} Amount: {4}", DateTime.Now.ToString(), currname, e.Player.Username, e.Reason, e.Amount);
         File.AppendAllLines(EPRLogSavePath, EPRLog);
         EPREvents.PointOperate(e.Player, -e.Amount,PointOperateReason.PlayerUse);
         e.Handled = true;
     }
 }
Exemplo n.º 3
0
 public static void PointUse(EPRPlayer player, int amount, PointUsage reason)
 {
     PointUseArgs e = new PointUseArgs();
     e.Handled = false;
     e.Player = player;
     e.Amount = amount;
     e.Reason = reason;
     if (OnPointUse != null)
         OnPointUse(e);
 }