15 public Block(
double x,
double y)
74 if (num == -1 || num ==
index)
89 int num =
Width / 2 - 1;
91 int num3 = (num + 1) * (num + 1);
93 for (
int i = point.
Y -
num2; i <= point.Y +
num2; i++)
95 double num4 = (double)num / (
double)
num2 * (double)(i - point.
Y);
103 for (
int k = 0;
k <
array.GetLength(0);
k++)
105 for (
int l = 0;
l <
array.GetLength(1);
l++)
119 for (
int m = 0;
m <
array2.GetLength(0);
m++)
121 for (
int n = 0;
n <
array2.GetLength(1);
n++)
148 if (x <
array2.GetLength(0) - 1)
156 if (y <
array2.GetLength(1) - 1)
216 hive.Inflate(20, 20);
219 for (
int i =
hive.Left; i <
hive.Right; i++)
266 for (
int i =
area.Left; i <
area.Right; i++)
343 tile.
lava(lava:
true);
345 if (!flag || tile.
active())
351 else if (
num7 > 0.7 || !flag)
358 if (!flag || tile.
active())
364 else if (
num7 > 0.25)
380 tile.
lava(lava:
true);
408 for (
int i = -20; i < description.Hive.Width + 20; i++)
410 for (
int j = -20;
j < description.Hive.Height + 20;
j++)
412 int num = i + description.
Hive.
X;
426 for (
int k = -20;
k < description.Hive.Width + 20;
k++)
428 for (
int l = -20;
l < description.Hive.Height + 20;
l++)
451 for (
int m = 1;
m <= 3;
m++)
void Add(TKey key, TValue value)
static byte Min(byte val1, byte val2)
static double Sqrt(double d)
static double Abs(double value)
static void SearchForCluster(bool[,] blockMap, List< Point > pointCluster, int x, int y, int level=2)
ClusterGroup(int width, int height)
static ClusterGroup FromDescription(DesertDescription description)
static void AttemptClaim(int x, int y, int[,] clusterIndexMap, List< List< Point > > pointClusters, int index)
static void Place(DesertDescription description)
static void PlaceClustersArea(DesertDescription description, ClusterGroup clusters, Rectangle area, PostPlacementEffect[,] postEffectMap, Point postEffectMapOffset)
static void PlaceClusters(DesertDescription description, ClusterGroup clusters)
static void AddTileVariance(DesertDescription description)
static WorldFileData ActiveWorldFileData
static double worldSurface
static void SmoothSlope(int x, int y, bool applyToNeighbors=true, bool sync=false)
void ResetToType(ushort type)
static bool remixWorldGen
static bool SolidTile(Tile testTile)
static bool PlaceTile(int i, int j, int Type, bool mute=false, bool forced=false, int plr=-1, int style=0)
static UnifiedRandom genRand
static void UpdateDesertHiveBounds(int x, int y)
static bool InWorld(int x, int y, int fluff=0)
static double DistanceSquared(Vector2D value1, Vector2D value2)
Block(double x, double y)
FastRandom WithModifier(ulong modifier)