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

◆ EstablishUpDownRelationship()

void Terraria.GameContent.UI.States.UIWorldCreation.EstablishUpDownRelationship ( UILinkPoint[] topSide,
UILinkPoint[] bottomSide )
inlineprivate

Definition at line 995 of file UIWorldCreation.cs.

996 {
997 int num = Math.Max(topSide.Length, bottomSide.Length);
998 for (int i = 0; i < num; i++)
999 {
1000 int num2 = Math.Min(i, topSide.Length - 1);
1001 int num3 = Math.Min(i, bottomSide.Length - 1);
1002 topSide[num2].Down = bottomSide[num3].ID;
1003 bottomSide[num3].Up = topSide[num2].ID;
1004 }
1005 }
static byte Min(byte val1, byte val2)
Definition Math.cs:912
static byte Max(byte val1, byte val2)
Definition Math.cs:738

References System.Math.Max(), and System.Math.Min().

Referenced by Terraria.GameContent.UI.States.UIWorldCreation.SetupGamepadPoints().