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

◆ TileMergeAttemptFrametest() [1/2]

static void Terraria.WorldGen.TileMergeAttemptFrametest ( int i,
int j,
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 71123 of file WorldGen.cs.

71124 {
71125 if (up > -1 && lookfor[up])
71126 {
71127 TileFrame(i, j - 1);
71128 if (mergeDown)
71129 {
71130 up = myType;
71131 }
71132 }
71133 if (down > -1 && lookfor[down])
71134 {
71135 TileFrame(i, j + 1);
71136 if (mergeUp)
71137 {
71138 down = myType;
71139 }
71140 }
71141 if (left > -1 && lookfor[left])
71142 {
71143 TileFrame(i - 1, j);
71144 if (mergeRight)
71145 {
71146 left = myType;
71147 }
71148 }
71149 if (right > -1 && lookfor[right])
71150 {
71151 TileFrame(i + 1, j);
71152 if (mergeLeft)
71153 {
71154 right = myType;
71155 }
71156 }
71157 if (upLeft > -1 && lookfor[upLeft])
71158 {
71159 upLeft = myType;
71160 }
71161 if (upRight > -1 && lookfor[upRight])
71162 {
71163 upRight = myType;
71164 }
71165 if (downLeft > -1 && lookfor[downLeft])
71166 {
71167 downLeft = myType;
71168 }
71169 if (downRight > -1 && lookfor[downRight])
71170 {
71171 downRight = myType;
71172 }
71173 }
static bool mergeRight
Definition WorldGen.cs:1002
static void TileFrame(int i, int j, bool resetFrame=false, bool noBreak=false)
static bool mergeUp
Definition WorldGen.cs:996
static bool mergeDown
Definition WorldGen.cs:998
static bool mergeLeft
Definition WorldGen.cs:1000