Terraria.ModLoader.PlayerHooks.CatchFish C# (CSharp) 메소드

CatchFish() 공개 정적인 메소드

public static CatchFish ( Player player, System.Item fishingRod, int power, int liquidType, int poolSize, int worldLayer, int questFish, int &caughtType, bool &junk ) : void
player Player
fishingRod System.Item
power int
liquidType int
poolSize int
worldLayer int
questFish int
caughtType int
junk bool
리턴 void
        public static void CatchFish(Player player, Item fishingRod, int power, int liquidType, int poolSize, int worldLayer, int questFish, ref int caughtType, ref bool junk)
        {
            int i = 0;
            while (i < 58)
            {
                if (player.inventory[i].stack > 0 && player.inventory[i].bait > 0)
                {
                    break;
                }
                i++;
            }
            foreach (ModPlayer modPlayer in player.modPlayers)
            {
                modPlayer.CatchFish(fishingRod, player.inventory[i], power, liquidType, poolSize, worldLayer, questFish, ref caughtType, ref junk);
            }
        }