Terraria.ModLoader.ModProjectile.SingleGrappleHook C# (CSharp) Method

SingleGrappleHook() public method

public SingleGrappleHook ( Player player ) : bool?
player Terraria.Player
return bool?
        public virtual bool? SingleGrappleHook(Player player)
        {
            return null;
        }

Usage Example

Ejemplo n.º 1
0
        public static bool?SingleGrappleHook(int type, Player player)
        {
            bool?         flag          = null;
            ModProjectile modProjectile = GetProjectile(type);

            if (modProjectile != null)
            {
                flag = modProjectile.SingleGrappleHook(player);
            }
            foreach (GlobalProjectile globalProjectile in globalProjectiles)
            {
                bool?singleHook = globalProjectile.SingleGrappleHook(type, player);
                if (singleHook.HasValue)
                {
                    flag = singleHook;
                }
            }
            return(flag);
        }