Terraria.DelegateMethods.CastLightOpen C# (CSharp) Method

CastLightOpen() public static method

public static CastLightOpen ( int x, int y ) : bool
x int
y int
return bool
        public static bool CastLightOpen(int x, int y)
        {
            if (x < 0 || x >= Main.maxTilesX || (y < 0 || y >= Main.maxTilesY) || Main.tile[x, y] == null)
                return false;
            if (!Main.tile[x, y].active() || Main.tile[x, y].inActive() || (Main.tileSolidTop[Main.tile[x, y].type] || !Main.tileSolid[Main.tile[x, y].type]))
                Lighting.AddLight(x, y, v3_1.X, v3_1.Y, v3_1.Z);
            return true;
        }