public static void BlackOut()
{
int num1 = Main.screenWidth / 16 + Lighting.offScreenTiles * 2;
int num2 = Main.screenHeight / 16 + Lighting.offScreenTiles * 2;
for (int index1 = 0; index1 < num1; ++index1)
{
Lighting.LightingState[] lightingStateArray = Lighting.states[index1];
for (int index2 = 0; index2 < num2; ++index2)
{
Lighting.LightingState lightingState = lightingStateArray[index2];
lightingState.r = 0.0f;
lightingState.g = 0.0f;
lightingState.b = 0.0f;
}
}
}