Definition at line 101 of file Shapes.cs.
102 {
105 for (
int i = origin.
Y - (
int)(num *
_yScale);
i <= origin.
Y;
i++)
106 {
107 double num3 = (double)(i - origin.
Y) /
_yScale;
109 for (
int j = origin.
X - num4; j <= origin.X + num4; j++)
110 {
112 {
113 return false;
114 }
115 }
116 }
117 for (
int k = origin.
Y + 1; k <= origin.Y + (int)(num *
_yScale * 0.5) - 1; k++)
118 {
119 double num5 = (double)(k - origin.
Y) * (2.0 /
_yScale);
121 for (
int l = origin.
X - num6; l <= origin.X + num6; l++)
122 {
124 {
125 return false;
126 }
127 }
128 }
129 return true;
130 }
static byte Min(byte val1, byte val2)
static double Sqrt(double d)
bool UnitApply(GenAction action, Point origin, int x, int y, params object[] args)
References Terraria.WorldBuilding.GenShape._quitOnFail, Terraria.WorldBuilding.Shapes.Slime._radius, Terraria.WorldBuilding.Shapes.Slime._xScale, Terraria.WorldBuilding.Shapes.Slime._yScale, System.action, System.Math.Min(), System.Math.Sqrt(), Terraria.WorldBuilding.GenShape.UnitApply(), Microsoft.Xna.Framework.Point.X, and Microsoft.Xna.Framework.Point.Y.