private void Net_SendTileSquare(object sender, SendTileSquareEventArgs e)
        {
            if (this.isDisposed || !this.hooksEnabled || e.Handled)
            {
                return;
            }

            e.Handled = this.CircuitHandler.HandleSendTileSquare(e.Player, e.Location, e.Size);
        }
Exemple #2
0
        private static bool OnSendTileSquare(short size, int tilex, int tiley)
        {
            if (SendTileSquare == null)
                return false;

            var args = new SendTileSquareEventArgs
            {
                Size = size,
                TileX = tilex,
                TileY = tiley,
            };
            SendTileSquare.Invoke(null, args);
            return args.Handled;
        }