fCraft.FootballBehavior.HitPlayer C# (CSharp) Method

HitPlayer() public method

public HitPlayer ( World world, Vector3I pos, Player hitted, Player by, int &restDistance, IList updates ) : void
world World
pos Vector3I
hitted Player
by Player
restDistance int
updates IList
return void
        public void HitPlayer( World world, Vector3I pos, Player hitted, Player by, ref int restDistance, IList<BlockUpdate> updates )
        {
            //if it hits a player, move at Delay to the floor in front of the player
            for ( int z = pos.Z; z > 0; z-- ) {
                if ( world.Map.GetBlock( pos.X, pos.Y, z ) != Block.Air ) {
                }
            }
        }