Ejemplo n.º 1
0
        private static void ProcessRailSystemStateChange(RailSystemState state)
        {
            if ((int)state != 2 && (int)state != 3)
            {
                return;
            }
            int num = (int)MessageBox.Show("检测到WeGame异常,游戏将自动保存进度并退出游戏", "Terraria--WeGame Error");

            WorldGen.SaveAndQuit(new Action(CoreSocialModule.SaveAndQuitCallBack));
        }
Ejemplo n.º 2
0
 private static void ProcessRailSystemStateChange(RailSystemState state)
 {
     //IL_0000: Unknown result type (might be due to invalid IL or missing references)
     //IL_0002: Invalid comparison between Unknown and I4
     //IL_0004: Unknown result type (might be due to invalid IL or missing references)
     //IL_0006: Invalid comparison between Unknown and I4
     if ((int)state == 2 || (int)state == 3)
     {
         MessageBox.Show("检测到WeGame异常,游戏将自动保存进度并退出游戏", "Terraria--WeGame Error");
         WorldGen.SaveAndQuit(SaveAndQuitCallBack);
     }
 }