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

◆ TileMergeAttempt() [1/5]

static void Terraria.WorldGen.TileMergeAttempt ( int myType,
bool[] lookfor,
bool[] exclude,
ref int up,
ref int down,
ref int left,
ref int right,
ref int upLeft,
ref int upRight,
ref int downLeft,
ref int downRight )
inlinestatic

Definition at line 71287 of file WorldGen.cs.

71288 {
71289 if (up > -1 && !exclude[up] && lookfor[up])
71290 {
71291 up = myType;
71292 }
71293 if (down > -1 && !exclude[down] && lookfor[down])
71294 {
71295 down = myType;
71296 }
71297 if (left > -1 && !exclude[left] && lookfor[left])
71298 {
71299 left = myType;
71300 }
71301 if (right > -1 && !exclude[right] && lookfor[right])
71302 {
71303 right = myType;
71304 }
71305 if (upLeft > -1 && !exclude[upLeft] && lookfor[upLeft])
71306 {
71307 upLeft = myType;
71308 }
71309 if (upRight > -1 && !exclude[upRight] && lookfor[upRight])
71310 {
71311 upRight = myType;
71312 }
71313 if (downLeft > -1 && !exclude[downLeft] && lookfor[downLeft])
71314 {
71315 downLeft = myType;
71316 }
71317 if (downRight > -1 && !exclude[downRight] && lookfor[downRight])
71318 {
71319 downRight = myType;
71320 }
71321 }