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

◆ Initialize()

void Terraria.Social.WeGame.CoreSocialModule.Initialize ( )
inline

Implements Terraria.Social.ISocialModule.

Definition at line 23 of file CoreSocialModule.cs.

24 {
25 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
26 //IL_0006: Expected O, but got Unknown
27 //IL_005d: Unknown result type (might be due to invalid IL or missing references)
28 //IL_0067: Expected O, but got Unknown
29 RailGameID val = new RailGameID();
30 ((RailComparableID)val).id_ = 2000328uL;
31 string[] array = ((!Main.dedServ) ? new string[1] { " " } : Environment.GetCommandLineArgs());
32 if (rail_api.RailNeedRestartAppForCheckingEnvironment(val, array.Length, array))
33 {
35 }
36 if (!rail_api.RailInitialize())
37 {
39 }
40 _callbackHelper.RegisterCallback((RAILEventID)2, new RailEventCallBackHandler(RailEventCallBack));
41 isRailValid = true;
43 Main.OnTickForThirdPartySoftwareOnly += RailEventTick;
44 }
static string[] GetCommandLineArgs()
static void Exit(int exitCode)
static bool QueueUserWorkItem(WaitCallback callBack)
static void RailEventCallBack(RAILEventID eventId, EventBase data)

References Terraria.Social.WeGame.CoreSocialModule._callbackHelper, System.array, Terraria.Main.dedServ, System.Environment.Exit(), System.Environment.GetCommandLineArgs(), Terraria.Social.WeGame.CoreSocialModule.isRailValid, System.Threading.ThreadPool.QueueUserWorkItem(), Terraria.Social.WeGame.CoreSocialModule.RailEventCallBack(), Terraria.Social.WeGame.CoreSocialModule.RailEventTick(), and Terraria.Social.WeGame.CoreSocialModule.TickThread().