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

◆ GetRailConnectIDFromCmdLine()

bool Terraria.Social.WeGame.NetClientSocialModule.GetRailConnectIDFromCmdLine ( RailID server_id)
inlineprivate

Definition at line 158 of file NetClientSocialModule.cs.

159 {
161 foreach (string text in commandLineArgs)
162 {
163 string text2 = "--rail_connect_cmd=";
164 int num = text.IndexOf(text2);
165 if (num != -1)
166 {
167 ulong result = 0uL;
168 if (ulong.TryParse(text.Substring(num + text2.Length), out result))
169 {
170 ((RailComparableID)server_id).id_ = result;
171 return true;
172 }
173 }
174 }
175 return false;
176 }
static string[] GetCommandLineArgs()

References System.Environment.GetCommandLineArgs(), and System.text.

Referenced by Terraria.Social.WeGame.NetClientSocialModule.CheckParameters().