Exemplo n.º 1
0
        protected virtual void OnPlayerUpdate(PlayerUpdateEventArgs e)
        {
            EventHandler <PlayerUpdateEventArgs> handler = PlayerUpdate;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 2
0
        protected void RaiseOnPlayerUpdate(InterceptedEventArgs e)
        {
            if (PlayerUpdate != null)
            {
                var args = new PlayerUpdateEventArgs(e.Continuation, e.Step, e.Packet);
                OnPlayerUpdate(args);

                e.Cancel       = args.Cancel;
                e.WasContinued = args.WasContinued;
            }
        }
Exemplo n.º 3
0
 protected virtual void OnPlayerUpdate(PlayerUpdateEventArgs e)
 {
     EventHandler<PlayerUpdateEventArgs> handler = PlayerUpdate;
     if (handler != null) handler(this, e);
 }
Exemplo n.º 4
0
        protected void RaiseOnPlayerUpdate(InterceptedEventArgs e)
        {
            if (PlayerUpdate != null)
            {
                var args = new PlayerUpdateEventArgs(e.Continuation, e.Step, e.Packet);
                OnPlayerUpdate(args);

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