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

◆ GetExpectedDirections()

static void Terraria.GameContent.MinecartDiggerHelper.GetExpectedDirections ( Point startCoords,
Point endCoords,
out int? expectedStartLeft,
out int? expectedStartRight,
out int? expectedEndLeft,
out int? expectedEndRight )
inlinestaticprivate

Definition at line 124 of file MinecartDiggerHelper.cs.

125 {
126 int num = endCoords.Y - startCoords.Y;
127 int num2 = endCoords.X - startCoords.X;
128 expectedStartLeft = null;
129 expectedStartRight = null;
130 expectedEndLeft = null;
131 expectedEndRight = null;
132 if (num2 == -1)
133 {
134 expectedStartLeft = num;
135 expectedEndRight = -num;
136 }
137 if (num2 == 1)
138 {
139 expectedStartRight = num;
140 expectedEndLeft = -num;
141 }
142 }

References Microsoft.Xna.Framework.Point.X, and Microsoft.Xna.Framework.Point.Y.

Referenced by Terraria.GameContent.MinecartDiggerHelper.AlreadyLeadsIntoWantedTrack(), and Terraria.GameContent.MinecartDiggerHelper.CorrectTrackConnections().