删除就版本断线重建保存函数

This commit is contained in:
huqibin 2025-05-06 14:24:29 +08:00
parent 133d84c507
commit bb4c6c5b15
6 changed files with 27 additions and 121 deletions

27
.gitignore vendored Normal file
View File

@ -0,0 +1,27 @@
/.vsconfig
/10001.sln
/10001_YanCheng_Metrology.sln
/Assembly-CSharp.csproj
/Assembly-CSharp-Editor.csproj
/Library
/Logs
/Temp
/Assets/Template
/Assets/Template.meta
/.vs
/UniRx.csproj
/UniTask.Addressables.csproj
/UniTask.csproj
/UniTask.DOTween.csproj
/UniTask.Editor.csproj
/UniTask.Linq.csproj
/UniTask.TextMeshPro.csproj
/Assembly-CSharp-Editor-firstpass.csproj
/Assembly-CSharp-firstpass.csproj
/Sirenix.OdinInspector.Modules.UnityMathematics.csproj
/obj
/Assets/StreamingAssets/build_info.txt.meta
/Assets/StreamingAssets/build_info.txt
/10002_YanCheng_Metrology.sln
/10002
/.idea

View File

@ -360,40 +360,4 @@ public class Score_4001 : ScoreBase
return false;
}
/// <summary>
/// 保存场景的Buffer信息
/// </summary>
/// <exception cref="System.NotImplementedException"></exception>
public override string SaveSceneBufferList()
{
BufferTemp_4001 tmp = new BufferTemp_4001();
tmp.TestPen3list = TestPen3list;
tmp.InSwitchCloseYDList = InSwitchCloseYDList;
tmp.InSwitchOpenYDList = InSwitchOpenYDList;
tmp.currentunInstallJieXian = currentunInstallJieXian;
tmp.currentInstallJieXian = currentInstallJieXian;
tmp.installCover = installCover;
tmp.currentInstallTestJieXian = currentInstallTestJieXian;
string sceneInfo = JsonConvert.SerializeObject(tmp, Formatting.Indented);
return sceneInfo;
//throw new System.NotImplementedException();
}
/// <summary>
/// 加载场景的Buffer信息
/// </summary>
public override void LoadSceneBufferList(string sceneInfo)
{
BufferTemp_4001 tmp = new BufferTemp_4001();
tmp = JsonMapper.ToObject<BufferTemp_4001>(sceneInfo);
TestPen3list = tmp.TestPen3list;
InSwitchCloseYDList = tmp.InSwitchCloseYDList;
InSwitchOpenYDList = tmp.InSwitchOpenYDList;
currentunInstallJieXian = tmp.currentunInstallJieXian;
currentInstallJieXian = tmp.currentInstallJieXian;
installCover = tmp.installCover;
currentInstallTestJieXian = tmp.currentInstallTestJieXian;
//throw new System.NotImplementedException();
}
}

View File

@ -363,40 +363,4 @@ public class Score_6001 : ScoreBase
return false;
}
/// <summary>
/// 保存场景的Buffer信息
/// </summary>
/// <exception cref="System.NotImplementedException"></exception>
public override string SaveSceneBufferList()
{
BufferTemp_6001 tmp = new BufferTemp_6001();
tmp.TestPen3list = TestPen3list;
tmp.InSwitchCloseYDList = InSwitchCloseYDList;
tmp.InSwitchOpenYDList = InSwitchOpenYDList;
tmp.currentunInstallJieXian = currentunInstallJieXian;
tmp.currentInstallJieXian = currentInstallJieXian;
tmp.installCover = installCover;
tmp.currentInstallTestJieXian = currentInstallTestJieXian;
string sceneInfo = JsonConvert.SerializeObject(tmp, Formatting.Indented);
return sceneInfo;
//throw new System.NotImplementedException();
}
/// <summary>
/// 加载场景的Buffer信息
/// </summary>
public override void LoadSceneBufferList(string sceneInfo)
{
BufferTemp_6001 tmp = new BufferTemp_6001();
tmp = JsonMapper.ToObject<BufferTemp_6001>(sceneInfo);
TestPen3list = tmp.TestPen3list;
InSwitchCloseYDList = tmp.InSwitchCloseYDList;
InSwitchOpenYDList = tmp.InSwitchOpenYDList;
currentunInstallJieXian = tmp.currentunInstallJieXian;
currentInstallJieXian = tmp.currentInstallJieXian;
installCover = tmp.installCover;
currentInstallTestJieXian = tmp.currentInstallTestJieXian;
//throw new System.NotImplementedException();
}
}

View File

@ -89,13 +89,4 @@ public abstract class ScoreBase : MonoBehaviour
{
this.currentScore = _score;
}
/// <summary>
/// 记录现场环境中scoreBase的各项List缓存
/// </summary>
public abstract string SaveSceneBufferList();
/// <summary>
/// 还原现场环境中scoreBase的各项List缓存
/// </summary>
public abstract void LoadSceneBufferList(string sceneInfo);
}

View File

@ -464,41 +464,4 @@ public class Score_2002 : ScoreBase
return false;
}
/// <summary>
/// ?????List??,??????
/// </summary>
/// <exception cref="System.NotImplementedException"></exception>
public override string SaveSceneBufferList()
{
BufferTemp_2002 tmp = new BufferTemp_2002();
tmp.TestPen3list = TestPen3list;
tmp.InSwitchCloseYDList = InSwitchCloseYDList;
tmp.InSwitchOpenYDList = InSwitchOpenYDList;
tmp.currentunInstallJieXian = currentunInstallJieXian;
tmp.currentInstallJieXian = currentInstallJieXian;
tmp.installCover = installCover;
tmp.currentInstallTestJieXian = currentInstallTestJieXian;
string sceneInfo = JsonConvert.SerializeObject(tmp, Formatting.Indented);
Debug.Log("==????:" + sceneInfo);
return sceneInfo;
//throw new System.NotImplementedException();
}
/// <summary>
/// ??????
/// </summary>
public override void LoadSceneBufferList(string sceneInfo)
{
BufferTemp_2002 tmp = new BufferTemp_2002();
tmp = JsonMapper.ToObject<BufferTemp_2002>(sceneInfo);
TestPen3list = tmp.TestPen3list;
InSwitchCloseYDList = tmp.InSwitchCloseYDList;
InSwitchOpenYDList = tmp.InSwitchOpenYDList;
currentunInstallJieXian = tmp.currentunInstallJieXian;
currentInstallJieXian = tmp.currentInstallJieXian;
installCover = tmp.installCover;
currentInstallTestJieXian = tmp.currentInstallTestJieXian;
//throw new System.NotImplementedException();
}
}

View File

@ -62,8 +62,6 @@ public class ReconnectMgr : SingletonMono<ReconnectMgr>
sub.isDone = item.Value.isDone;
UserExamStat.allSubScore.Add(sub);
};
//保存场景内独有信息
UserExamStat.currentSceneBufferInfo = scoreBase.SaveSceneBufferList();
}
//记录装备材料信息
UserExamStat.allToolAndMaterial.Clear();
@ -306,7 +304,6 @@ public class ReconnectMgr : SingletonMono<ReconnectMgr>
}
}
scoreBase.setCurrentScore(UserExamStat.currentScore);
scoreBase.LoadSceneBufferList(UserExamStat.currentSceneBufferInfo);
}
});
}