mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
未完成的新存档系统
This commit is contained in:
parent
4514cf8633
commit
481cbca821
37
VPet-Simulator.Windows.Interface/GameSave_v2.cs
Normal file
37
VPet-Simulator.Windows.Interface/GameSave_v2.cs
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
using LinePutScript;
|
||||||
|
using LinePutScript.Dictionary;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using VPet_Simulator.Core;
|
||||||
|
|
||||||
|
namespace VPet_Simulator.Windows.Interface
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 游戏存档 修改版
|
||||||
|
/// </summary>
|
||||||
|
public class GameSave_v2 : GameSave
|
||||||
|
{
|
||||||
|
public GameSave_v2(ILPS lps, GameSave_v2 oldsave = null)
|
||||||
|
{
|
||||||
|
if (lps.FindLine("statistics") == null)
|
||||||
|
{//尝试从老存档加载
|
||||||
|
Statistics = oldsave?.Statistics;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Statistics = new Statistics(lps["statistics"].ToList());
|
||||||
|
}
|
||||||
|
if (lps.FindLine("vpet") == null)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public LPS_D Data;
|
||||||
|
public Statistics Statistics = null;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -1,18 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using VPet_Simulator.Core;
|
|
||||||
|
|
||||||
namespace VPet_Simulator.Windows.Interface
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 游戏存档
|
|
||||||
/// </summary>
|
|
||||||
public class GameSaves
|
|
||||||
{
|
|
||||||
Dictionary<string, GameSave> Saves = new Dictionary<string, GameSave>();
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user