Esempio n. 1
0
        protected virtual void OnPlayerKickHost(PlayerKickHostEventArgs e)
        {
            EventHandler <PlayerKickHostEventArgs> handler = PlayerKickHost;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Esempio n. 2
0
        protected void RaiseOnPlayerKickHost(InterceptedEventArgs e)
        {
            if (PlayerKickHost != null)
            {
                var args = new PlayerKickHostEventArgs(e.Continuation, e.Step, e.Packet);
                OnPlayerKickHost(args);

                e.Cancel       = args.Cancel;
                e.WasContinued = args.WasContinued;
            }
        }
Esempio n. 3
0
 protected virtual void OnPlayerKickHost(PlayerKickHostEventArgs e)
 {
     EventHandler<PlayerKickHostEventArgs> handler = PlayerKickHost;
     if (handler != null) handler(this, e);
 }
Esempio n. 4
0
        protected void RaiseOnPlayerKickHost(InterceptedEventArgs e)
        {
            if (PlayerKickHost != null)
            {
                var args = new PlayerKickHostEventArgs(e.Continuation, e.Step, e.Packet);
                OnPlayerKickHost(args);

                e.Cancel = args.Cancel;
                e.WasContinued = args.WasContinued;
            }
        }