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

◆ TileMergeAttempt() [3/5]

static void Terraria.WorldGen.TileMergeAttempt ( int myType,
bool[] lookfor,
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 71251 of file WorldGen.cs.

71252 {
71253 if (up > -1 && lookfor[up])
71254 {
71255 up = myType;
71256 }
71257 if (down > -1 && lookfor[down])
71258 {
71259 down = myType;
71260 }
71261 if (left > -1 && lookfor[left])
71262 {
71263 left = myType;
71264 }
71265 if (right > -1 && lookfor[right])
71266 {
71267 right = myType;
71268 }
71269 if (upLeft > -1 && lookfor[upLeft])
71270 {
71271 upLeft = myType;
71272 }
71273 if (upRight > -1 && lookfor[upRight])
71274 {
71275 upRight = myType;
71276 }
71277 if (downLeft > -1 && lookfor[downLeft])
71278 {
71279 downLeft = myType;
71280 }
71281 if (downRight > -1 && lookfor[downRight])
71282 {
71283 downRight = myType;
71284 }
71285 }