Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ IsSafeFromRain()

static bool Terraria.WorldGen.IsSafeFromRain ( int startX,
int startY )
inlinestatic

Definition at line 63049 of file WorldGen.cs.

63050 {
63051 //IL_0019: Unknown result type (might be due to invalid IL or missing references)
63052 //IL_001e: Unknown result type (might be due to invalid IL or missing references)
63053 //IL_0023: Unknown result type (might be due to invalid IL or missing references)
63054 //IL_0028: Unknown result type (might be due to invalid IL or missing references)
63055 //IL_0036: Unknown result type (might be due to invalid IL or missing references)
63056 //IL_003b: Unknown result type (might be due to invalid IL or missing references)
63057 //IL_0049: Unknown result type (might be due to invalid IL or missing references)
63058 //IL_004e: Unknown result type (might be due to invalid IL or missing references)
63059 //IL_0063: Unknown result type (might be due to invalid IL or missing references)
63060 //IL_0064: Unknown result type (might be due to invalid IL or missing references)
63061 //IL_006e: Unknown result type (might be due to invalid IL or missing references)
63062 //IL_0074: Unknown result type (might be due to invalid IL or missing references)
63063 //IL_0079: Unknown result type (might be due to invalid IL or missing references)
63064 Vector2D val = -Rain.GetRainFallVelocity().SafeNormalize(new Vector2(0f, 1f)).ToVector2D();
63065 Vector2D val2 = new Vector2D((double)startX, (double)startY) * 16.0 + Vector2D.One * 8.0;
63066 double num = 85.0;
63067 DelegateMethods.CheckResultOut = false;
63068 Utils.PlotTileLine(val2, val2 + val * 16.0 * num, 4.0, DelegateMethods.CheckStopForSolids);
63069 return DelegateMethods.CheckResultOut;
63070 }

References Terraria.DelegateMethods.CheckResultOut, Terraria.DelegateMethods.CheckStopForSolids(), Terraria.Rain.GetRainFallVelocity(), and Terraria.Utils.PlotTileLine().