示例#1
0
    public void SaveBundleShipInfoFile()
    {
        try
        {
            System.IO.TextWriter tw = new System.IO.StreamWriter(mBundleInfoFilePath);
            string jsonStr          = JsonFormatter.PrettyPrint(GM.JSON.ToJson(mCurrentEditItems));
            tw.Write(jsonStr);
            tw.Flush();
            tw.Close();

            if (BundleTreeWin.IsOpen)
            {
                BMDataAccessor.ReloadBundleShipInfos();
            }

            BuildHelper.ExportBundleShipInfoFileToOutput();
        }
        catch (System.Exception ex)
        {
            Debug.Log(ex.ToString());
        }
    }