fCraft.FootballBehavior.VisitBlock C# (CSharp) Method

VisitBlock() public method

public VisitBlock ( World world, Vector3I pos, Block block, Player owner, int &restDistance, IList updates, Block sending ) : bool
world World
pos Vector3I
block Block
owner Player
restDistance int
updates IList
sending Block
return bool
        public bool VisitBlock( World world, Vector3I pos, Block block, Player owner, ref int restDistance, IList<BlockUpdate> updates, Block sending )
        {
            //add some bounce and stuff in here
            if ( Block.Air != block && Block.Water != block ) //explode it
            {
                restDistance = 0;
                return false;
            }
            return true;
        }