Terraria.DelegateMethods.TestDust C# (CSharp) Method

TestDust() public static method

public static TestDust ( int x, int y ) : bool
x int
y int
return bool
        public static bool TestDust(int x, int y)
        {
            if (x < 0 || x >= Main.maxTilesX || (y < 0 || y >= Main.maxTilesY))
                return false;
            int index = Dust.NewDust(new Vector2(x, y) * 16f + new Vector2(8f), 0, 0, 6, 0.0f, 0.0f, 0, new Color(), 1f);
            Main.dust[index].noGravity = true;
            Main.dust[index].noLight = true;
            return true;
        }