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

◆ ProcessRailSystemStateChange()

static void Terraria.Social.WeGame.CoreSocialModule.ProcessRailSystemStateChange ( RailSystemState state)
inlinestaticprivate

Definition at line 108 of file CoreSocialModule.cs.

109 {
110 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
111 //IL_0002: Invalid comparison between Unknown and I4
112 //IL_0004: Unknown result type (might be due to invalid IL or missing references)
113 //IL_0006: Invalid comparison between Unknown and I4
114 if ((int)state == 2 || (int)state == 3)
115 {
116 MessageBox.Show("检测到WeGame异常,游戏将自动保存进度并退出游戏", "Terraria--WeGame Error");
117 WorldGen.SaveAndQuit(SaveAndQuitCallBack);
118 }
119 }

References Terraria.WorldGen.SaveAndQuit(), Terraria.Social.WeGame.CoreSocialModule.SaveAndQuitCallBack(), and System.state.

Referenced by Terraria.Social.WeGame.CoreSocialModule.RailEventCallBack().