Esempio n. 1
0
 /// <summary>
 /// 保存
 /// </summary>
 public void Save()
 {
     using (Stream stream = new FileStream(Const.Path_Settings, FileMode.Create))
     {
         FileUtil.SaveJson(stream, Settings);
         stream.Close();
     }
 }
Esempio n. 2
0
        void SavePosData()
        {
            PosData posData = new PosData();

            foreach (var item in CastlesPoint)
            {
                posData.Datas.Add(new PosItem()
                {
                    ID = item.Key, Pos = item.Value.position.ToVec3()
                });
            }
            FileUtil.SaveJson(Path.Combine(Const.Path_ResourcesText, "CastlePosData.json"), posData);
        }
Esempio n. 3
0
 public void Save()
 {
     FileUtil.SaveJson(Const.Path_Shortcuts, InputAsset.ToJson());
 }