예제 #1
0
파일: Engine.cs 프로젝트: danenespoli/delve
 public static bool GetDrillMiningValidityOfBlocksIfYouBoughtTheRightDrill(Drill thisIsTheDrillThatThePlayerHas, Block thisIsTheBlockThatThePlayerIsCurrentlyAttemptingToRemoveFromTheWorldExceptTheyMightNotHaveTheRightDrill)
 {
     foreach (var thisIsOneOfTheBlockOptionsInTheListOfValidBlocksInTheDrill in thisIsTheDrillThatThePlayerHas.mineableBlocks) {
        if (thisIsTheBlockThatThePlayerIsCurrentlyAttemptingToRemoveFromTheWorldExceptTheyMightNotHaveTheRightDrill.GetType() == thisIsOneOfTheBlockOptionsInTheListOfValidBlocksInTheDrill)
        {
            return true;
        }
        }
        return false;
 }
예제 #2
0
 public static bool GetDrillMiningValidityOfBlocksIfYouBoughtTheRightDrill(Drill thisIsTheDrillThatThePlayerHas, Block thisIsTheBlockThatThePlayerIsCurrentlyAttemptingToRemoveFromTheWorldExceptTheyMightNotHaveTheRightDrill)
 {
     foreach (var thisIsOneOfTheBlockOptionsInTheListOfValidBlocksInTheDrill in thisIsTheDrillThatThePlayerHas.mineableBlocks)
     {
         if (thisIsTheBlockThatThePlayerIsCurrentlyAttemptingToRemoveFromTheWorldExceptTheyMightNotHaveTheRightDrill.GetType() == thisIsOneOfTheBlockOptionsInTheListOfValidBlocksInTheDrill)
         {
             return(true);
         }
     }
     return(false);
 }