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

◆ IsGoodPortAddress()

static bool Terraria.Main.IsGoodPortAddress ( string text)
inlinestaticprivate

Definition at line 48971 of file Main.cs.

48972 {
48973 if (string.IsNullOrWhiteSpace(text))
48974 {
48975 return false;
48976 }
48977 ushort result = 0;
48978 if (!ushort.TryParse(text, out result))
48979 {
48980 return false;
48981 }
48982 return true;
48983 }

References System.text.

Referenced by Terraria.Main.DrawMenu().