Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
TileMergeAttemptFrametest()
[2/2]
static
void
Terraria.WorldGen.TileMergeAttemptFrametest
(
int
i
,
int
j
,
int
myType
,
int
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
)
inline
static
Definition at line
71071
of file
WorldGen.cs
.
71072
{
71073
if
(up ==
lookfor
)
71074
{
71075
TileFrame
(i,
j
- 1);
71076
if
(
mergeDown
)
71077
{
71078
up =
myType
;
71079
}
71080
}
71081
if
(down ==
lookfor
)
71082
{
71083
TileFrame
(i,
j
+ 1);
71084
if
(
mergeUp
)
71085
{
71086
down =
myType
;
71087
}
71088
}
71089
if
(left ==
lookfor
)
71090
{
71091
TileFrame
(i - 1,
j
);
71092
if
(
mergeRight
)
71093
{
71094
left =
myType
;
71095
}
71096
}
71097
if
(right ==
lookfor
)
71098
{
71099
TileFrame
(i + 1,
j
);
71100
if
(
mergeLeft
)
71101
{
71102
right =
myType
;
71103
}
71104
}
71105
if
(
upLeft
==
lookfor
)
71106
{
71107
upLeft
=
myType
;
71108
}
71109
if
(
upRight
==
lookfor
)
71110
{
71111
upRight
=
myType
;
71112
}
71113
if
(
downLeft
==
lookfor
)
71114
{
71115
downLeft
=
myType
;
71116
}
71117
if
(
downRight
==
lookfor
)
71118
{
71119
downRight
=
myType
;
71120
}
71121
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
Terraria.WorldGen.mergeRight
static bool mergeRight
Definition
WorldGen.cs:1002
Terraria.WorldGen.TileFrame
static void TileFrame(int i, int j, bool resetFrame=false, bool noBreak=false)
Definition
WorldGen.cs:71431
Terraria.WorldGen.mergeUp
static bool mergeUp
Definition
WorldGen.cs:996
Terraria.WorldGen.mergeDown
static bool mergeDown
Definition
WorldGen.cs:998
Terraria.WorldGen.mergeLeft
static bool mergeLeft
Definition
WorldGen.cs:1000
Terraria
WorldGen
Generated by
1.10.0