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

◆ PlaceClusters()

static void Terraria.GameContent.Biomes.Desert.DesertHive.PlaceClusters ( DesertDescription description,
ClusterGroup clusters )
inlinestaticprivate

Definition at line 213 of file DesertHive.cs.

214 {
215 Rectangle hive = description.Hive;
216 hive.Inflate(20, 20);
217 PostPlacementEffect[,] array = new PostPlacementEffect[hive.Width, hive.Height];
219 for (int i = hive.Left; i < hive.Right; i++)
220 {
221 for (int j = hive.Top; j < hive.Bottom; j++)
222 {
224 if (postPlacementEffect.HasFlag(PostPlacementEffect.Smooth))
225 {
226 Tile.SmoothSlope(i, j, applyToNeighbors: false);
227 }
228 }
229 }
230 }
static void PlaceClustersArea(DesertDescription description, ClusterGroup clusters, Rectangle area, PostPlacementEffect[,] postEffectMap, Point postEffectMapOffset)

References System.array, Terraria.GameContent.Biomes.Desert.DesertDescription.Hive, Terraria.GameContent.Biomes.Desert.DesertHive.PlaceClustersArea(), Terraria.Tile.SmoothSlope(), and Microsoft.Xna.Framework.Point.Zero.

Referenced by Terraria.GameContent.Biomes.Desert.DesertHive.Place().